/* ================================================================
   TELUVO // CYBERPUNK LANDING
   Palette:  deep black + electric cyan + neon magenta + violet
   ================================================================ */

:root {
  --bg: #0a0a0f;
  --bg-1: #0e0e15;
  --bg-2: #13131c;
  --bg-3: #1a1a26;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --fg: #f5f5f7;
  --fg-dim: rgba(245, 245, 247, 0.72);
  --fg-mute: rgba(245, 245, 247, 0.45);

  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.18);
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --magenta: #ff006e;
  --magenta-soft: rgba(255, 0, 110, 0.18);
  --violet: #8338ec;
  --violet-soft: rgba(131, 56, 236, 0.18);
  --green: #00ff9d;

  --danger: #ff3b5c;
  --warn: #ffb800;

  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1180px;

  --shadow-glow-cyan: 0 0 0 1px var(--cyan), 0 0 24px var(--cyan-glow), inset 0 0 12px rgba(0, 229, 255, 0.08);
  --shadow-glow-magenta: 0 0 0 1px var(--magenta), 0 0 24px rgba(255, 0, 110, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--cyan); color: var(--bg); }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 7px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  vertical-align: baseline;
  line-height: 1;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
}

strong { font-weight: 700; color: var(--fg); }

/* ================================================================
   Background layers
   ================================================================ */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 0%, transparent 85%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(131, 56, 236, 0.05) 35%, transparent 70%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

body:hover .cursor-glow { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ================================================================
   Layout
   ================================================================ */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 3;
}

main { position: relative; z-index: 3; }

/* ================================================================
   Nav
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 0 var(--cyan-soft), 0 0 24px rgba(0, 229, 255, 0.12);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #001018;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.brand-logo.brand-logo-img {
  background: transparent;
  overflow: hidden;
}

.brand-logo.brand-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-badge {
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--cyan-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.15s, text-shadow 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}

.lang-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--cyan);
  color: #001018;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.15s;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 16px var(--cyan-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 28px var(--cyan-glow), 0 8px 20px rgba(0, 229, 255, 0.25);
}

.nav-cta .arrow { transition: transform 0.15s; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ================================================================
   Hero
   ================================================================ */

.hero {
  padding: 170px 0 80px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 120%);
  height: 900px;
  background:
    radial-gradient(ellipse at center top, rgba(0, 229, 255, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 60%, rgba(131, 56, 236, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 0, 110, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--cyan-soft);
  border-radius: 999px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Glitch title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 32px;
  color: var(--fg);
  position: relative;
  text-shadow:
    0 0 30px rgba(0, 229, 255, 0.35),
    0 0 60px rgba(0, 229, 255, 0.15);
}

.hero-title::before,
.hero-title::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.8;
  pointer-events: none;
}

.hero-title::before {
  color: var(--magenta);
  text-shadow: none;
  animation: glitch-1 3.2s infinite steps(1);
  clip-path: inset(0 0 0 0);
}

.hero-title::after {
  color: var(--cyan);
  text-shadow: none;
  animation: glitch-2 3.2s infinite steps(1);
  clip-path: inset(0 0 0 0);
}

@keyframes glitch-1 {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  89% { transform: translate(-3px, 1px); opacity: 0.7; clip-path: inset(10% 0 60% 0); }
  90% { transform: translate(2px, -2px); opacity: 0.6; clip-path: inset(55% 0 15% 0); }
  91% { transform: translate(-4px, 1px); opacity: 0.7; clip-path: inset(30% 0 40% 0); }
  92% { transform: translate(0, 0); opacity: 0; }
}

@keyframes glitch-2 {
  0%, 93%, 100% { transform: translate(0, 0); opacity: 0; }
  94% { transform: translate(4px, 1px); opacity: 0.7; clip-path: inset(20% 0 50% 0); }
  95% { transform: translate(-3px, -1px); opacity: 0.6; clip-path: inset(65% 0 10% 0); }
  96% { transform: translate(2px, 2px); opacity: 0.7; clip-path: inset(40% 0 30% 0); }
  97% { transform: translate(0, 0); opacity: 0; }
}

.hero-title-main { position: relative; z-index: 2; }

.hero-tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 780px;
  margin: 0 auto 48px;
  letter-spacing: -0.005em;
}

