/* ============================================================
   SF CALL SOLUTIONS — styles.css
   All design tokens are CSS custom properties in :root below.
   Edit the values there to retheme the whole site at once.
   ============================================================ */

:root {
  /* --- Page backgrounds ------------------------------------ */
  --bg:        #ffffff;   /* main page background */
  --bg-soft:   #f8faff;   /* alternating section tint (even sections) */

  /* --- Card / surface -------------------------------------- */
  --surface:   #ffffff;   /* card backgrounds */
  --border:    #e7e9f3;   /* card borders & hairlines */

  /* --- Text ------------------------------------------------ */
  --ink:       #15161d;   /* headings & primary text */
  --muted:     #000000;   /* body copy & secondary labels */
  --muted-2:   #9096b0;   /* placeholder & fine-print text */
  --lighter:   #ffffff;   /* white text on dark backgrounds */
  --light-mute:#b4b4b4;   /* white text on dark backgrounds */

  /* --- Brand / accent colours ------------------------------ */
  --primary:   #0451B6;   /* indigo — buttons, links, key accents */
  --accent:    #3b82f6;   /* blue — secondary highlights */
  --primary-2: #030a32;

  /* --- Gradients ------------------------------------------- */
  --grad:      linear-gradient(110deg, var(--primary), var(--accent));

  /* --- Semantic colours ------------------------------------ */
  --green:     #22c55e;   /* "live" indicator dot */

  /* --- Shape & spacing ------------------------------------- */
  --radius:      18px;      /* default card corner radius */
  --radius-sm:   12px;      /* input / small element radius */
  --radius-hero: 12px;      /* hero card corner radius */
  --maxw:        1200px;    /* max content width */

  /* --- Hero ------------------------------------------------ */
  --hero-bg: #030710;     /* dark base behind the liquid gradient */

  /* --- Shadows --------------------------------------------- */
  /* --shadow-sm: 0 2px 8px rgba(79,70,229,.08);
  --shadow-md: 0 8px 28px rgba(79,70,229,.14);
  --shadow-lg: 0 20px 60px rgba(79,70,229,.16); */
  --shadow-sm: 0 2px 8px rgba(59, 130, 246,.08);
  --shadow-md: 0 8px 28px rgba(59, 130, 246,.14);
  --shadow-lg: 0 20px 60px rgba(59, 130, 246,.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Instrument Serif', sans-serif;
  font-weight: 100;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap  { margin: 0 auto; padding: 0 24px; }
/* .wrap  { max-width: var(--maxw); margin: 0 auto; padding: 0 0px; } */
section { padding: 96px 0; position: relative; }
section:nth-child(even) { background: var(--bg-soft); }

.eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
}
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 100; margin-top: 12px; }
.sec-head p  { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* ============================================================
   HERO LIQUID GRADIENT CANVAS
   ============================================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(80px);
  transform: scale(1.25);
  transform-origin: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAV
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink);
  line-height: 1.2;
}
.brand .mark {
  height: 2.4em; width: auto;
  flex-shrink: 0;
  transform: translateY(2px); 
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: .92rem; font-weight: 500;
  transition: color .18s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); outline: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 8px;
  background: var(--primary-2); color: #fff;
  font-weight: 600; font-size: .88rem;
  box-shadow: var(--shadow-md);
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.nav-cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.nav-cta svg { width: 15px; height: 15px; fill: #fff; }
.menu-btn {
  display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px;
}
.menu-btn:focus-visible { outline: 2px solid var(--primary); border-radius: 6px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 8px;
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--primary-2); color: #fff;
  background-origin: border-box;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary svg    { fill: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: #c9cde8;
  transform: translateY(-2px);
}
.btn-ghost svg { fill: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin: 0px 12px 0;
  border-radius: var(--radius-hero);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--hero-bg);
  min-height: calc(100svh - 68px - 12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
/* section:nth-child(even) has specificity (0,1,1) and would override .hero's
   background-color. This rule matches the same specificity but comes later. */
section.hero  { background-color: var(--hero-bg); }

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}
@keyframes blink { 50% { opacity: .3; } }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 100; max-width: 19ch; margin: 0 auto;
  font-family: 'Instrument Serif';
  color: #fff;
}
.hero h1 .accent,
.gradient-text {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  /* background: var(--grad); */
  /* -webkit-background-clip: text; background-clip: text; color: transparent; */
}
.hero p.sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 300;
  color: var(--lighter); max-width: 54ch; margin: 26px auto 0;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 40px;
}

