/* ════════════════════════════════════════════════════════════════
   DUO v4 — landing · "cyber-glass editorial"
   KOPILOT brand (cyan #00e5ff + magenta #ff1e8e) on noir, with
   editorial type, real glass depth, an animated live voice orb hero.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --cyan: #00e5ff;
  --cyan-soft: #5cf0ff;
  --magenta: #ff1e8e;
  --magenta-soft: #ff6fb3;

  /* Canvas */
  --bg: #05060a;
  --bg-2: #0a0c14;
  --ink: #eaf2ff;
  --ink-dim: #9aa6c4;
  --ink-faint: #59617f;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --hair: rgba(255, 255, 255, 0.10);
  --hair-bright: rgba(255, 255, 255, 0.2);

  /* Type */
  --display: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* overshoot pop — user-caused changes */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);           /* accelerate out */
  --t-fast: 120ms; --t-base: 180ms; --t-slow: 280ms;
  --gradient: linear-gradient(100deg, var(--cyan), var(--magenta));

  /* ── Elevation system: higher = floats over live video = more opaque ── */
  --scrim: rgba(5, 6, 10, 0.72);
  --srf-base: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
  --blur-base: blur(20px) saturate(1.2);
  --srf-raised: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  --srf-inset: rgba(0, 0, 0, 0.35);
  --srf-float: linear-gradient(165deg, rgba(13,15,24,0.92), rgba(8,9,15,0.96));
  --blur-float: blur(24px) saturate(1.35);
  --srf-overlay: linear-gradient(160deg, rgba(15,17,27,0.97), rgba(9,10,16,0.985));
  --hair-glow: rgba(0, 229, 255, 0.28);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.4);
  --shadow-3: 0 16px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  --shadow-4: 0 30px 80px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.10);

  /* interactive state fills */
  --hov: rgba(255,255,255,0.06);
  --act: rgba(255,255,255,0.10);
  --sel: rgba(0,229,255,0.12);
  --danger-fill: rgba(255,30,142,0.14);
  --danger-edge: rgba(255,30,142,0.3);

  /* z-ladder */
  --z-panel: 30; --z-pop: 40; --z-drawer: 45;
  --z-modal: 55; --z-menu: 65; --z-toast: 70; --z-tip: 80;

  /* spacing (4px grid) · radius · type scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 20px; --r-full: 999px;
  --fs-2xs: 0.6875rem; --fs-xs: 0.75rem; --fs-sm: 0.8125rem;
  --fs-md: 0.875rem; --fs-lg: 1rem; --fs-xl: 1.25rem; --fs-2xl: 1.875rem;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Atmosphere ── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(0,229,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 20%, transparent 75%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.45; }
.bg-glow--cyan {
  width: 50vw; height: 50vw; top: -16vh; right: -8vw;
  background: radial-gradient(circle, var(--cyan), transparent 65%);
  animation: drift1 24s var(--ease) infinite;
}
.bg-glow--magenta {
  width: 44vw; height: 44vw; bottom: -20vh; left: -10vw;
  background: radial-gradient(circle, var(--magenta), transparent 65%);
  animation: drift2 30s var(--ease) infinite;
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { 50% { transform: translate(-8vw, 8vh) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(8vw, -6vh) scale(0.92); } }

/* ── Nav ── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(0,229,255,0.6);
  animation: brandpulse 3s var(--ease) infinite;
}
@keyframes brandpulse { 50% { box-shadow: 0 0 28px rgba(255,30,142,0.7); } }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-status {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.nav-ghost { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim); text-decoration: none; letter-spacing: 0.04em; transition: color .2s; }
.nav-ghost:hover { color: var(--cyan); }

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: clamp(24px, 6vh, 80px) clamp(20px, 5vw, 64px);
  max-width: 820px; margin: 0 auto; width: 100%;
}
.hero-copy { width: 100%; max-width: 660px; }

.hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise 0.8s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 22px;
}
.title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 1rem + 7vw, 6rem);
  line-height: 0.94; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.title-accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.18rem);
  line-height: 1.55; color: var(--ink-dim); max-width: 48ch;
  margin: 0 auto 34px;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* Join panel — glass */
.join {
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  margin: 0 auto 28px;
  max-width: 540px;
  text-align: left;
}
.join-row { display: flex; gap: 12px; margin-bottom: 12px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.field input {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--hair);
  border-radius: 13px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.16);
}
.cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: #04060c;
  background: var(--gradient);
  border: none; border-radius: 13px;
  padding: 15px;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, filter .2s;
  box-shadow: 0 12px 34px rgba(255,30,142,0.32);
}
.cta svg { width: 20px; height: 20px; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 44px rgba(0,229,255,0.4); }
.cta:active { transform: translateY(0); }