.hero-tagline .accent { color: var(--cyan); font-weight: 600; text-shadow: 0 0 14px var(--cyan-glow); }
.hero-tagline .accent-2 { color: var(--magenta); font-weight: 600; text-shadow: 0 0 14px rgba(255, 0, 110, 0.45); }
.hero-tagline .accent-3 { color: var(--violet); font-weight: 600; text-shadow: 0 0 14px rgba(131, 56, 236, 0.45); }

/* Download buttons */
.hero-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 28px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--fg);
  text-align: left;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.dl-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--cyan-soft) 100%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.dl-btn:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px var(--cyan-glow), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.dl-btn:hover::before { opacity: 1; }

.dl-icon {
  width: 28px;
  height: 28px;
  color: var(--cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.dl-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.dl-platform {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.dl-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

.dl-btn-primary { background: var(--bg-2); }
.dl-btn-primary .dl-icon { color: var(--cyan); }

.dl-btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
}
.dl-btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--cyan);
}

.dl-btn-lg {
  padding: 18px 26px;
  justify-content: center;
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.dl-btn-lg .arrow { display: inline-block; margin-left: 4px; transition: transform 0.15s; }
.dl-btn-lg:hover .arrow { transform: translateX(3px); }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero showcase: terminal + phone */
.hero-showcase {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  perspective: 1800px;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--cyan-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  margin-top: 100px;
  align-self: center;
}

.mac-window {
  width: min(440px, 44vw);
  background: #05050a;
  border: 1px solid var(--cyan-soft);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px var(--cyan-soft),
    0 0 40px rgba(0, 229, 255, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: rotateY(8deg) rotateX(-2deg);
  transform-origin: right center;
}

.mac-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0a0a12;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.chrome-dot-r { background: #ff5f57; }
.chrome-dot-y { background: #febc2e; }
.chrome-dot-g { background: #28c840; }

.chrome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.03em;
}

.mac-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--fg);
  white-space: pre;
  text-align: left;
  overflow-x: auto;
}

.mac-body .line { display: block; }
.mac-body .prompt { color: var(--fg-mute); }
.mac-body .ok { color: var(--green); text-shadow: 0 0 8px rgba(0, 255, 157, 0.4); }
.mac-body .muted { color: var(--fg-mute); }
.mac-body .cyan { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }

.qr-block {
  display: inline-block;
  margin-top: 8px;
  padding: 10px;
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid var(--cyan-soft);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--fg);
  user-select: none;
}

.phone-frame {
  width: 258px;
  height: 510px;
  background: linear-gradient(135deg, #1a1a24, #0a0a12);
  border: 1px solid var(--line-strong);
  border-radius: 42px;
  padding: 6px;
  position: relative;
  box-shadow:
    0 0 0 1px var(--violet-soft),
    0 0 40px rgba(131, 56, 236, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.6);
  transform: rotateY(-8deg) rotateX(-2deg);
  transform-origin: left center;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #05050a;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--font-mono);
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
}
.signal span {
  width: 2.5px;
  background: var(--fg);
  border-radius: 0.5px;
}
.signal span:nth-child(1) { height: 4px; }
.signal span:nth-child(2) { height: 5px; }
.signal span:nth-child(3) { height: 7px; }
.signal span:nth-child(4) { height: 9px; }

.battery {
  width: 22px; height: 11px;
  border: 1px solid var(--fg-mute);
  border-radius: 3px;
  position: relative;
  padding: 1.5px;
}
.battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: var(--fg-mute);
  border-radius: 0 1px 1px 0;
}
.battery-fill {
  width: 85%; height: 100%;
  background: var(--green);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(0, 255, 157, 0.5);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 12px;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.phone-plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.session-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.session-active {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--cyan-soft);
}

.session-pending {
  background: rgba(255, 184, 0, 0.05);
  border-color: rgba(255, 184, 0, 0.2);
}

.session-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
  position: relative;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sess-claude {
  background: linear-gradient(135deg, #ff8a3d, #c23800);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.3);
}

.sess-codex {
  background: linear-gradient(135deg, #3d8aff, #003ec2);
  color: #fff;
  box-shadow: 0 0 16px rgba(61, 138, 255, 0.3);
}

.sess-gemini {
  background: linear-gradient(135deg, #8338ec, #5a00c2);
  color: #fff;
  box-shadow: 0 0 16px rgba(131, 56, 236, 0.3);
}

.session-live {
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  background: var(--green);
  border: 2px solid #05050a;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.session-pulse {
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  background: var(--warn);
  border: 2px solid #05050a;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

.session-meta { flex: 1; min-width: 0; }

.session-ttl {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}

.session-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-sub-warn { color: var(--warn); }

.session-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* ================================================================
   Section head (shared)
   ================================================================ */

.section-head {
  text-align: center;
  margin-bottom: 72px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  text-shadow: 0 0 12px var(--cyan-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--fg);
}

.section-title .glow {
  color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan-glow), 0 0 40px rgba(0, 229, 255, 0.25);
}

.section-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.6;
  letter-spacing: -0.002em;
}

/* ================================================================
   Features
   ================================================================ */

.features {
  padding: 120px 0 100px;
  position: relative;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feat-card:hover {
  border-color: var(--cyan-soft);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px var(--cyan-soft),
    0 0 40px rgba(0, 229, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.feat-card:hover::before { opacity: 1; }

.feat-card-accent::before {
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}
.feat-card-accent:hover {
  border-color: var(--magenta-soft);
  box-shadow:
    0 0 0 1px var(--magenta-soft),
    0 0 40px rgba(255, 0, 110, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.feat-visual {
  height: 150px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.feat-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, var(--cyan-soft), transparent 60%);
  pointer-events: none;
}

.feat-card-accent .feat-visual::before {
  background: radial-gradient(ellipse at 50% 120%, var(--magenta-soft), transparent 60%);
}

.feat-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.feat-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-dim);
}

/* Feat visuals */
.vis-progress {
  position: absolute;
  inset: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.vis-row { display: flex; flex-direction: column; gap: 6px; }
.vis-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}
.vis-name { color: var(--fg); }
.vis-val { color: var(--cyan); }
.vis-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.vis-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan-glow);
}
.vis-fill-done { background: linear-gradient(90deg, var(--green), var(--cyan)); }

.vis-perm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.vis-perm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vis-perm-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}
.vis-perm-ttl {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.vis-perm {
  padding: 18px;
}
.vis-perm > * { width: 100%; }
.vis-perm-cmd {
  display: block;
  padding: 8px 10px;
  background: #000;
  border: 1px solid var(--magenta-soft);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--magenta);
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(255, 0, 110, 0.35);
}
.vis-perm-actions { display: flex; gap: 6px; }
.vis-perm-actions button {
  flex: 1;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 5px;
}
.vis-perm-deny {
  background: var(--bg-3);
  color: var(--fg-dim);
  border: 1px solid var(--line-strong);
}
.vis-perm-allow {
  background: var(--cyan);
  color: #001018;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.vis-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  gap: 6px;
}
.vis-bubble {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  max-width: 80%;
  line-height: 1.4;
}
.vis-bubble-me {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #001018;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 600;
}
.vis-bubble-ai {
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  font-family: var(--font-mono);
}

/* ================================================================
   Install / steps
   ================================================================ */

.install {
  padding: 100px 0 100px;
  position: relative;
}

.install::before {
  content: "";
  position: absolute;
  top: 20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--violet-soft), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.install .wrap { position: relative; z-index: 1; }

.steps {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.step:last-child { border-bottom: 0; }

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-stroke: 1.5px var(--cyan);
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px var(--cyan-glow);
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.step-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.step-desc code { font-size: 0.9em; }

.step-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--fg);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.pick::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--cyan-soft));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.pick:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.pick:hover::before { opacity: 1; }

