/* =========================================================
   TalkToMyVideos (t2mv) - shared stylesheet
   Deep ink dark theme, electric lime accent, terminal motifs
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- Design tokens ---- */
:root {
  /* surfaces */
  --ink-900: #070908;
  --ink-850: #0b0e0d;
  --ink-800: #0f1312;
  --ink-700: #151a18;
  --ink-600: #1d2421;

  /* text */
  --text: #eaefec;
  --text-dim: #a3aca7;
  --text-faint: #6b746f;

  /* accent - electric blue (video / screen) */
  --accent: #4d9fff;
  --accent-bright: #78b6ff;
  --accent-deep: #7fb4ff;
  --accent-glow: rgba(77, 159, 255, 0.18);

  /* lines */
  --line: rgba(234, 239, 236, 0.09);
  --line-strong: rgba(234, 239, 236, 0.16);

  /* type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --maxw-text: 760px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background-color: var(--ink-900);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 78% -8%, var(--accent-glow), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, 0 0;
}

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

::selection { background: var(--accent); color: #0a0c0b; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: #0a0c0b; padding: 10px 16px;
  border-radius: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Mono eyebrow ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); }
.h-hero { font-size: clamp(2.6rem, 6.2vw, 4.7rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.h-sec { font-size: clamp(1.9rem, 4vw, 3rem); text-wrap: balance; }
.h-card { font-size: 1.3rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-dim); line-height: 1.55; text-wrap: pretty; }

.accent { color: var(--accent); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink-900) 76%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #0a0c0b;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px -8px var(--accent);
}
.brand .mark svg { width: 17px; height: 17px; }
.brand .tag { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-faint); border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 5px; letter-spacing: 0.04em; align-self: center; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color 0.18s var(--ease); }
.nav-links .mobile-cta { display: none; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 11px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #08090a; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-bright); color: #08090a; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 9px; }

/* ---- Sections ---- */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 130px) 0; }
.section-divider { border-top: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy .h-hero { margin: 22px 0 0; }
.hero-copy .lead { margin-top: 24px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 20px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); display: flex; align-items: center; gap: 9px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Terminal / chat demo ---- */
.terminal {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.terminal-bar .dots { display: flex; gap: 7px; }
.terminal-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-600); }
.terminal-bar .title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); margin-left: 6px; }
.terminal-bar .badge { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 2px 8px; border-radius: 20px; }
.terminal-body { padding: 22px 20px; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5; display: flex; flex-direction: column; gap: 16px; }

.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg .who { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 600; }
.msg.viewer .who { background: var(--ink-600); color: var(--text-dim); }
.msg.creator .who { background: var(--accent); color: #08090a; }
.msg .bubble { flex: 1; }
.msg .label { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 5px; }
.msg.viewer .bubble .text { color: var(--text-dim); }
.msg.creator .bubble .text { color: var(--text); }
.msg .src { margin-top: 8px; font-size: 0.7rem; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.msg .src svg { width: 14px; height: 14px; flex-shrink: 0; }

.term-prompt { display: flex; align-items: center; gap: 9px; padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 2px; padding-top: 16px; color: var(--text-faint); }
.term-prompt .chev { color: var(--accent); }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Logo / trust strip ---- */
.surfaces-strip { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.surfaces-strip .label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.04em; }
.surfaces-strip .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; }
.chip svg { width: 15px; height: 15px; color: var(--accent); }

/* ---- Section header block ---- */
.sec-head { max-width: 720px; }
.sec-head .h-sec { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }

/* ---- "What it is" feature row ---- */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.what-card { background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.what-card .kv { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.84rem; }
.what-card .kv:last-child { border-bottom: 0; }
.what-card .kv .k { color: var(--text-faint); }
.what-card .kv .v { color: var(--text); }
.what-card .kv .v.accent { color: var(--accent); }

/* ---- How it works (steps) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; }
.step { position: relative; background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 30px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.step:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.step .num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 22px; }
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.98rem; }
.step .arrow { position: absolute; top: 44px; right: -19px; color: var(--text-faint); z-index: 2; }
.step .arrow svg { width: 22px; height: 22px; }

/* ---- Where it answers (surfaces) ---- */
.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.surface { background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.surface:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.surface .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ink-700); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.surface .ico svg { width: 24px; height: 24px; }
.surface h3 { font-size: 1.18rem; }
.surface p { color: var(--text-dim); font-size: 0.96rem; flex: 1; }
.surface .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: 7px; padding-top: 6px; }
.surface .meta .tagk { color: var(--accent-deep); }
.surface.optin { border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.surface .opt-badge { position: absolute; }

/* ---- Why different ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.why-card { border-top: 2px solid var(--accent); background: linear-gradient(180deg, var(--ink-800), transparent); border-radius: 0 0 var(--radius) var(--radius); padding: 28px 24px; }
.why-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.why-card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .inner { background: linear-gradient(160deg, var(--ink-700), var(--ink-850)); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(44px, 6vw, 76px) 28px; position: relative; overflow: hidden; }
.cta-band .inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 280px at 50% -30%, var(--accent-glow), transparent 70%); pointer-events: none; }
.cta-band h2 { position: relative; }
.cta-band .lead { margin: 18px auto 32px; max-width: 540px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-850); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 320px; }
.footer-op { margin-top: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.footer-op strong { color: var(--text-dim); font-weight: 500; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col a .ext { font-size: 0.7rem; opacity: 0.6; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.footer-bottom .contact { color: var(--text-dim); }

/* =========================================================
   Legal / document pages
   ========================================================= */
.doc-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.doc-hero .eyebrow { margin-bottom: 18px; }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc-hero .updated { margin-top: 18px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-faint); }
.doc-hero .updated .ph { color: var(--accent); }

.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; padding: clamp(44px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.doc-toc { position: sticky; top: 92px; }
.doc-toc nav { border-left: 1px solid var(--line); }
.doc-toc h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 500; margin: 0 0 14px 18px; }
.doc-toc ul { list-style: none; display: flex; flex-direction: column; }
.doc-toc a { display: block; color: var(--text-dim); font-size: 0.88rem; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; transition: color 0.18s var(--ease), border-color 0.18s var(--ease); line-height: 1.35; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--line-strong); }

.doc-body { max-width: 740px; }
.doc-body section { scroll-margin-top: 92px; }
.doc-body section + section { margin-top: 48px; }
.doc-body h2 { font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.doc-body h2 .sn { font-family: var(--font-mono); font-size: 0.92rem; color: var(--accent); font-weight: 500; }
.doc-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.doc-body p { color: var(--text-dim); margin-bottom: 14px; }
.doc-body p strong, .doc-body li strong { color: var(--text); font-weight: 600; }
.doc-body ul, .doc-body ol { color: var(--text-dim); margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 9px; }
.doc-body li::marker { color: var(--accent-deep); }
.doc-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.callout { background: var(--ink-800); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 22px; margin: 18px 0; }
.callout .ctitle { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.placeholder { font-family: var(--font-mono); font-size: 0.9em; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 1px 7px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---- Reveal on load ---- */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.7s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ---- Scroll-triggered (in-view) ---- */
.inview { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.inview.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .what-grid { grid-template-columns: 1fr; }
  .steps, .surfaces, .why-grid { grid-template-columns: 1fr; }
  .step .arrow { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta.desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--ink-850); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-header.menu-open .nav-links li { border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav-links a { display: block; padding: 16px 0; font-size: 1.05rem; }
  .site-header.menu-open .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .site-header.menu-open .nav-links .mobile-cta { display: block; }
  .site-header.menu-open .nav-links .btn { width: 100%; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
