/* ============================================================
   CollectViz — marketing site (collectviz.ai)
   Brand: dark ink #070A0F · holo cyan→magenta→gold · Plus Jakarta Sans
   ============================================================ */

:root {
  --ink: #070a0f;
  --ink-2: #0b1120;
  --surface: #0c1322;
  --surface-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --cloud: #f8fbff;
  --slate: #9fb0c5;
  --slate-dim: #6b7a93;
  --cyan: #6de7ff;
  --magenta: #e33bff;
  --gold: #ffc857;
  --teal: #32e6b0;
  --pink: #ff4bc1;
  --holo: linear-gradient(115deg, #6de7ff 0%, #e33bff 52%, #ffc857 100%);
  --maxw: 1140px;
  --radius: 18px;
}

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

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

body {
  background: var(--ink);
  color: var(--cloud);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- shared headings ---- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.center { text-align: center; }
.grad {
  background: var(--holo);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.kicker.center { display: block; text-align: center; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #07111a;
  background: linear-gradient(120deg, #6de7ff 0%, #8f7bff 50%, #ffc857 100%);
  box-shadow: 0 10px 30px rgba(109, 231, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109, 231, 255, 0.32); }
.btn-ghost { color: var(--cloud); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(109, 231, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, 0.72); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: 0 0 auto; filter: drop-shadow(0 6px 16px rgba(50, 230, 176, 0.2)); }
.brand-word { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--cloud); }
.brand-word span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--slate); font-weight: 600; font-size: 0.95rem; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--cloud); }
.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; pointer-events: none;
  background:
    radial-gradient(680px 420px at 78% 8%, rgba(227, 59, 255, 0.16), transparent 60%),
    radial-gradient(720px 460px at 12% 0%, rgba(109, 231, 255, 0.18), transparent 58%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe0f4 62%, #f3d9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 22px 0 28px; font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: #c5d2e5; max-width: 33ch; }
.hero-sub strong { color: var(--cloud); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--slate-dim); }

