/* =========================================================
   Spektra+  —  Modern refresh (static)
   Palette: dark control-room UI with a spectrum accent.
   ========================================================= */

:root {
  --bg:        #0b0d12;
  --bg-2:      #12151d;
  --bg-3:      #171b25;
  --surface:   #1b2029;
  --border:    #262c39;
  --text:      #e8ecf3;
  --text-dim:  #9aa4b6;
  --text-mute: #6b7488;
  --white:     #ffffff;

  /* Spectrum accent — the "Spektra" identity */
  --spec-1: #ff4d8d; /* magenta */
  --spec-2: #a24bff; /* purple  */
  --spec-3: #3b82f6; /* blue    */
  --spec-4: #22d3ee; /* cyan    */
  --spectrum: linear-gradient(90deg, var(--spec-1), var(--spec-2), var(--spec-3), var(--spec-4));

  --accent: #a24bff;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--spec-4);
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 96px 0; }
.section-lead { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-lead p { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(99,80,237,.6); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,18,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--spectrum);
  box-shadow: 0 0 20px rgba(162,75,255,.6);
}
.brand .plus { color: var(--spec-4); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-dim);
  font-size: .95rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: 10px; }
/* Keep the header CTA a proper pill button — don't inherit nav-link overrides */
.nav-links a.btn-primary {
  color: #fff; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary.active {
  color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(255,77,141,.20), transparent 60%),
    radial-gradient(600px 400px at 80% 20%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(700px 500px at 50% 90%, rgba(162,75,255,.20), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 1.2rem; max-width: 640px; margin: 1.2rem auto 2rem; color: var(--text-dim); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.2rem; font-size: .85rem; color: var(--text-mute); }

/* App mockup under hero */
.hero-visual {
  position: relative; z-index: 1;
  margin: 64px auto 0;
  max-width: 900px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual .bar {
  display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.hero-visual .bar span { width: 12px; height: 12px; border-radius: 50%; background: #2c3342; }
.hero-visual .bar span:nth-child(1){ background:#ff5f57; }
.hero-visual .bar span:nth-child(2){ background:#febc2e; }
.hero-visual .bar span:nth-child(3){ background:#28c840; }
.mock-body { padding: 28px; display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 16px; }
.swatch {
  height: 90px; border-radius: 12px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.swatch::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.85);
}

/* ---------- Logo / trust strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip .container { padding-top: 34px; padding-bottom: 34px; text-align: center; }
.strip .platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 18px; }
.strip .platforms span { color: var(--text-dim); font-weight: 600; font-size: 1rem; }
.strip small { color: var(--text-mute); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #39415a; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(162,75,255,.12); margin-bottom: 18px; font-size: 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg,var(--bg-3),var(--bg-2)); padding: 30px; min-height: 300px;
  box-shadow: var(--shadow);
}
.split h2 { font-size: 2rem; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text-dim); }
.feature-list li::before {
  content: "✦"; color: var(--spec-4); font-size: .9rem; margin-top: 3px; flex-shrink: 0;
}

/* Sliders mock */
.sliders { display: grid; gap: 18px; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row .lbl { width: 44px; font-size: .8rem; color: var(--text-mute); font-weight: 600; }
.track { flex: 1; height: 8px; border-radius: 999px; background: #232a36; position: relative; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.track .knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat .num { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; }
.stat .lbl { color: var(--text-mute); font-size: .9rem; }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.quote blockquote { font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 600; letter-spacing: -0.01em; color: var(--white); margin: 0 0 1.4rem; line-height: 1.4; }
.quote .who { color: var(--text-dim); font-size: .98rem; }
.quote .who strong { color: var(--white); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(5,1fr); }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--spectrum); color: #0b0d12; font-weight: 800; font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(255,77,141,.14), rgba(34,211,238,.12));
  border: 1px solid var(--border);
}
.cta-band h2 { max-width: 620px; margin: 0 auto .6rem; }
.cta-band p { max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.05rem; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--spec-4); font-size: 1.5rem; font-weight: 300; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-dim); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); }
.doc-hero .updated { color: var(--text-mute); font-size: .9rem; }
.doc { max-width: 820px; margin: 0 auto; padding: 56px 0 96px; }
.doc h2 { font-size: 1.4rem; margin-top: 2.4rem; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-dim); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 24px 28px; margin-bottom: 40px;
}
.doc .toc h3 { margin-top: 0; }
.doc .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 32px; }
.doc .toc a { color: var(--text-dim); font-size: .92rem; }
.doc .toc a:hover { color: var(--spec-4); }
.callout {
  background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.22);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; font-size: .95rem;
}

/* ---------- Contact strip ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-card a { color: var(--spec-4); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: .95rem; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { font-size: .92rem; max-width: 320px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-mute); font-size: .85rem;
}

/* ---------- Real images ---------- */
.brand img.dot { background: transparent; box-shadow: none; object-fit: contain; }
.hero-visual img.screen { width: 100%; height: auto; display: block; }
.split-media img.shot {
  width: 100%; height: auto; border-radius: 10px; display: block;
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.7);
}
.split-media.has-shot { padding: 22px; min-height: 0; }
.quote .portrait {
  width: 100%; height: auto; max-width: 560px; margin: 0 auto 34px; display: block;
  border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .stats { grid-template-columns: repeat(2,1fr); }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .doc .toc ol { columns: 1; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px;
    transform: translateY(-120%); transition: transform .25s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .grid-3, .stats, .grid-2, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