/* ============================================================
   WAVEFORM CARD
   ============================================================ */
.wavewrap {
  margin: 68px auto 0; max-width: 760px;
  background: rgba(255, 255, 255, 0.001);
  border-radius: 24px;
  padding: 30px 30px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.wavewrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.04), rgba(59,130,246,.04));
  pointer-events: none;
}
.wave-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; position: relative;
}
.wave-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; flex-shrink: 0;
}
.wave-avatar svg { width: 20px; height: 20px; fill: #fff; }
.wave-label { text-align: left; }
.wave-label .n { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: .95rem; color: var(--lighter); }
.wave-label .s { font-size: .78rem; color: var(--lighter); }
.wave-live {
  margin-left: auto; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.wave-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: blink 1.4s infinite; flex-shrink: 0;
}
.bars {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; height: 90px; position: relative;
}
.bars span {
  width: 5px; border-radius: 5px;
  background: var(--lighter);
  animation: eq 1.1s ease-in-out infinite;
}
@keyframes eq { 0%, 100% { height: 14px; } 50% { height: var(--h); } }
.transcript {
  margin-top: 20px; text-align: left;
  font-size: .95rem; color: var(--lighter);
  line-height: 1.5; min-height: 1.5em;
}
.transcript b { color: var(--lighter); font-weight: 600; }
.caret {
  display: inline-block; width: 2px; height: 1.05em;
  background: var(--primary); vertical-align: -2px;
  margin-left: 1px; animation: blink 1s steps(1) infinite;
}

/* ============================================================
   FEATURES GRID ("What it does")
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card.reveal:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: #c9cde8;
}
.card .ico {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(104, 157, 255, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.16);
}
.card .ico svg { width: 23px; height: 23px; fill: var(--primary); }
.card h3 { font-size: 1.1rem; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; margin-bottom: 9px; color: var(--ink); }
.card p  { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ============================================================
   TRUST SECTION ("Reliable. Always on. Secure.")
   ============================================================ */
#trust { background: var(--bg-soft); }
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.trust-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 100;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
}
.trust-headline .dot-accent { color: var(--primary); }
.trust-para {
  color: var(--muted); font-size: 1.08rem; line-height: 1.7;
  max-width: 46ch; margin-bottom: 36px;
}
.trust-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-rows { display: flex; flex-direction: column; }
.trust-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.trust-row:last-child { border-bottom: 1px solid var(--border); }
.trust-row-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600; font-size: .98rem; color: var(--ink);
}
.trust-row-desc { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ============================================================
   DEMO
   ============================================================ */
#demo { background: var(--bg); }
#demo .demo-box {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(79,70,229,.07), transparent 70%);
  pointer-events: none;
}
.demo-box .eyebrow { display: block; margin-bottom: 14px; position: relative; }
.demo-box h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 100; position: relative; }
.demo-box p  { color: var(--muted); margin: 14px auto 0; max-width: 46ch; position: relative; }
.phone-number {
  font-family: 'IBM Plex Sans'; font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: .01em; margin: 32px 0 6px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.phone-note { font-size: .85rem; color: var(--muted-2); position: relative; }
.call-btn {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  margin-top: 32px; padding: 18px 40px;
  border-radius: 18px; background: var(--grad); color: #fff;
  font-family: 'IBM Plex Sans'; font-weight: 700; font-size: 1.12rem;
  box-shadow: var(--shadow-lg);
  transition: transform .15s, box-shadow .2s;
}
.call-btn:hover { transform: scale(1.04); box-shadow: 0 24px 56px rgba(79,70,229,.28); }
.call-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.call-btn svg { width: 22px; height: 22px; fill: #fff; animation: wiggle 1.8s ease-in-out infinite; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20%       { transform: rotate(-14deg); }
  40%       { transform: rotate(14deg); }
  60%       { transform: rotate(-9deg); }
  80%       { transform: rotate(9deg); }
}
.call-btn .ring {
  position: absolute; inset: 0; border-radius: 18px;
  border: 2px solid rgba(79,70,229,.45);
  animation: ring 1.9s ease-out infinite;
  pointer-events: none;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: var(--bg-soft); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .22s, box-shadow .22s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
}
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
}
.plan h3     { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.plan .price {
  font-family: 'IBM Plex Sans'; font-weight: 700;
  font-size: 2.6rem; margin: 14px 0 4px; color: var(--ink);
}
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .desc  { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.plan ul     { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.plan li     { display: flex; gap: 10px; font-size: .93rem; color: var(--muted); }
.plan li svg { width: 18px; height: 18px; fill: var(--primary); flex-shrink: 0; margin-top: 2px; }
.plan li b   { color: var(--ink); font-weight: 600; }
.plan .btn   { width: 100%; justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg); }
#contact .grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: 48px; align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 48px;
  box-shadow: var(--shadow-sm);
}
.contact-info h2 { font-size: 2rem; font-weight: 100; margin-top: 12px; }
.contact-info p  { color: var(--muted); margin: 14px 0 28px; line-height: 1.7; }
.contact-line    { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-line .ci {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(79,70,229,.09);
  border: 1px solid rgba(79,70,229,.18);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-line .ci svg { width: 19px; height: 19px; fill: var(--primary); }
.contact-line .lab { font-size: .78rem; color: var(--muted-2); margin-bottom: 2px; }
.contact-line .val { font-weight: 600; font-size: .98rem; color: var(--ink); }

form { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; }
label {
  display: block; font-size: .82rem; color: var(--muted-2);
  margin-bottom: 6px; font-weight: 500;
}
input, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--ink);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { resize: vertical; min-height: 110px; }
form .btn { margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--muted-2); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; margin-top: 0;
  background: var(--bg);
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.foot .brand { font-size: 1rem; }
.foot p { color: var(--muted-2); font-size: .85rem; }

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

/* ============================================================
   FOCUS VISIBLE (global keyboard nav)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.mobile-br { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .trust-inner { grid-template-columns: 1fr; gap: 48px; }
  .trust-para  { max-width: 100%; }
}
@media (max-width: 860px) {
  .nav-links        { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; transform: none; background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px; }
  .nav-links.open   { display: flex; }
  .brand            { font-size: .75rem; text-align: right; }
  .mobile-br        { display: block; }
  .brand .mark      { width: 26px; height: 26px; flex-shrink: 0; }
  .nav-cta          { padding: 7px 12px; font-size: .8rem; }
  .nav-cta svg      { width: 13px; height: 13px; }
  .menu-btn         { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .features, .pricing { grid-template-columns: 1fr; }
  #contact .grid    { grid-template-columns: 1fr; padding: 30px 24px; }
  .plan.featured    { order: -1; }
  .trust-row        { grid-template-columns: 1fr; gap: 6px; }
  section           { padding: 72px 0; }
}
@media (max-width: 480px) {
  .hero             { margin: 8px 8px 0; border-radius: 20px; min-height: calc(100svh - 68px - 8px); padding: 56px 0 48px; }
  .row              { flex-direction: column; }
  .wavewrap         { padding: 22px 18px; margin-top: 36px; }
  .transcript       { min-height: 3em; }
  .demo-box         { padding: 44px 22px; }
  .trust-actions    { flex-direction: column; align-items: flex-start; }
  #contact .grid    { padding: 24px 18px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
