/* WebTalk Studio — shared site styles (Dark-mode brand system)
   Background: Deep Navy #0F172A · Panels: Slate Black #111827
   Cards/forms: Cloud White #F8FAFC · Accent: Sky #38BDF8
   Logo gradient: linear-gradient(135deg, #00AEEF, #0057B8)
   Type: Plus Jakarta Sans (display) + Inter (body)
*/

:root {
  /* Brand foundations */
  --c-bg: #0F172A;          /* Deep Navy — main bg */
  --c-bg-2: #111827;        /* Slate Black — secondary panels */
  --c-bg-3: #0B1220;        /* Even deeper for footer / contrast */

  --c-card: #F8FAFC;        /* Cloud White — cards/forms */
  --c-card-2: #FFFFFF;
  --c-line: rgba(248,250,252,.10);   /* Light borders on dark */
  --c-line-2: rgba(248,250,252,.06);
  --c-line-light: #E2E8F0;  /* Borders inside light cards */
  --c-line-input: #CBD5E1;  /* Form fields */

  /* Accent */
  --c-blue: #38BDF8;        /* Sky — primary accent */
  --c-blue-600: #0284C7;    /* hover */
  --c-blue-700: #0369A1;
  --c-blue-100: rgba(56,189,248,.14);
  --c-blue-50:  rgba(56,189,248,.08);

  /* Logo gradient */
  --grad-logo: linear-gradient(135deg, #00AEEF, #0057B8);
  --c-cyan: #00AEEF;
  --c-deep-blue: #0057B8;

  /* Greens / utility */
  --c-green: #22C55E;
  --c-green-100: rgba(34,197,94,.14);

  /* Text colors */
  --c-text-on-dark: #CBD5E1;        /* paragraph on dark bg */
  --c-text-mute-on-dark: #94A3B8;
  --c-text-strong-on-dark: #F8FAFC;
  --c-text: #475569;                /* paragraph on light card */
  --c-text-strong: #0F172A;         /* heading on light card */
  --c-mute: #64748B;
  --c-cta-text: #082F49;            /* on Sky button */

  /* Legacy variable aliases — most inline `color:var(--c-navy)` lives inside white
     inline-styled cards (hero floats, testimonials, pricing pills) and must read dark.
     Headings outside cards are already pinned to #F8FAFC by the h1-h5 rule. */
  --c-navy: #0F172A;
  --c-navy-700: #1E293B;
  --c-navy-500: #334155;
  --c-ink: #0F172A;
  --c-ink-2: #1E293B;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 1px rgba(0,0,0,.22);
  --shadow-2: 0 4px 14px rgba(0,0,0,.30), 0 2px 4px rgba(0,0,0,.22);
  --shadow-3: 0 24px 50px -16px rgba(0,0,0,.55), 0 8px 18px rgba(0,0,0,.30);
  --shadow-blue: 0 18px 36px -16px rgba(56,189,248,.55), 0 6px 14px rgba(56,189,248,.18);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --ff-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--c-text-on-dark);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: #7DD3FC; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--c-text-strong-on-dark);
  margin: 0 0 .4em;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--bg { background: var(--c-bg-2); }
.section--navy { background: var(--c-bg-3); color: var(--c-text-on-dark); }
.section--light {
  background: var(--c-card);
  color: var(--c-text);
}
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--c-text-strong); }
.section--light p { color: var(--c-text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-blue);
  color: var(--c-cta-text);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--c-blue-600);
  color: var(--c-cta-text);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-text-strong-on-dark);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: rgba(56,189,248,.04);
}
.btn--dark {
  background: var(--c-card);
  color: var(--c-text-strong);
}
.btn--dark:hover { background: #fff; color: var(--c-text-strong); }
.btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---- Eyebrow / pill ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-50);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-blue-100);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
}
.eyebrow--mute {
  color: var(--c-text-mute-on-dark); background: rgba(248,250,252,.05); border-color: var(--c-line);
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, .80);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--c-text-strong-on-dark);
}
.brand img { height: 36px; width: auto; filter: brightness(1.05); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--c-text-on-dark);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--c-blue); }
.nav a.is-active { color: var(--c-text-strong-on-dark); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--c-blue); border-radius: 2px;
}
.header-cta { display: inline-flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(248,250,252,.05); border: 1px solid var(--c-line); color: var(--c-text-strong-on-dark);
    cursor: pointer;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--c-bg-3);
  color: var(--c-text-mute-on-dark);
  padding: 80px 0 32px;
  border-top: 1px solid var(--c-line);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: var(--c-text-on-dark); }
