/*
  Remember AI Landing Styles
  – Clean, modern, responsive, no build tools required
*/

:root {
  --bg: #0b0c10;
  --surface: #111218;
  --panel: #151823;
  --text: #e9ecf1;
  --muted: #b7c0cd;
  --line: #222635;
  --brand: #6d8cff; /* primary accent */
  --brand-2: #9a7bff; /* secondary accent */
  --success: #20c997;
  --danger: #ff5d5d;

  /* Aurora hues for fancy background */
  --aurora-1: #6d8cff; /* indigo */
  --aurora-2: #9a7bff; /* violet */
  --aurora-3: #20c997; /* teal */
  --aurora-4: #ff7aa2; /* pink */

  --container: 1140px;
  --radius: 14px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 12px 36px rgba(0,0,0,.28), 0 1px 5px rgba(0,0,0,.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* Single smooth page-wide gradient */
  background: linear-gradient(180deg, #0a0c12 0%, #0b1220 50%, #0a0e18 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* Ambient animated glows (background auras) */
/* Fancy ambient gradient auras (very subtle) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -20vmax;
  pointer-events: none;
  filter: blur(60px) saturate(120%);
  opacity: .34; /* a touch brighter for colorful glows */
}
/* Soft aurora shapes that drift slowly */
body::before {
  background:
    radial-gradient(40% 50% at 18% 22%, color-mix(in srgb, var(--aurora-1) 34%, transparent) 0%, transparent 60%),
    radial-gradient(45% 55% at 78% 28%, color-mix(in srgb, var(--aurora-2) 30%, transparent) 0%, transparent 62%),
    radial-gradient(50% 60% at 52% 78%, color-mix(in srgb, var(--aurora-3) 24%, transparent) 0%, transparent 58%),
    radial-gradient(36% 48% at 12% 82%, color-mix(in srgb, var(--aurora-4) 20%, transparent) 0%, transparent 64%);
  animation: auroraShift 38s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(36% 48% at 24% 70%, color-mix(in srgb, var(--aurora-4) 22%, transparent) 0%, transparent 62%),
    radial-gradient(40% 52% at 84% 72%, color-mix(in srgb, var(--aurora-1) 22%, transparent) 0%, transparent 60%),
    radial-gradient(34% 50% at 66% 48%, color-mix(in srgb, var(--aurora-2) 18%, transparent) 0%, transparent 62%);
  animation: auroraDrift 46s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, -3%, 0) scale(1.06); }
}
@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -5%, 0) scale(1.04) rotate(2deg); }
}

/* Subtle noise overlay to break gradient banding */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .02; /* very light noise to reduce banding */
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'>\
    <filter id='n'>\
      <feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/>\
      <feColorMatrix type='saturate' values='0'/>\
      <feComponentTransfer>\
        <feFuncA type='table' tableValues='0 0.9'/>\
      </feComponentTransfer>\
    </filter>\
    <rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/>\
  </svg>");
  background-repeat: repeat;
}

/* Fancy pattern layer: subtle grid + dots (above auras, below content) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* under content, above body auras */
  opacity: .08;
  mix-blend-mode: overlay;
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.06) 0 2px, transparent 3px) 0 0/48px 48px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/48px 48px;
}

img { max-width: 100%; display: block; }

/* 3D background tunnel container + center vignette dim */
#bg-3d { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#bg-3d-canvas { width: 100%; height: 100%; display: block; }
#bg-3d-vignette { position: absolute; inset: 0; pointer-events: none;
  /* Tunable center dim */
  --vig-center: rgba(0,0,0,0.58);
  --vig-1: rgba(0,0,0,0.42);
  --vig-2: rgba(0,0,0,0.24);
  --vig-3: rgba(0,0,0,0.10);
  --vig-edge: rgba(0,0,0,0.00);
  /* Layered gradients: extra bottom-center dim + central vignette */
  background:
    radial-gradient(ellipse at 50% 85%, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.20) 36%, rgba(0,0,0,0.00) 72%),
    radial-gradient(ellipse at 50% 50%, var(--vig-center) 0%, var(--vig-1) 26%, var(--vig-2) 48%, var(--vig-3) 68%, var(--vig-edge) 100%);
}

@media (max-width: 800px) {
  #bg-3d-vignette {
    --vig-center: rgba(0,0,0,0.62);
    --vig-1: rgba(0,0,0,0.46);
    --vig-2: rgba(0,0,0,0.28);
    --vig-3: rgba(0,0,0,0.12);
    /* Slightly stronger bottom dim on small screens */
    background:
      radial-gradient(ellipse at 50% 88%, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.24) 38%, rgba(0,0,0,0.00) 74%),
      radial-gradient(ellipse at 50% 50%, var(--vig-center) 0%, var(--vig-1) 26%, var(--vig-2) 48%, var(--vig-3) 68%, var(--vig-edge) 100%);
  }
}

