/* ============================================================
   Somvio — site stylesheet
   Display: Space Grotesk · Body: Inter
   ============================================================ */

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

:root {
  /* colour */
  --bg:      #F4F5FA;
  --white:   #FFFFFF;
  --border:  #E8E8EE;
  --blue:    #2B2FD6;
  --blue-h:  #6168FF;
  --ink:     #0C0D1A;
  --body:    #444455;
  --muted:   #6E6E80;
  --tint:    #EEEFFE;
  --card-bg: #FFFFFF;

  /* type scale */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --text-xs:   0.75rem;    /* 12px  — eyebrows, tags */
  --text-sm:   0.84375rem; /* 13.5px — captions, small copy */
  --text-base: 0.9375rem;  /* 15px  — body */
  --text-md:   1.03125rem; /* 16.5px — leads */
  --text-lg:   1.25rem;    /* 20px  — card titles, h3 */
  --text-xl:   clamp(1.625rem, 3vw, 2.5rem);   /* section titles */
  --text-2xl:  clamp(2.375rem, 5vw, 3.875rem); /* hero h1 */

  --nav-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-display); }

/* keyboard focus — visible everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── NAV ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,245,250,0.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; height: 34px; }
.nav-logo svg { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; color: var(--body);
  text-decoration: none; transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: background 0.18s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--blue-h) !important; }
.nav-cta:active { transform: translateY(1px); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu .nav-cta {
  margin-top: 12px;
  text-align: center;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 15px !important;
  border-bottom: none;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-display);
  background: var(--blue); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}
.btn-primary:hover { background: var(--blue-h); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  font-family: var(--font-display);
  background: transparent; color: var(--ink);
  padding: 13px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; display: inline-block;
  border: 1px solid var(--border);
  transition: border-color 0.18s, transform 0.1s;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:active { transform: translateY(1px); }

/* ── HERO ───────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  /* fade the animation to near-zero behind the text column */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0.95) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0.95) 100%);
}
.hero {
  position: relative;
  z-index: 1;
  padding: 130px 48px 90px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.hero-inner { max-width: 680px; }
.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--tint);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 span { color: var(--blue); }
.hero-sub {
  font-size: 17px;
  color: var(--body);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* credential strip — replaces the old stats row */
.hero-creds {
  display: flex;
  margin-top: 60px; padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cred {
  flex: 1 1 200px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--border);
}
.cred:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.cred-title {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
}
.cred-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }

/* ── SHARED SECTION ─────────────────────────────────────── */
.section { padding: 96px 48px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink); line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: var(--text-md); color: var(--body);
  max-width: 560px; line-height: 1.72;
  margin-bottom: 52px;
}
hr.divider {
  border: none; border-top: 1px solid var(--border);
  max-width: 1120px; margin: 0 auto;
}