.feature-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: center;
  font-size: 0.86rem; color: var(--ink-dim);
}
.feature-row li { display: inline-flex; align-items: center; gap: 9px; }
.feat-ico { width: 9px; height: 9px; border-radius: 3px; background: var(--gradient); box-shadow: 0 0 10px rgba(0,229,255,0.5); }

/* ── Hero visual: Discord-style voice channel preview ── */
.hero-visual { display: grid; place-items: center; min-height: 420px; }
.vc-card {
  width: min(440px, 100%);
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 16px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: floaty 8s var(--ease) infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }

.vc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 6px 14px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 14px;
}
.vc-room {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.vc-room-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 2s infinite; }
.vc-count { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-dim); }

.vc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vc-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hair);
  transition: border-color .3s var(--ease);
}
.vc-av {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #04060c;
}
.vc-av[data-t="cyan"]    { background: linear-gradient(135deg, var(--cyan-soft), var(--cyan-deep, #00b8cc)); }
.vc-av[data-t="magenta"] { background: linear-gradient(135deg, var(--magenta-soft), var(--magenta)); }
.vc-av[data-t="violet"]  { background: linear-gradient(135deg, #b39cff, #7c5cff); }
.vc-name { font-size: 0.86rem; color: var(--ink); font-weight: 500; }

/* speaking → cyan ring + glow (Discord's green, but our brand) */
.vc-tile.is-speaking {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(0,229,255,0.28);
}
.vc-tile.is-speaking .vc-av {
  box-shadow: 0 0 0 3px rgba(0,229,255,0.35);
  animation: pulse-av 1.6s var(--ease) infinite;
}
@keyframes pulse-av { 50% { box-shadow: 0 0 0 6px rgba(0,229,255,0.18); } }

/* muted → dimmed + magenta flag */
.vc-tile.is-muted .vc-av { filter: saturate(0.4) brightness(0.7); }
.vc-flag {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--magenta); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.vc-flag svg { width: 12px; height: 12px; }

/* camera-on tile → a "video" fill with a live EQ shimmer */
.vc-tile.has-cam { padding: 0; overflow: hidden; }
.vc-cam {
  width: 100%; height: 86px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,229,255,0.4), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(255,30,142,0.35), transparent 60%),
    #0a0e18;
}
.vc-tile.has-cam .vc-name {
  position: absolute; bottom: 8px; left: 10px;
  background: rgba(5,6,10,0.6); padding: 3px 9px; border-radius: 999px;
  font-size: 0.74rem; backdrop-filter: blur(6px);
}
.vc-cam-eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.vc-cam-eq i { width: 4px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: eq 1.1s var(--ease) infinite; }
.vc-cam-eq i:nth-child(1){height:40%}
.vc-cam-eq i:nth-child(2){height:100%;animation-delay:.12s;background:var(--cyan-soft)}
.vc-cam-eq i:nth-child(3){height:60%;animation-delay:.06s;background:var(--magenta-soft)}
.vc-cam-eq i:nth-child(4){height:85%;animation-delay:.2s;background:var(--magenta)}
@keyframes eq { 50% { transform: scaleY(0.3); } }

/* mini control dock at the bottom of the card */
.vc-dock {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.vc-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hair);
  color: var(--ink-dim);
}
.vc-btn svg { width: 18px; height: 18px; }
.vc-btn.is-on { background: linear-gradient(135deg, var(--cyan), var(--magenta)); color: #04060c; border-color: transparent; }
.vc-btn.is-leave { background: rgba(255,30,142,0.16); color: var(--magenta-soft); border-color: rgba(255,30,142,0.3); }

/* ── Footer ── */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 20px clamp(20px, 5vw, 64px);
  font-size: 0.78rem; color: var(--ink-faint);
}
.foot .sep { opacity: 0.4; }
.foot-mono { font-family: var(--mono); color: var(--ink-dim); }

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-visual { order: -1; min-height: 280px; }
  .stage-orb { width: clamp(220px, 60vw, 300px); }
  .title { font-size: clamp(2.6rem, 1rem + 11vw, 4rem); }
  .float-tile { font-size: 0.66rem; padding: 6px 10px; }
}
@media (max-width: 520px) {
  .join-row { flex-direction: column; }
  .nav-ghost { display: none; }
  .feature-row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero-copy > * { opacity: 1; transform: none; }
}