/* Dot grid overlay (subtle) */
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.10)'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(100% 100% at 50% 0%, #000 40%, transparent 100%);
}

/* Hero effects */
.animate-float { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.product-hero { display: grid; place-items: center; position: relative; }
.product-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(120%, 560px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--brand) 35%, transparent) 0%, transparent 65%),
    radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 28%, transparent) 0%, transparent 70%),
    radial-gradient(closest-side, color-mix(in srgb, var(--aurora-3) 22%, transparent) 0%, transparent 75%);
  filter: blur(40px) saturate(120%);
  opacity: .42;
  transform: translate(-50%, -50%);
  top: 50%; left: 50%;
  animation: pulseHalo 8s ease-in-out infinite;
}
.product-img { position: relative; z-index: 1; max-width: 340px; width: 100%; border-radius: 0; box-shadow: none; background: transparent; filter: drop-shadow(0 24px 48px rgba(109,140,255,.18)) drop-shadow(0 8px 18px rgba(0,0,0,.35)); }

@keyframes pulseHalo {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: .38; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: .46; }
  100% { transform: translate(-50%, -50%) scale(0.98); opacity: .38; }
}
.fancy-rotate { animation: sway 10s ease-in-out infinite; }
@keyframes sway { 0% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } 100% { transform: rotate(-1.5deg); } }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus { left: 16px; top: 16px; background: var(--panel); color: var(--text); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand img { filter: drop-shadow(0 6px 16px rgba(109,140,255,.35)); }

.nav { display: contents; }
.nav-items { display: flex; align-items: center; gap: 18px; list-style: none; padding: 0; margin: 0; }
.nav-items a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.nav-items a:hover { color: inherit; background: inherit; border-color: inherit; box-shadow: none; transform: none; }
.nav-items a.active, .nav-items a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }

