/* ============================================================================
   VIZid Suite — site styles
   Dark, premium, industrial-design aesthetic.
   Brand: teal #3fb6c6 / #1a7f8c, peach + mint brushstroke accents.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --teal:        #3fb6c6;
  --teal-deep:   #1a7f8c;
  --teal-glow:   rgba(63, 182, 198, 0.35);
  --peach:       #f6b483;
  --mint:        #a9d9bb;

  /* Surfaces */
  --bg:          #0a0c0e;
  --bg-2:        #0e1114;
  --panel:       #13171b;
  --panel-2:     #171c21;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --ink:         #eef2f4;
  --ink-soft:    #aeb7bd;
  --ink-dim:     #79858d;

  /* Geometry */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;
  --maxw:        1180px;
  --gutter:      clamp(20px, 5vw, 48px);

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 75% -10%, rgba(63, 182, 198, 0.10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(246, 180, 131, 0.06), transparent 60%),
    radial-gradient(40vw 40vw at 50% 120%, rgba(26, 127, 140, 0.10), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
p { margin: 0; }

::selection { background: var(--teal); color: #06181b; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 130px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--teal); opacity: 0.7; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.075rem; margin-top: 18px; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --b: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, #4cc6d6, var(--teal-deep));
  color: #04161a;
  box-shadow: 0 10px 30px -10px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); border-color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 12, 14, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 12, 14, 0.82); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand .word { font-size: 1.2rem; }
.brand .word b { font-weight: 800; }
.brand .word span { color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px;
  }
  .nav-links.open a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 7vw, 90px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 25%, #000 30%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 620px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  color: var(--ink-soft); border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--teal) 0%, var(--mint) 55%, var(--peach) 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-dim); font-size: 0.85rem; }
.hero-meta b { color: var(--ink-soft); font-weight: 600; }

/* Hero visual: the product on a lit studio stage — spotlights, dome, reflection */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-stage {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(125% 85% at 50% 6%, #18242e 0%, #0d1116 46%, #090b0e 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -50px #000, inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-stage::after {                       /* studio floor / horizon line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(180deg, transparent, rgba(63,182,198,.06));
  border-top: 1px solid rgba(255,255,255,.05);
}
.spot {                                    /* studio spotlight beams */
  position: absolute; top: -6%; width: 46%; height: 82%; pointer-events: none;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(17px); opacity: .55; mix-blend-mode: screen;
}
.spot-l { left: 3%;  transform-origin: top center; transform: rotate(15deg);
  background: linear-gradient(180deg, rgba(63,182,198,.75), transparent 72%); }
.spot-r { right: 3%; transform-origin: top center; transform: rotate(-15deg);
  background: linear-gradient(180deg, rgba(246,180,131,.60), transparent 72%); }
.hero-dome {                               /* HDRI environment hint behind product */
  position: absolute; left: 50%; top: 12%; width: 68%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(circle at 50% 32%, rgba(63,182,198,.10), transparent 56%); pointer-events: none;
}
.hero-gem {                                /* the product on the pedestal */
  position: absolute; left: 27%; top: 13%; width: 46%; z-index: 2;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite;
}
.hero-gem img, .hero-reflection img { width: 100%; display: block; }
.hero-reflection {                         /* mirrored floor reflection */
  position: absolute; left: 31%; top: 56%; width: 38%; transform: scaleY(-1);
  opacity: .14; filter: blur(2px); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
          mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; z-index: 3;
  padding: 10px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 500;
  background: rgba(13,17,21,.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.75);
  animation: float 8s ease-in-out infinite;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--teal); }