.pick-platform {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--fg);
  position: relative;
  z-index: 1;
}

.pick-via {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.pick-arrow {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%) translateX(-6px);
  color: var(--cyan);
  font-weight: 300;
  opacity: 0;
  transition: all 0.2s;
  font-size: 18px;
  z-index: 1;
}

.pick:hover .pick-arrow {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.step-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 229, 255, 0.035);
  border: 1px solid var(--cyan-soft);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.step-note strong { color: var(--cyan); font-weight: 700; }

.step-note code {
  font-size: 12px;
  background: #000;
  color: var(--cyan);
}

.step-note a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-soft);
  transition: all 0.15s;
}
.step-note a:hover {
  text-shadow: 0 0 8px var(--cyan-glow);
  border-bottom-color: var(--cyan);
}

.step-note-success {
  background: rgba(0, 255, 157, 0.03);
  border-color: rgba(0, 255, 157, 0.25);
}
.step-note-success strong { color: var(--green); }
.step-note-success code { color: var(--green); }

.cmd-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #000;
  border: 1px solid var(--cyan-soft);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}

.cmd-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.cmd-prompt {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  text-shadow: 0 0 8px var(--cyan-glow);
}

.cmd-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--fg);
  background: transparent;
  border: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-copy {
  padding: 6px 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-soft);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: all 0.15s;
}

