/* ============================================================
   CallSpace — Design System
   Premium SaaS landing. Deep blue + indigo/violet.
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,900&f[]=general-sans@400,500,600,700&display=swap');

:root {
  /* ---- Color: ink ---- */
  --ink:        #0A0E1A;
  --ink-2:      #353B4C;
  --ink-3:      #5A6172;
  --ink-4:      #8A91A2;
  --line:       rgba(10, 14, 26, 0.08);
  --line-2:     rgba(10, 14, 26, 0.06);

  /* ---- Color: surfaces ---- */
  --bg:         #FFFFFF;
  --bg-soft:    #F6F4FB;
  --bg-tint:    #F4EFFE;
  --bg-ink:     #0B0813;
  --bg-ink-2:   #15101F;
  --surface:    #FFFFFF;
  --surface-2:  #FBFAFE;
  --glass:      rgba(255,255,255,0.72);
  --glass-2:    rgba(255,255,255,0.85);
  --glass-strong: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.6);
  --ring:       #FFFFFF;

  /* ---- Color: brand (purple) ---- */
  --blue:       #6366F1;   /* periwinkle — secondary data series */
  --blue-600:   #4F46E5;
  --blue-700:   #4338CA;
  --indigo:     #7C3AED;   /* PRIMARY purple accent */
  --violet:     #9333EA;   /* deep purple */
  --sky:        #A855F7;

  --grad:       linear-gradient(135deg, #6D28D9 0%, #8B5CF6 52%, #A855F7 100%);
  --grad-soft:  linear-gradient(135deg, #F2ECFE 0%, #F7F0FF 100%);
  --grad-text:  linear-gradient(120deg, #7C3AED 0%, #9333EA 45%, #A855F7 100%);
  --grad-mesh:  radial-gradient(60% 80% at 15% 0%, rgba(124,58,237,0.16), transparent 60%),
                radial-gradient(50% 70% at 90% 10%, rgba(147,51,234,0.13), transparent 60%),
                radial-gradient(70% 90% at 50% 110%, rgba(109,40,217,0.11), transparent 55%);

  /* ---- Radii ---- */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Shadow (soft, layered) ---- */
  --sh-xs: 0 1px 2px rgba(10,14,26,0.05);
  --sh-sm: 0 2px 8px rgba(10,14,26,0.06), 0 1px 2px rgba(10,14,26,0.04);
  --sh-md: 0 12px 32px -10px rgba(10,14,26,0.14), 0 4px 10px -4px rgba(10,14,26,0.08);
  --sh-lg: 0 30px 60px -18px rgba(13,22,55,0.28), 0 12px 24px -12px rgba(13,22,55,0.14);
  --sh-xl: 0 50px 100px -30px rgba(13,22,55,0.40), 0 20px 40px -20px rgba(13,22,55,0.20);
  --sh-blue: 0 16px 40px -12px rgba(124,58,237,0.45);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --gutter: 24px;

  /* ---- Type ---- */
  --font: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-alt: 'General Sans', 'Satoshi', system-ui, sans-serif;
}

/* ============================================================ Dark mode */
[data-theme="dark"] {
  --ink:        #EEF0F7;
  --ink-2:      #C2C6D6;
  --ink-3:      #9298AB;
  --ink-4:      #686F84;
  --line:       rgba(255,255,255,0.10);
  --line-2:     rgba(255,255,255,0.06);

  --bg:         #0A0C14;
  --bg-soft:    #0E1019;
  --bg-tint:    rgba(139,92,246,0.16);
  --bg-ink:     #06070D;
  --bg-ink-2:   #0E1019;
  --surface:    #161A26;
  --surface-2:  #1B2030;
  --glass:      rgba(22,26,38,0.72);
  --glass-2:    rgba(22,26,38,0.82);
  --glass-strong: rgba(10,12,20,0.72);
  --glass-border: rgba(255,255,255,0.08);
  --ring:       #14171F;

  --grad-soft:  linear-gradient(135deg, rgba(124,58,237,0.20) 0%, rgba(147,51,234,0.16) 100%);

  --sh-sm: 0 2px 8px rgba(0,0,0,0.40), 0 1px 2px rgba(0,0,0,0.30);
  --sh-md: 0 12px 32px -10px rgba(0,0,0,0.55), 0 4px 10px -4px rgba(0,0,0,0.40);
  --sh-lg: 0 30px 60px -18px rgba(0,0,0,0.70), 0 12px 24px -12px rgba(0,0,0,0.45);
  --sh-xl: 0 50px 100px -30px rgba(0,0,0,0.80), 0 20px 40px -20px rgba(0,0,0,0.55);
}
[data-theme="dark"] body { color-scheme: dark; }
html { transition: background .4s ease; }
body { transition: background .4s ease, color .3s ease; }

/* ============================================================ 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; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(79,70,229,0.18); }

/* ============================================================ Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

/* ============================================================ Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }

.h-display {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
}
.h-section {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.06;
}
.h-sub {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em; font-weight: 600;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  color: var(--ink-2); line-height: 1.55; font-weight: 450;
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.kicker-center { text-align: center; }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }
.section-head h2 { margin-top: 18px; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 0 22px; height: 50px; border-radius: var(--r-pill);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .2s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #fff; box-shadow: var(--sh-blue);
  background-size: 140% 140%; background-position: 0% 50%;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -12px rgba(124,58,237,0.55); background-position: 100% 50%; }
.btn-ghost {
  background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-ico { width: 18px; height: 18px; }

/* ============================================================ Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-strong);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; box-shadow: var(--sh-blue);
  position: relative; flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--sh-xs); transition: color .2s, background .2s, transform .2s, box-shadow .2s; flex: none;
}
.theme-toggle:hover { color: var(--indigo); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--sh-xs); flex: none;
}
.lang-switch button {
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-3); padding: 6px 12px; border-radius: var(--r-pill); line-height: 1;
  transition: color .2s, background .2s, box-shadow .2s;
}
.lang-switch button[aria-pressed="true"] {
  color: #fff; background: var(--grad); box-shadow: var(--sh-blue);
}
.nav-cta-btn { height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---- Hamburger (mobile) ---- */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--sh-xs);
  align-items: center; justify-content: center; flex: none;
  position: relative; cursor: pointer;
  transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}