/* ── SERVICES ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(12,13,26,0.07);
}
.service-icon {
  width: 38px; height: 38px;
  background: var(--tint); border-radius: 8px;
  display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px;
}
.service-icon svg {
  width: 18px; height: 18px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
.service-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.68; flex-grow: 1; }
.service-links { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.service-links a {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.service-links a:hover { color: var(--blue-h); text-decoration: underline; }
.service-links .read-more { color: var(--ink); font-weight: 500; }
.service-links .read-more:hover { color: var(--blue); }

.services-close {
  margin-top: 44px;
  font-size: var(--text-base);
  color: var(--body);
}
.services-close a { color: var(--blue); font-weight: 600; text-decoration: none; }
.services-close a:hover { text-decoration: underline; }

/* ── DEMOS (dark band) ──────────────────────────────────── */
.band-dark { background: var(--ink); }
.band-dark .section-tag { color: #6B9FFF; }
.band-dark .section-title { color: #fff; }
.band-dark .section-sub { color: #9A9AAC; }

.demo-card {
  background: #111219;
  border: 1px solid #1E2030;
  border-radius: 12px;
  overflow: hidden;
}
.demo-card-head {
  padding: 22px 26px 0;
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.demo-title {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600; color: #fff;
}
.demo-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #8B93FF; background: rgba(97,104,255,0.12);
  border: 1px solid rgba(97,104,255,0.25);
  padding: 3px 10px; border-radius: 4px;
}
.video-wrapper {
  margin: 20px 26px 0;
  background: #0A0B12;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #1E2030;
  aspect-ratio: 16/9;
  position: relative;
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(97,104,255,0.14), transparent 55%), #0A0B12;
  border: none; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.video-poster:hover .poster-play { background: var(--blue-h); }
.poster-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.poster-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.poster-label {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 500; color: #B9BDD6;
}
.demo-caption {
  padding: 18px 26px 6px;
  font-size: var(--text-sm); color: #9A9AAC; line-height: 1.7;
  max-width: 720px;
}
.demo-note {
  padding: 0 26px 24px;
  font-size: 12.5px; color: #7A7F96;
}

/* ── FOUNDING OFFER (tint band) ─────────────────────────── */
.band-tint { background: var(--tint); }
.offer-body {
  font-size: var(--text-md);
  color: var(--body);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 16px;
}
.offer-body strong { color: var(--ink); }
.slots {
  display: flex; gap: 14px;
  margin: 36px 0 40px;
  flex-wrap: wrap;
}
.slot {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.slot::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #22B573;
}
.slot.taken {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
  text-decoration: line-through;
}
.slot.taken::before { background: #C4C4D0; }

/* ── HOW IT WORKS ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
}
.step { padding-top: 18px; border-top: 2px solid var(--border); }
.step-num {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  color: var(--blue); letter-spacing: 0.08em;
  margin-bottom: 12px; display: block;
}
.step-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.68; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); background: var(--white); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; background: none; border: none;
  padding: 22px 26px; text-align: left;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
  transition: background 0.12s;
}
.faq-question:hover { background: #F8F9FE; }
.faq-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform 0.22s;
  stroke: var(--muted); fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  font-size: var(--text-sm); color: var(--body);
  line-height: 1.72; padding: 0 26px;
}
.faq-item.open .faq-answer { max-height: 380px; padding: 0 26px 22px; }

/* ── CONTACT ────────────────────────────────────────────── */
.band-white { background: var(--white); }
.contact-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.contact-detail { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.contact-detail a { color: var(--blue); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.cal-embed-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  min-height: 480px;
}
.form-heading {
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 600;
  color: var(--ink);
  margin: 36px 0 6px;
}
.form-promise { font-size: var(--text-sm); color: var(--muted); margin-bottom: 16px; }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px; color: var(--ink);
  background: var(--bg);
  transition: border-color 0.18s; outline: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E80' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--blue); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button[type="submit"] { align-self: flex-start; }

/* honeypot — visually hidden */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-success {
  display: none;
  background: #EDFAF1; border: 1px solid #B7EFD0;
  color: #1A7A45; padding: 13px 16px;
  border-radius: 8px; font-size: var(--text-sm); font-weight: 500;
}
.form-error {
  display: none;
  background: #FDF0F0; border: 1px solid #F2C4C4;
  color: #A03030; padding: 13px 16px;
  border-radius: 8px; font-size: var(--text-sm); font-weight: 500;
}
.form-error a { color: inherit; font-weight: 600; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 40px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo svg { height: 28px; width: auto; }
.footer-text { font-size: 13px; color: #8A8A9E; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 13px; color: #B9BDD6; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ── LANDING PAGES ──────────────────────────────────────── */
.lp-hero { padding: 150px 48px 72px; }
.lp-hero .section-inner { max-width: 820px; }
.lp-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12; color: var(--ink);
  margin-bottom: 20px;
}
.lp-hero .hero-sub { margin-bottom: 34px; }
.lp-body .section-inner { max-width: 820px; }
.lp-body h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.25;
  margin: 48px 0 16px;
}
.lp-body h2:first-child { margin-top: 0; }
.lp-body p { margin-bottom: 16px; font-size: var(--text-base); line-height: 1.75; }
.lp-body ul { margin: 0 0 16px 22px; }
.lp-body li { margin-bottom: 8px; font-size: var(--text-base); line-height: 1.7; }
.lp-body strong { color: var(--ink); }
.lp-cta-band .section-inner { max-width: 820px; }
.lp-back { margin-top: 28px; font-size: var(--text-sm); }
.lp-back a { color: var(--blue); text-decoration: none; font-weight: 600; }
.lp-back a:hover { text-decoration: underline; }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 20px 72px; }
  .section { padding: 72px 20px; }
  .lp-hero { padding: 120px 20px 56px; }
  .site-footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .hero-creds { flex-direction: column; gap: 18px; }
  .cred { border-right: none; padding-right: 0; margin-right: 0; }
  .demo-card-head, .demo-caption { padding-left: 18px; padding-right: 18px; }
  .video-wrapper { margin-left: 18px; margin-right: 18px; }
  .demo-note { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 400px) {
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  #hero-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}