.site-footer a:hover { color: var(--c-blue); }
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-brand { color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 32px; }
.footer-tag { font-size: 14px; color: var(--c-text-mute-on-dark); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid var(--c-line);
  margin-top: 56px;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--c-text-mute-on-dark);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(248,250,252,.06); color: var(--c-text-on-dark);
}
.socials a:hover { background: var(--c-blue); color: var(--c-cta-text); }
@media (max-width: 880px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .grid > .col-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Cards (light islands on dark bg) ---- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
  color: var(--c-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card h1, .card h2, .card h3, .card h4 { color: var(--c-text-strong); }
.card p { color: var(--c-text); }
.card a { color: var(--c-blue-600); }
.card a:hover { color: var(--c-blue-700); }
.card .muted { color: var(--c-mute); }
.card .kicker { color: var(--c-blue-600); }
.card .stat-num { color: var(--c-text-strong); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(56,189,248,.12);
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---- Hero shapes ---- */
.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}

/* ---- Placeholder image ---- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(248,250,252,.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, rgba(56,189,248,.10), rgba(15,23,42,0));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-mute-on-dark);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, rgba(0,174,239,.22), transparent 60%);
  pointer-events: none;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Utility ---- */
.center { text-align: center; }
.muted { color: var(--c-text-mute-on-dark); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--c-text-on-dark); max-width: 62ch; }
.lead.center { margin-left: auto; margin-right: auto; }
.kicker {
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-blue);
}

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Stats ---- */
.stat-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 48px);
  color: var(--c-text-strong-on-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--c-text-mute-on-dark); font-size: 14px; margin-top: 8px; }

/* ---- Form fields ---- */
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text-strong);
}
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-line-input);
  background: #fff;
  font: inherit;
  color: var(--c-text-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(56,189,248,.20);
}
.textarea { min-height: 140px; resize: vertical; }

/* ---- Tag/Chip ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-blue-50);
  color: var(--c-blue);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--c-blue-100);
}
.chip--mute {
  background: rgba(248,250,252,.05);
  color: var(--c-text-mute-on-dark);
  border-color: var(--c-line);
}
.chip--green { background: var(--c-green-100); color: #4ADE80; border-color: rgba(34,197,94,.30); }
/* chip inside a light card */
.card .chip { background: rgba(56,189,248,.10); color: var(--c-blue-600); border-color: rgba(56,189,248,.25); }
.card .chip--mute { background: #EEF2F7; color: var(--c-mute); border-color: var(--c-line-light); }
.card .chip--green { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(0,174,239,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 110%, rgba(0,87,184,.20), transparent 60%),
    var(--c-bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero__bg .shape--a { width: 520px; height: 520px; background: #00AEEF; top: -160px; right: -120px; opacity: .25; }
.hero__bg .shape--b { width: 380px; height: 380px; background: #0057B8; bottom: -180px; left: -120px; opacity: .35; }
.hero__bg .grid-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(248,250,252,.05) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(to bottom, rgba(248,250,252,.05) 1px, transparent 1px) 0 0/56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; }

/* ---- Logo cloud ---- */
.logo-cloud {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px;
  align-items: center; opacity: .85;
}
.logo-cloud .logo-pill {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-text-mute-on-dark);
  font-size: 18px;
}
@media (max-width: 880px) {
  .logo-cloud { grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
}

/* ---- Page title ---- */
.page-head {
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(circle at 85% 0%, rgba(0,174,239,.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(0,87,184,.18), transparent 55%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 12px; }

/* ---- Tag list ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Step number ---- */
.step-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--c-blue-600);
  letter-spacing: 0.04em;
}

/* Mobile menu drawer */
.mobile-menu { display: none; border-top: 1px solid var(--c-line); background: var(--c-bg-2); }
.mobile-menu.is-open { display: block; }
.mobile-menu .container { padding-top: 16px; padding-bottom: 16px; }
.mobile-menu a {
  display: block; padding: 12px 0;
  color: var(--c-text-on-dark); font-family: var(--ff-display); font-weight: 600;
  border-bottom: 1px solid var(--c-line);
}

/* Inline-style overrides: many pages used hardcoded color:var(--c-navy)/var(--c-mute) etc. inside light cards.
   On a light card, those should be dark. Card scope above handles most; these rules cover the rest. */
.card [style*="color:var(--c-navy)"],
.card [style*="color: var(--c-navy)"] { color: var(--c-text-strong) !important; }
.card [style*="color:var(--c-mute)"],
.card [style*="color: var(--c-mute)"] { color: var(--c-mute) !important; }

/* Logo gradient text helper */
.grad-text {
  background: var(--grad-logo);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