.cmd-copy:hover {
  background: var(--cyan);
  color: #001018;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.cmd-copy.copied {
  background: var(--green);
  color: #001a10;
  border-color: var(--green);
}

.mini-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  counter-reset: mini;
}

.mini-steps li {
  position: relative;
  padding: 10px 14px 10px 40px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
  counter-increment: mini;
}

.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 6px var(--cyan-glow);
}

.mini-steps strong { color: var(--fg); font-weight: 600; }
.mini-sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  margin-left: 4px;
}

.tip-box {
  max-width: 780px;
  margin: 56px auto 0;
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--violet-soft);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-md);
  position: relative;
}

.tip-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(131, 56, 236, 0.4);
}

.tip-box h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.tip-box p {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ================================================================
   CTA
   ================================================================ */

.cta {
  padding: 140px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background:
    radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 30% 50%, rgba(131, 56, 236, 0.12) 0%, transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.cta .wrap { position: relative; z-index: 1; }

.cta-kicker { margin-bottom: 18px; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
  color: var(--fg);
}

.cta-line { display: block; }

.cta-line-accent {
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px var(--cyan-glow));
}

.cta-sub {
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Footer
   ================================================================ */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  z-index: 3;
  background: var(--bg);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  width: 28px;
  height: 28px;
}

.footer-brand .brand-name {
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.15s, text-shadow 0.2s;
  letter-spacing: 0.02em;
}

.footer-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}

.footer-sep {
  margin: 0 10px;
  color: var(--line-strong);
}

/* ================================================================
   i18n
   ================================================================ */

html[data-lang="zh"] .lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1024px) {
  .hero-showcase {
    gap: 24px;
    transform: scale(0.88);
    transform-origin: center top;
    margin-top: 60px;
  }
}

@media (max-width: 860px) {
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .nav-right { gap: 14px; }
  .nav-link { font-size: 13px; }
  .brand-badge { display: none; }

  .hero { padding: 130px 0 60px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; }

  .hero-downloads {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .hero-showcase {
    flex-direction: column;
    gap: 40px;
    transform: none;
    margin-top: 56px;
  }

  .mac-window, .phone-frame { transform: none; }
  .mac-window { width: 100%; max-width: 440px; }

  .features, .install, .cta { padding-top: 80px; padding-bottom: 80px; }

  .feat-grid { grid-template-columns: 1fr; }

  .step { grid-template-columns: 56px 1fr; gap: 18px; padding: 32px 0; }
  .step-num { font-size: 30px; }

  .step-picks { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 10px 16px; }

  .nav-link:not(.lang-toggle) { display: none; }
  .lang-toggle { width: 36px; height: 28px; }

  .hero { padding: 110px 0 40px; }
  .hero-eyebrow { margin-bottom: 28px; }
  .hero-title { margin-bottom: 22px; }
  .hero-tagline { font-size: 16px; margin-bottom: 32px; }

  .dl-btn { padding: 14px 18px; gap: 12px; }
  .dl-icon { width: 22px; height: 22px; }
  .dl-platform { font-size: 14px; }
  .dl-detail { font-size: 10.5px; }

  .features, .install, .cta { padding-top: 64px; padding-bottom: 64px; }

  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }
  .section-head { margin-bottom: 48px; }

  .feat-card { padding: 22px 22px 26px; }

  .step-num { font-size: 28px; }
  .step-title { font-size: 20px; }

  .cmd-box { padding: 12px 14px; gap: 8px; }
  .cmd-text { font-size: 12.5px; }
  .cmd-copy { padding: 5px 10px; font-size: 11px; }

  .cta-title { font-size: 32px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .dl-btn { width: 100%; justify-content: center; }

  .footer-links { gap: 16px; flex-wrap: wrap; }
  .phone-frame { transform: scale(0.92); }
}

/* ================================================================
   Motion preferences
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .eyebrow-dot, .status-dot, .session-live, .session-pulse { animation: none !important; }
  .hero-title::before, .hero-title::after { display: none; }
  .cursor-glow { display: none; }
}

/* ================================================================
   Focus (a11y)
   ================================================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