.nav-toggle { display: none; align-items: center; justify-content: center; height: 40px; width: 40px; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.header-cta { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 12px; padding: 12px 16px; font-weight: 600; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.btn, a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: none; box-shadow: none; }
.btn:active { transform: translateY(0); }
.btn { -webkit-tap-highlight-color: transparent; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 70%, #ffffff 30%); outline-offset: 2px; }
.btn-primary { color: #0a0b0f; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: none; }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 80px; }
.section .section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section .section-head h2 { position: relative; display: inline-block; padding-bottom: 6px; }
.section .section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 14px rgba(109,140,255,.35); }
.section h2 { font-size: clamp(28px, 2.5vw + 12px, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.section p { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding-top: 48px; }
.eyebrow { display: inline-block; color: #d7dcff; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 35%, transparent), transparent); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 3.2vw + 8px, 52px); line-height: 1.05; margin: 0 0 10px; letter-spacing: -0.03em; }
.hero-copy { margin-left: 30px; }
.accent { color: var(--brand); font-weight: 800; }
.accent-2 { color: var(--brand-2); font-weight: 800; }
.grad-accent { 
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 1.2em;
  white-space: nowrap;
}
.lead { font-size: clamp(16px, 1.2vw + 10px, 20px); color: var(--muted); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.hero-cta .btn-primary { margin-bottom: 8px; }
.tiny-note { color: var(--muted); font-size: 12px; margin-top: 14px; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6px; align-items: center; text-align: left; }
.device-card { position: relative; background: transparent; border-radius: 24px; border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.device-card .glow { display: none; }
.device-card img { position: relative; z-index: 2; }

/* Logos (legacy) */
.logos { padding: 28px 0 56px; }
.logos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; justify-items: center; opacity: .85; }
.logo { color: color-mix(in srgb, var(--muted) 90%, #fff 10%); font-size: 14px; border: 1px dashed var(--line); padding: 10px 14px; border-radius: 10px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: color-mix(in srgb, var(--panel) 78%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease, background .25s ease; backdrop-filter: saturate(1.05) blur(6px); }
.card:hover { transform: none; box-shadow: inherit; border-color: inherit; }
.card h3 { margin: 10px 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 40%, #1a1f2f), color-mix(in srgb, var(--brand-2) 30%, #1a1f2f)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(109,140,255,.25); overflow: hidden; }
.card-icon img { width: 24px; height: 24px; filter: drop-shadow(0 4px 10px rgba(109,140,255,.35)); }

/* How */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 28px; }
.how-step { background: color-mix(in srgb, var(--panel) 86%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how-step .step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0b0f; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.how-media { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: transparent; }
.how-media img { width: 100%; display: block; }

/* Product details */
.detail-list { display: grid; gap: 18px; }
.detail-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.detail-row:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.detail-row:nth-child(even) .detail-media { order: 2; }
.detail-row:nth-child(even) .detail-copy { order: 1; }
.detail-copy h3 { margin: 0 0 8px; letter-spacing: -0.01em; }
.detail-copy ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.media-frame { position: relative; border-radius: 16px; padding: 2px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 40%, transparent), color-mix(in srgb, var(--brand-2) 30%, transparent)); box-shadow: var(--shadow-md); }
.media-frame img { display: block; width: 100%; height: auto; border-radius: 14px; background: #0b0c10; }

/* History & Search section */
.history-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.history-media-col { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: stretch; }
.history-media { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: transparent; max-width: 520px; margin: 0 auto; }
.history-media img { display: block; width: 100%; height: auto; }
.history-copy p { color: var(--muted); }

/* (removed overlay label) */

/* Scrollable convo image */
.scroll-media { max-height: 420px; overflow-y: auto; overflow-x: hidden; max-width: 520px; margin: 0 auto; background: transparent; }
.scroll-media img { display: block; width: 100%; height: auto; }
/* Hide scrollbars for scrollable convo image */
.scroll-media { scrollbar-width: none; }
.scroll-media::-webkit-scrollbar { display: none; }

/* Events collage */
.events-collage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; max-width: 980px; margin: 0 auto; }
.evt { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(13,16,32,0.6); backdrop-filter: saturate(110%) blur(2px);
  /* default floating shadow */
  box-shadow: 0 18px 36px rgba(0,0,0,.45), 0 18px 48px rgba(109,140,255,.20);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.evt img { width: 100%; height: auto; object-fit: contain; display: block; background: transparent; }
.evt:hover { transform: none; box-shadow: inherit; }
/* Top row: two items centered */
.evt-1 { grid-column: 1 / span 3; grid-row: 1; z-index: 2; }
.evt-2 { grid-column: 4 / span 3; grid-row: 1; z-index: 2; }
/* Middle row: one centered, a bit larger (but not huge) */
.evt-3 { grid-column: 2 / span 4; grid-row: 2; z-index: 3; margin-top: -12px; }
/* Bottom row: two items centered, slight overlap upward */
.evt-4 { grid-column: 1 / span 3; grid-row: 3; z-index: 1; margin-top: -16px; }
.evt-5 { grid-column: 4 / span 3; grid-row: 3; z-index: 1; margin-top: -16px; }

/* Fade-in (渐出) animation for events with a slight scale-in */
.events-collage .evt.reveal-up { opacity: 0; transform: translateY(12px) scale(.98); will-change: opacity, transform; }
.events-collage .evt.reveal-up.is-visible { opacity: 1; transform: translateY(0) scale(1); transition: opacity .6s ease, transform .6s cubic-bezier(.21,1,.21,1); transition-delay: var(--reveal-delay, 0s); }

/* Face marquee in problem section */
.face-marquee { position: relative; overflow: hidden; margin-top: 4px; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #fff 12%, #fff 88%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #fff 12%, #fff 88%, rgba(0,0,0,0) 100%); mask-mode: alpha; }
.face-overlay { position: absolute; top: -8px; left: 50%; transform: translate(-50%, -100%); font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.45); pointer-events: none; }
.face-grid { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.face-row { overflow: hidden; }
.face-track { display: inline-flex; gap: 16px; align-items: center; padding: 10px 2px; will-change: transform; }
.face-track.dir-ltr { animation: marquee-left var(--speed, 60s) linear infinite; }
.face-track.dir-rtl { animation: marquee-right var(--speed, 60s) linear infinite; }
.face { width: 112px; height: 112px; object-fit: cover; background: transparent; box-shadow: 0 10px 28px rgba(0,0,0,.35); border-radius: 14px; border: 2px solid #ffffff; cursor: pointer; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Problem section spacing tweaks */
.problem .section-head { margin-bottom: 6px; }
.problem { padding-top: 32px; }
.problem .section-head h2 { font-size: clamp(24px, 2vw + 8px, 32px); }
.problem-sub { color: var(--muted); font-size: clamp(14px, 1.1vw + 6px, 16px); margin: 4px 0 0; }
.problem-cta-text { color: var(--muted); font-size: clamp(14px, 1vw + 6px, 16px); margin: 0; }

/* Balanced headings for nicer wraps */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Down arrow under face grid */
.down-arrow { display: grid; place-items: center; position: relative; margin: 6px auto 0; width: 44px; height: 44px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); color: #ffffff; text-decoration: none; transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, transparent), color-mix(in srgb, var(--brand-2) 16%, transparent)); box-shadow: 0 12px 32px rgba(109,140,255,.35), 0 2px 10px rgba(0,0,0,.35); appearance: none; }
.down-arrow svg { width: 18px; height: 18px; }
.down-arrow::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); opacity: .5; animation: arrowPulse 2.6s ease-out infinite; }
.down-arrow:hover { transform: none; color: inherit; border-color: inherit; box-shadow: inherit; }
@keyframes arrowPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.2); opacity: 0; } 100% { transform: scale(1.2); opacity: 0; } }

/* Record block under arrow */
.record-block { margin-top: 36px; text-align: center; }
.record-title { margin: 0 0 10px; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -0.01em; }
.record-images { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.record-item { display: grid; gap: 6px; transform: rotateZ(var(--tilt, -1.2deg)); transform-origin: center; will-change: transform, box-shadow; transition: transform .25s ease, box-shadow .25s ease; }
.record-item:nth-child(odd) { --tilt: -1.2deg; }
.record-item:nth-child(even) { --tilt: 1.2deg; }
.record-item:hover { transform: none; }
.record-item img { max-width: 340px; width: 100%; border-radius: 14px; border: 2px solid #ffffff; box-shadow: 0 18px 40px rgba(154,123,255,.25); transition: box-shadow .25s ease; }
.record-item:hover img { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 85%, #ffffff 15%), 0 26px 60px rgba(154,123,255,.35); }
.record-label { text-align: center; font-weight: 800; color: #ffffff; font-size: clamp(16px, 2vw, 20px); letter-spacing: -0.01em; }

/* Always-on subtle shadows (no click animation) */
.history-media img, .record-item img { cursor: pointer; }
.history-media { box-shadow: 0 28px 68px rgba(109,140,255,.45), 0 12px 24px rgba(0,0,0,.45); }
.record-item img { box-shadow: 0 28px 68px rgba(154,123,255,.35); }
.history-media:focus-within { outline: none; }
.record-item img:focus-visible, .history-media img:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 60%, #fff 40%); outline-offset: 2px; }

/* Subtle polish on faces */
.face { transition: transform .2s ease, box-shadow .2s ease; }
.face:hover { transform: none; box-shadow: inherit; }
@media (max-width: 960px) { .record-images img { max-width: 100%; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.pricing-card { background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-md); position: relative; }
.pricing-card .badge { position: absolute; top: -12px; left: 16px; background: #101320; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d7dcff; }
.price { font-size: 44px; margin: 6px 0 8px; letter-spacing: -0.02em; }
.price span { font-size: 22px; opacity: .9; margin-right: 2px; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.price-features { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; color: var(--muted); }
.cta .price { margin-bottom: 16px; }
.pricing-card .btn-block { margin-top: 12px; }

.pricing-copy h2 { margin: 0 0 8px; }
.waitlist { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; margin-top: 16px; }
.waitlist input[type="email"] { width: 100%; padding: 14px 14px; border-radius: 12px; background: #0f121a; border: 1px solid var(--line); color: var(--text); outline: none; font: inherit; }
.waitlist input[type="email"]:focus { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.form-note { height: 20px; margin: 6px 2px 0; color: var(--muted); font-size: 13px; }

/* FAQ */
.accordion { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
details { background: color-mix(in srgb, var(--panel) 86%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
summary { cursor: pointer; list-style: none; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 0; color: var(--muted); }
details[open] summary::after { content: "−"; }
.answer { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: transparent; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: inherit; }
.footer-legal { text-align: right; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Floating faces overlay (corner clusters, dim at start, brighten on scroll) */
/* Sits above background but subtle over content; adjust z-index if needed */
.faces-cloud { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.faces-cloud .faces-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.faces-cloud .face-dot { position: absolute; border-radius: 10px; object-fit: cover; z-index: 1;
  filter: grayscale(100%) brightness(.48) contrast(1.05) saturate(.9);
  opacity: .20; transition: opacity .25s linear, filter .25s linear, transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  mix-blend-mode: screen;
}
/* Ensure app chrome sits above cloud (lower if you prefer behind) */
.site-header, main, .site-footer { position: relative; z-index: 3; }

/* Reveal animations */
.reveal-up { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.21,1,.21,1); transition-delay: var(--reveal-delay, 0s); }

/* Demo flow */
.flow-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.flow-select { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-select .btn.active { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.flow-actions .btn { height: 40px; }
.flow-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.flow-aside { display: grid; gap: 12px; }
.flow-aside .card, .flow-transcript.card { background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.flow-participants .chips { display: grid; gap: 8px; }
.chip { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
.chip .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0b0f; font-weight: 800; }
.chip .who em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.flow-topics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flow-topics li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.flow-topics li.active { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.flow-progress { position: relative; height: 8px; border-radius: 999px; background: #0e1220; border: 1px solid var(--line); overflow: hidden; }
.flow-progress .bar { position: absolute; top:0; left:0; bottom:0; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s linear; }
.flow-transcript { min-height: 280px; max-height: 420px; overflow: auto; }
.flow-line { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.flow-line .speaker { color: #d7dcff; font-weight: 700; }
.flow-line .content { color: var(--text); }
.flow-line .content::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 4px; background: color-mix(in srgb, var(--text) 80%, #fff 20%); animation: caretBlink 1s steps(1, end) infinite; vertical-align: -0.15em; }
.flow-transcript.ended .flow-line .content::after { display: none; }
.flow-select .btn { white-space: nowrap; }

@keyframes caretBlink { 50% { opacity: 0; } }
.flow-empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* Social Proof */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.quote { background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-md); }
.quote cite { display: block; color: var(--muted); margin-top: 8px; font-style: normal; }
.logo-belt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: center; justify-items: center; opacity: .9; }
.belt-logo { color: color-mix(in srgb, var(--muted) 90%, #fff 10%); font-size: 14px; border: 1px dashed var(--line); padding: 10px 14px; border-radius: 10px; }

/* CTA */
.cta { background: transparent; border-top: none; border-bottom: none; }
.cta .btn-block { margin-top: 6px; }
.cta .price { margin-bottom: 10px; }
.cta .tiny-note { margin-top: 20px; }
.cta .sub-price { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.cta .sub-price strong { color: var(--text); font-weight: 700; }
.cta-tagline { color: var(--muted); margin: 8px 0 10px; }

/* Preorder button emphasis */
.btn-preorder { position: relative; padding: 14px 18px; font-size: 16px; box-shadow: 0 14px 36px rgba(109,140,255,.35), 0 2px 8px rgba(0,0,0,.25); }
.btn-preorder::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-preorder:hover::after { transform: translateX(0); }
}

/* Pricing plans */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 80%, #0b0c10), color-mix(in srgb, var(--panel) 50%, #0b0c10)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-md); }
.plan-card .badge { position: absolute; top: -12px; left: 16px; background: #101320; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d7dcff; }
.plan-card h3 { margin: 0 0 6px; }
.plan-card .price { font-size: 36px; margin: 6px 0 6px; }
.plan-card .price small { font-size: 12px; color: var(--muted); }
.plan-card .price-lg { font-size: 44px; margin: 6px 0 2px; letter-spacing: -0.02em; }
.plan-card .price-lg span { font-weight: 800; }
.plan-card .price-lg small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-card .price-sm { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.plan-note { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.plan-features { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; color: var(--muted); }

.feedback-note { margin-top: 18px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); text-align: center; }
.feedback-note a { color: var(--text); text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .logos-row { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .history-media-col { grid-template-columns: 1fr; }
  .events-collage { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .evt-1, .evt-2 { grid-column: auto; grid-row: 1; }
  .evt-3 { grid-column: 1 / -1; grid-row: 2; margin-top: -10px; }
  .evt-4, .evt-5 { grid-column: auto; grid-row: 3; margin-top: -12px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero-grid { gap: 12px; }
  .product-img { max-width: 240px; }
  .nav-toggle { display: inline-flex; }
  .nav-items { display: none; position: absolute; right: 20px; top: 58px; background: #0d1119; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-md); }
  .nav-items.show { display: grid; gap: 4px; }
  .nav-items a { padding: 8px 10px; border-radius: 8px; }
  .header-inner { grid-template-columns: auto auto auto; }
  .logos-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .logo-belt { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { text-align: center; }
  .events-collage { grid-template-columns: 1fr; max-width: 420px; }
  .evt { margin-top: 0; box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 18px 38px rgba(109,140,255,.18); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .face-track { animation: none !important; }
}

/* Tighten spacing around pricing headings */
.pricing .section-head { margin-bottom: 24px; }
#pricing-hero { padding-bottom: 0; }
#pricing-hero .section-head { margin-bottom: 0; }
#pricing { padding-top: 0; }
.transcript { scrollbar-width: none; }
.transcript::-webkit-scrollbar { display: none; }