/* hero app-preview mockup */
.hero-visual { display: flex; justify-content: center; }
.preview-card {
  width: 100%; max-width: 420px; padding: 20px; border-radius: 24px;
  background: linear-gradient(180deg, #111a2e 0%, #0a1020 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px rgba(2, 6, 18, 0.6), 0 0 0 1px rgba(109, 231, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative; overflow: hidden;
}
.holo-strip { display: flex; height: 5px; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.holo-strip i { flex: 1; }
.holo-strip i:nth-child(1) { background: var(--cyan); }
.holo-strip i:nth-child(2) { background: var(--magenta); }
.holo-strip i:nth-child(3) { background: var(--gold); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-label { font-size: 0.82rem; color: var(--slate); font-weight: 600; }
.preview-pill { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #07140f; background: var(--teal); padding: 4px 10px; border-radius: 999px; }
.preview-value { margin-top: 8px; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--cloud); }
.preview-delta { color: var(--teal); font-weight: 700; font-size: 0.92rem; }
.preview-chart { width: 100%; height: 120px; margin: 16px 0 4px; overflow: visible; }
.preview-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.7s ease forwards 0.35s; }
.preview-node { opacity: 0; animation: pop 0.5s ease forwards 1.9s; transform-box: fill-box; transform-origin: center; }
.preview-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.preview-tiles span {
  aspect-ratio: 3 / 4; border-radius: 10px;
  background: linear-gradient(160deg, #1b2f49, #131f36);
  border: 1px solid rgba(109, 231, 255, 0.18);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* ---- value strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: clamp(36px, 5vw, 56px) 24px; }
.strip-item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.strip-item p { color: var(--slate); font-size: 0.98rem; }

/* ---- feature sections ---- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  padding: clamp(56px, 8vw, 100px) 24px;
}
.feature.reverse .feature-text { order: 2; }
.feature h2 { margin: 6px 0 18px; }
.feature-text p { color: var(--slate); font-size: 1.05rem; max-width: 46ch; }
.feature-caption { margin-top: 16px !important; color: var(--cyan) !important; font-weight: 600; }

/* feature art blocks */
.feature-art { display: flex; justify-content: center; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 380px; }
.mini-card {
  aspect-ratio: 3 / 4; border-radius: 14px;
  background: linear-gradient(160deg, #1a2c45, #111d33);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(2, 6, 18, 0.45);
  position: relative;
}
.mini-card::after { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 1px solid transparent; background: var(--holo) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; }
.mini-card:nth-child(2), .mini-card:nth-child(4), .mini-card:nth-child(6) { transform: translateY(14px); }

.win-card {
  width: 100%; max-width: 360px; padding: 26px; border-radius: 20px; display: grid; gap: 6px;
  background: linear-gradient(180deg, #121a2e, #0b1222); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(2, 6, 18, 0.5);
}
.win-eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.win-title { font-size: 1.3rem; font-weight: 800; color: var(--cloud); }
.win-up { font-size: 2rem; font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
.win-sub { color: var(--slate); font-size: 0.95rem; }

.tool-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; max-width: 420px; }
.tool-chips li {
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; color: var(--cloud);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.tool-chips li:nth-child(3n+1) { border-color: rgba(109, 231, 255, 0.35); }
.tool-chips li:nth-child(3n+2) { border-color: rgba(227, 59, 255, 0.3); }
.tool-chips li:nth-child(3n) { border-color: rgba(255, 200, 87, 0.3); }

/* ---- independent-advisor band ---- */
.band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0a1120, #070a0f); }
.band-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(720px 360px at 50% 0%, rgba(109, 231, 255, 0.14), transparent 62%); }
.band-inner { position: relative; padding: clamp(56px, 8vw, 96px) 24px; max-width: 820px; margin: 0 auto; text-align: center; }
.band-lead { margin: 20px auto 0; color: var(--slate); font-size: 1.08rem; max-width: 60ch; }
.band-punch { margin: 22px auto 0; font-size: clamp(1.1rem, 2.1vw, 1.4rem); font-weight: 700; color: var(--cloud); max-width: 52ch; }
.band-punch strong { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- how it works ---- */
.how { padding: clamp(56px, 8vw, 96px) 0; }
.how h2 { margin-bottom: 44px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; color: var(--ink); background: var(--holo); margin-bottom: 16px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 0.98rem; }

/* ---- faq ---- */
.faq { padding: clamp(48px, 7vw, 88px) 24px; max-width: 820px; }
.faq h2 { margin-bottom: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; transition: border-color .18s ease; }
.faq details[open] { border-color: rgba(109, 231, 255, 0.3); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding: 0 0 18px; font-size: 0.99rem; }

/* ---- final cta ---- */
.final { position: relative; overflow: hidden; text-align: center; }
.final-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 360px at 50% 120%, rgba(227, 59, 255, 0.16), transparent 60%), radial-gradient(620px 320px at 50% -20%, rgba(109, 231, 255, 0.14), transparent 60%); }
.final-inner { position: relative; padding: clamp(64px, 10vw, 130px) 24px; }
.final h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.final p { margin: 16px 0 30px; color: var(--slate); font-size: 1.1rem; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: #05070b; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-tag { color: var(--slate); font-size: 0.92rem; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--cloud); }
.footer-fine { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate-dim); font-size: 0.8rem; }
.footer-fine .disclaimer { margin-top: 8px; max-width: 80ch; line-height: 1.5; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-sub { max-width: 46ch; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .strip-grid { grid-template-columns: 1fr; gap: 22px; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-text { order: 0; }
  .feature-text { text-align: center; }
  .feature-text p { margin-left: auto; margin-right: auto; }
  .feature-caption { text-align: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.nav-cta) { display: none; }
  .preview-value { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .preview-line { stroke-dashoffset: 0; animation: none; }
  .preview-node { opacity: 1; animation: none; }
  .btn { transition: none; }
}