.nav-toggle:hover { color: var(--indigo); box-shadow: var(--sh-sm); }
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), opacity .2s, top .25s;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 20px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---- Mobile drawer ---- */
.nav-mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height .35s cubic-bezier(.2,.7,.3,1), opacity .25s ease, padding .25s ease, visibility 0s linear .35s;
  border-top: 1px solid transparent;
}
.nav.open .nav-mobile {
  max-height: 520px;
  opacity: 1;
  visibility: visible;
  border-top-color: var(--line);
  padding: 16px var(--gutter) 22px;
  transition: max-height .35s cubic-bezier(.2,.7,.3,1), opacity .25s ease, padding .25s ease, visibility 0s;
}
.nav-mobile-links { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-link {
  display: block; font-size: 16px; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border-radius: 12px;
  transition: color .2s, background .2s;
}
.nav-mobile-link:hover, .nav-mobile-link:focus-visible { background: var(--bg-soft); color: var(--indigo); }
.nav-mobile-cta {
  display: flex; width: 100%; margin-top: 14px;
  height: 48px; font-size: 15.5px;
}
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,14,26,0.36); opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { display: block; }
  .nav.open { background: var(--glass-strong); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-inner { height: 64px; }
  .nav-cta { gap: 8px; }
  .nav-cta-btn { display: none; }
  .lang-switch button { padding: 6px 10px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .nav-inner { height: 60px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .nav-cta { gap: 6px; }
  .theme-toggle, .nav-toggle { width: 38px; height: 38px; border-radius: 10px; }
  .nav-toggle-bar:nth-child(1) { top: 12px; }
  .nav-toggle-bar:nth-child(2) { top: 18px; }
  .nav-toggle-bar:nth-child(3) { top: 24px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1),
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 18px; }
}
@media (max-width: 360px) {
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 8px; font-size: 11.5px; }
}

/* ============================================================ Reveal animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ Generic card */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(124,58,237,0.3); }

/* ============================================================ Mock UI primitives (product screenshots in HTML) */
.mock {
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--sh-xl); overflow: hidden; position: relative;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-2); background: var(--surface-2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-dots i:nth-child(1){ background:#FF5F57; } .mock-dots i:nth-child(2){ background:#FEBC2E; } .mock-dots i:nth-child(3){ background:#28C840; }
.mock-url {
  margin-left: 10px; font-size: 12px; color: var(--ink-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill); line-height: 1;
}
.chip-green { background: #E7F8EF; color: #058a4a; }
.chip-blue  { background: #E8F0FE; color: var(--blue-600); }
.chip-amber { background: #FEF4E6; color: #B45309; }
.chip-violet{ background: #F1ECFE; color: var(--violet); }
.chip-gray  { background: #F1F2F5; color: var(--ink-3); }
[data-theme="dark"] .chip-green { background: rgba(16,185,129,0.16); color: #4ade80; }
[data-theme="dark"] .chip-blue  { background: rgba(99,102,241,0.20); color: #a5b4fc; }
[data-theme="dark"] .chip-amber { background: rgba(245,158,11,0.16); color: #fbbf24; }
[data-theme="dark"] .chip-violet{ background: rgba(147,51,234,0.22); color: #d8b4fe; }
[data-theme="dark"] .chip-gray  { background: rgba(255,255,255,0.08); color: var(--ink-3); }

/* avatar */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color:#fff; flex: none; }

/* tiny icon tile */
.itile {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--indigo); border: 1px solid rgba(124,58,237,0.16);
}
.itile svg { width: 23px; height: 23px; }
.itile.solid { background: var(--grad); color: #fff; border: none; box-shadow: var(--sh-blue); }

/* float animation */
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@keyframes floaty2 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(11px); } }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty2 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .float-a, .float-b { animation: none; } }

/* pulse ring for voice viz */
@keyframes ring { 0%{ transform: scale(.6); opacity:.7; } 100%{ transform: scale(2.2); opacity:0; } }
@keyframes eq { 0%,100%{ height: 18%; } 50%{ height: 100%; } }