.chip-live { top: 8%; right: -5%; }
.chip-live .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-out infinite; }
.chip-cmf { bottom: 10%; left: -6%; animation-delay: -3s; }
.chip-cmf .sw { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,182,198,.5); } 100% { box-shadow: 0 0 0 8px rgba(63,182,198,0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .hero-chip { font-size: 0.76rem; }
}

/* ---- Manifesto band ------------------------------------------------------ */
.manifesto { text-align: center; position: relative; }
.manifesto .wrap { max-width: 860px; }
.manifesto .eyebrow { justify-content: center; }
.manifesto h2 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 16px; line-height: 1.12; }
.manifesto h2 .grad { background: linear-gradient(100deg, var(--teal), var(--mint), var(--peach)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.manifesto p { color: var(--ink-soft); font-size: clamp(1.05rem, 2.1vw, 1.28rem); line-height: 1.72; margin-top: 24px; }
.manifesto p b { color: var(--ink); }
.manifesto .sig { margin-top: 26px; color: var(--ink-dim); font-size: 0.9rem; letter-spacing: 0.02em; }

/* ---- Logo strip ---------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 26px; }
.strip span { color: var(--ink-dim); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.strip .pills { display: flex; flex-wrap: wrap; gap: 12px; }
.strip .pill { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(63,182,198,.12); border: 1px solid rgba(63,182,198,.22); color: var(--teal);
  margin-bottom: 18px;
}
.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin-top: 10px; font-size: 0.96rem; }

/* Product card extras */
.product-card { display: flex; flex-direction: column; }
.product-card .tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.product-card .meta { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .meta a { color: var(--teal); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.product-card .meta a:hover { gap: 10px; }
.product-card .meta a svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }

/* ---- Feature split ------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--panel); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
  position: relative;
}
.split-media::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 80px rgba(0,0,0,.4); pointer-events:none; }
.split-media img { width: 100%; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; color: var(--ink-soft); }
.feature-list .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(63,182,198,.14); color: var(--teal); margin-top: 2px; }
.feature-list .ck svg { width: 13px; height: 13px; }
.feature-list b { color: var(--ink); font-weight: 600; }

/* ---- Stats --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.stat .n { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--teal), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---- Download cards ------------------------------------------------------ */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.dl-head { display: flex; align-items: flex-start; gap: 16px; }
.dl-head .ico { margin: 0; flex: none; }
.dl-head h3 { font-size: 1.15rem; }
.dl-head .tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.dl-card p { color: var(--ink-soft); font-size: 0.95rem; }
.dl-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.dl-specs span { font-size: 0.78rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; }
.dl-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl-soon { font-size: 0.78rem; color: var(--peach); display: inline-flex; align-items: center; gap: 7px; }
.dl-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.dl-note { color: var(--ink-dim); font-size: 0.82rem; }
.dl-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-dim); font-size: 0.76rem; word-break: break-all; }

/* ---- CTA band ------------------------------------------------------------ */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(63,182,198,.20), transparent 60%),
    radial-gradient(50% 120% at 10% 100%, rgba(246,180,131,.12), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { color: var(--ink-soft); max-width: 560px; margin: 16px auto 0; }
.cta .hero-actions { justify-content: center; }

/* ---- Guide hub ----------------------------------------------------------- */
.toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .toc { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } }
.toc a {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.toc a:hover { border-color: var(--teal); transform: translateY(-3px); background: rgba(63,182,198,.05); }
.toc .ico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(63,182,198,.12); color: var(--teal); }
.toc .ico svg { width: 19px; height: 19px; }
.toc b { display: block; color: var(--ink); font-size: 1rem; }
.toc small { color: var(--ink-soft); font-size: 0.85rem; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 36px; margin-top: 40px; background: rgba(255,255,255,0.012); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--ink-soft); font-size: 0.92rem; max-width: 320px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--ink-soft); font-size: 0.92rem; transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--teal); }
.footer-base { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--ink-dim); font-size: 0.85rem; }
.footer-base a { color: var(--ink-dim); }
.footer-base a:hover { color: var(--ink-soft); }

/* ---- Page header (sub pages) -------------------------------------------- */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 18px; max-width: 640px; }

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

/* ---- Misc ---------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-sm);
  padding: 18px 22px; background: rgba(63,182,198,.04); color: var(--ink-soft); font-size: 0.95rem;
}
.callout b { color: var(--ink); }
