/*
   BLUEBERRY MEDIA v4 — style.css
   Satoshi body/headings · Fraunces italic accent only
   ═══════════════════════════════════════════════════ */

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

:root {
  --cream:    #F5F0E8;
  --cream-2:  #EDE7DB;
  --cream-3:  #E3DDD1;
  --navy:     #1C2B4A;
  --navy-2:   #253660;
  --navy-3:   #0F1B33;
  --amber:    #C97A0A;
  --amber-2:  #E8920F;
  --matcha:   #7A9E5F;
  --sky:      #C2D9ED;
  --sky-mid:  #9EC4DC;

  --sans:   'Satoshi', 'Inter', system-ui, sans-serif;
  --serif:  'Fraunces', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

html { font-size: 16px; scroll-behavior: auto; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Satoshi for all headings; Fraunces only for .hl-italic */
h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* ─── GRAIN CANVAS ─── */
/* The .grain div is replaced by a canvas drawn by JS */
#grain-canvas {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ─── DOT CANVAS ─── */
#dot-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.45;
}

/* ─── SHARED ─── */
.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative; z-index: 2;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 20px;
  opacity: 0; transform: translateY(16px);
}
.section-tag::before {
  content: ''; display: block;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}
.section-tag.light { color: var(--sky); }
.section-tag.light::before { background: var(--sky); border-radius: 50%; }

.section-h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  color: var(--navy); margin-bottom: 16px;
}
.section-h2 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
}

.section-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--navy);
  opacity: 0;
  max-width: 520px; margin-bottom: 56px;
  transform: translateY(16px);
}

/* Reveal base — starts hidden, GSAP animates TO visible */
.reveal-h2 { opacity: 0; transform: translateY(28px); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--cream);
  padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }

.btn-primary-light {
  display: inline-flex; align-items: center;
  background: var(--cream); color: var(--navy);
  padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.btn-primary-light:hover { background: var(--sky); transform: translateY(-2px); }

.btn-accent {
  display: inline-flex; align-items: center;
  background: var(--amber); color: white;
  padding: 14px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.btn-accent:hover { background: var(--amber-2); transform: translateY(-2px); }

.btn-hero {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--cream);
  padding: 16px 36px; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(28,43,74,0.15);
}
.btn-hero:hover {
  background: var(--navy-2); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(28,43,74,0.2);
}

.btn-cream {
  display: inline-flex; align-items: center;
  background: var(--cream); color: var(--navy);
  padding: 16px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.btn-cream:hover { background: var(--sky); transform: translateY(-2px); }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  /* Always show a thin bottom border so nav is visible on cream background */
  border-bottom: 1px solid rgba(28,43,74,0.10);
  background: rgba(245, 240, 232, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out),
              transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
#nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom-color: rgba(28,43,74,0.12);
}
#nav.hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 18px; font-weight: 700;
  color: var(--navy); z-index: 2;
}
.nav-logo em { font-style: normal; color: var(--navy); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: var(--navy); opacity: 0.75;
  padding: 6px 14px;
  border-radius: 100px;
  transition: opacity 0.2s, background 0.2s;
}
.nav-links a:hover {
  opacity: 1;
  background: rgba(28,43,74,0.07);
}

.nav-pill {
  background: var(--navy); color: var(--cream);
  padding: 10px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-pill:hover { background: var(--navy-2); transform: translateY(-1px); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); border-radius: 2px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative; z-index: 1;
  overflow: hidden;
}

/* Hero glow: band of light at the ring radius, fading inward toward center */
/* Peaks at ~48% from center (≈290px, matching the ring) then dissolves inward */
.hero::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    transparent 18%,
    rgba(158,196,220,0.06) 32%,
    rgba(158,196,220,0.22) 44%,
    rgba(158,196,220,0.42) 50%,
    rgba(158,196,220,0.16) 57%,
    transparent 68%
  );
  pointer-events: none;
  filter: blur(8px);
  animation: hero-glow 8s ease-in-out infinite;
}
@keyframes hero-glow {
  0%,100% { opacity: 0.75; transform: translate(-50%,-50%) scale(0.97); }
  50%      { opacity: 1;    transform: translate(-50%,-50%) scale(1.03); }
}

/* The ring itself — sits right on top of the glow band */
.hero::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 580px; height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(158,196,220,0.45);
  pointer-events: none;
  animation: ring-breathe 10s ease-in-out infinite;
  z-index: 0;
  /* Inward glow + outer disc/frisbee fill (the wide spread recreates the v10 disc look) */
  box-shadow: inset 0 0 60px rgba(158,196,220,0.12),
              0 0 24px rgba(158,196,220,0.10),
              0 0 0 80px rgba(28,43,74,0.022);
}
@keyframes ring-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(0.97); opacity: 0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.03); opacity: 1; }
}

.hero-content {
  max-width: 960px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(28,43,74,0.06);
  border: 1px solid rgba(28,43,74,0.1);
  padding: 7px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--navy); opacity: 0;
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--matcha);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ─── HERO HEADLINE ─── */
/* Each .hl is one line — no JS wrapping, no overflow:hidden clipping */
.hero-h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  /* Lines animate in via JS — start invisible */
}

.hl {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.hl-amber { color: var(--amber); }
.hl-navy  {
  color: var(--navy);
  /*
    LEFT-ANCHOR: "Built for" must never move.
    We use inline-flex but do NOT center — the whole h1 is centered,
    so this line will be centered as a block, but internally
    "Built for" is pinned to the left of the flipper.
    justify-content: flex-start keeps "Built for" stationary.
  */
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.18em;
  white-space: nowrap;
}
/* hl-italic class kept for backwards compat but no longer used on line 3 */
.hl-italic {
  font-family: var(--sans);
  font-weight: 800;
  font-style: normal;
  color: var(--amber);
}

/* ─── VERTICAL TICKER ROTATOR ─── */
/*
  Industry word ticker — same technique as Framer's "Rotating Text Pro":
  Container has overflow:hidden + fixed height.
  Words are stacked vertically via absolute positioning.
  Outgoing word slides UP (translateY -100%), incoming slides UP from below (+100%).
  This is the clean slot-machine / ticker pattern used on Linear, Vercel, Automatix.
*/

/* Wrapper holds the flipper + the static diamond side by side */
.flipper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: text-bottom;
}

.flipper {
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* Minimum width prevents the container from collapsing before JS runs */
  min-width: 3ch;
  /* JS will set exact width + height after fonts load */
}

/*
  LOAD FLASH FIX:
  Hide ALL flip-words in CSS immediately.
  Only the .flip-active one is shown.
  This prevents the stacked-words flash on page load before JS runs.
*/
.flip-word {
  display: block;
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  color: var(--navy);
  transform: translateY(110%); /* hidden below by default */
}
.flip-word.flip-active {
  transform: translateY(0%); /* first word visible immediately */
  position: relative; /* in flow so flipper has natural height */
}

/* Ghost sizer: invisible span in natural flow that drives container width */
.flip-ghost {
  display: block;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  /* Same font as the visible words */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  /* Smooth width transition as ghost text changes */
  transition: width 0.38s cubic-bezier(0.87, 0, 0.13, 1);
}

/* JS adds .flipper-ready to the flipper once ghost is in place */
.flipper.flipper-ready .flip-word {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
}
.flipper.flipper-ready .flip-word.flip-active {
  transform: translateY(0%);
}

/* Static amber diamond that sits to the right of the rotating word */
.flip-diamond {
  color: var(--amber);
  font-size: 0.38em;
  line-height: 1;
  flex-shrink: 0;
  /* Small vertical nudge to optically center with cap-height */
  position: relative;
  top: -0.08em;
}

/* ─── HERO SUB / CTA / TRUST ─── */
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--navy); opacity: 0;
  max-width: 560px; margin-bottom: 36px;
}

.hero-cta { opacity: 0; margin-bottom: 56px; }

.hero-trust {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0;
}
.trust-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy); opacity: 0.45;
}
.trust-logos {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}
.tl {
  font-size: 13px; font-weight: 600;
  color: var(--navy); opacity: 0.45;
  transition: opacity 0.2s;
}
.tl:hover { opacity: 0.8; }
.tl-dot { color: var(--navy); opacity: 0.2; font-size: 16px; }

/* Scroll hint */
.scroll-down {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); opacity: 0;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--navy); opacity: 0.25;
  transform-origin: top;
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 0.25; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--navy);
  padding: 60px 48px;
  position: relative; z-index: 2;
}
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.stat {
  flex: 1; text-align: center; padding: 0 32px;
}
.stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 68px);
  color: var(--cream); line-height: 1;
  margin-bottom: 10px;
}
.stat-pct, .stat-x {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
}
.stat-label {
  font-size: 13px; line-height: 1.5;
  /* Increased from 0.4 to 0.75 for readability */
  color: rgba(245,240,232,0.75);
  max-width: 180px; margin: 0 auto;
}
.stat-rule {
  width: 1px; height: 72px;
  background: rgba(245,240,232,0.15);
  flex-shrink: 0;
}

/* ─── WHY US ─── */
.why-section {
  padding: 110px 0;
  background: var(--cream);
  position: relative; z-index: 2;
}
/* ── Why cards redesign: editorial numbered rows, not white boxes ── */
.why-cards {
  counter-reset: why-counter;
  display: flex; flex-direction: column;
  gap: 0; margin-bottom: 56px;
}
.why-card {
  counter-increment: why-counter;
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 48px; align-items: start;
  padding: 44px 0;
  border-top: 1px solid rgba(28,43,74,0.08);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  opacity: 0; transform: translateY(20px);
  transition: background 0.2s;
}
.why-card:last-child { border-bottom: 1px solid rgba(28,43,74,0.08); }
.why-card:hover { background: rgba(28,43,74,0.018); }

/* Number from CSS counter */
.why-card::before {
  content: counter(why-counter, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--amber);
  opacity: 0.45;
  line-height: 1;
  padding-top: 3px;
}

/* Hide the SVG icon — the number replaces it */
.why-icon { display: none; }

.why-card h3 {
  font-size: 22px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0;
  padding-top: 2px;
}
.why-card p {
  font-size: 15px; line-height: 1.7;
  color: var(--navy); opacity: 1;
  margin-top: 0; padding-top: 2px;
}
.why-cta-wrap { text-align: center; }

/* ─── MISSION ─── */
.mission-section {
  padding: 110px 0;
  background: var(--cream-2);
  text-align: center;
  position: relative; z-index: 2;
}
.mission-inner { display: flex; flex-direction: column; align-items: center; }
.mission-h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  color: var(--navy); margin-bottom: 20px;
  max-width: 900px;
  opacity: 0; transform: translateY(28px);
  /* Wider max-width so "grow faster" fits on one line */
}
.mission-sub {
  font-size: 17px; line-height: 1.75;
  color: var(--navy); opacity: 0;
  max-width: 560px; margin-bottom: 32px;
  transform: translateY(16px);
}
.mission-link {
  font-size: 15px; font-weight: 600;
  color: var(--amber);
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.mission-link:hover { opacity: 0.7; }

/* ─── SERVICES ─── */
.services-section {
  padding: 110px 0;
  background: var(--cream);
  position: relative; z-index: 2;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.service-tile {
  background: white;
  border: 1px solid rgba(28,43,74,0.08);
  border-radius: 14px;
  padding: 24px 22px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  opacity: 0; transform: translateY(20px);
}
.service-tile:hover {
  border-color: rgba(201,122,10,0.3);
  box-shadow: 0 8px 28px rgba(28,43,74,0.08);
}
.service-tile.open {
  border-color: var(--amber);
  box-shadow: 0 12px 36px rgba(28,43,74,0.1);
}

.tile-icon {
  width: 40px; height: 40px;
  background: rgba(28,43,74,0.04);
  border: 1px solid rgba(28,43,74,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); margin-bottom: 14px;
}
.service-tile.open .tile-icon {
  background: rgba(201,122,10,0.08);
  border-color: rgba(201,122,10,0.2);
  color: var(--amber);
}

.tile-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber); color: white;
  padding: 3px 8px; border-radius: 100px;
}

.service-tile h3 {
  font-size: 16px; color: var(--navy);
  margin-bottom: 8px; line-height: 1.2;
}
.service-tile > p {
  font-size: 13px; line-height: 1.6;
  color: var(--navy); opacity: 0.7;
  margin-bottom: 0;
}

.tile-expand {
  display: none;
  flex-direction: column; gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(28,43,74,0.07);
}
.service-tile.open .tile-expand { display: flex; }

.tile-detail {
  font-size: 13px; line-height: 1.6;
  color: var(--navy); opacity: 0.8;
}
.td-label {
  font-family: var(--serif); font-weight: 600;
  font-style: italic; color: var(--amber); opacity: 1;
  margin-right: 4px;
}
.tile-price {
  font-family: var(--sans); font-size: 18px; font-weight: 700;
  color: var(--navy); margin-top: 4px;
}
.tile-cta {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--cream);
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; width: fit-content;
  transition: background 0.2s;
}
.tile-cta:hover { background: var(--navy-2); }

.tile-toggle {
  position: absolute; bottom: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--navy); opacity: 0.35;
  padding: 4px;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.service-tile.open .tile-toggle {
  opacity: 0.7;
  transform: rotate(180deg);
}

.service-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stag {
  font-size: 12px; font-weight: 600;
  background: rgba(28,43,74,0.06);
  color: var(--navy); opacity: 0.7;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(28,43,74,0.08);
  transition: background 0.2s, opacity 0.2s;
}
.stag:hover {
  background: rgba(201,122,10,0.1);
  opacity: 1; color: var(--amber);
  border-color: rgba(201,122,10,0.2);
}

/* ─── BLUELINE DEEP DIVE ─── */
.blueline-section {
  padding: 110px 0;
  background: var(--cream-2);
  position: relative; z-index: 2;
}
.bl-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  margin-top: 56px;
}
.bl-intro {
  font-size: 16px; line-height: 1.75;
  color: var(--navy); opacity: 0;
  margin-bottom: 40px;
  transform: translateY(16px);
}
.bl-steps {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 40px;
}
.bl-step {
  display: flex; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28,43,74,0.08);
}
.bl-step:last-child { border-bottom: none; }
.bl-step-num {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: var(--amber); letter-spacing: 0.06em;
  flex-shrink: 0; padding-top: 3px;
  min-width: 28px;
}
.bl-step-body h4 {
  font-size: 17px; color: var(--navy); margin-bottom: 6px;
}
.bl-step-body p {
  font-size: 14px; line-height: 1.65;
  color: var(--navy); opacity: 0.75;
}

/* Phone mockup */
.bl-right { display: flex; justify-content: center; }
.phone-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.phone-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center,
    rgba(194,217,237,0.3) 0%, transparent 65%);
  border-radius: 50%;
}
.phone-shell {
  width: 260px;
  height: 460px;
  background: #0F1B33;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,0.08);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 40px 80px rgba(28,43,74,0.28),
              inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; z-index: 2;
}
.phone-notch {
  width: 50px; height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; margin: 0 auto 6px;
}
.phone-status-bar {
  display: flex; justify-content: space-between;
  font-size: 9px; color: rgba(245,240,232,0.35);
}
.phone-call-bar {
  background: rgba(201,122,10,0.12);
  border: 1px solid rgba(201,122,10,0.2);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
  animation: callpulse 1.4s ease-in-out infinite;
}
@keyframes callpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.call-name { font-size: 10px; font-weight: 600; color: rgba(245,240,232,0.9); }
.call-sub  { font-size: 9px; color: rgba(245,240,232,0.55); margin-top: 2px; }
.phone-chat { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.bubble {
  padding: 8px 11px; border-radius: 10px;
  font-size: 10px; line-height: 1.5; max-width: 88%;
}
.bubble.ai {
  background: rgba(194,217,237,0.1); color: rgba(245,240,232,0.85);
  border-radius: 10px 10px 10px 2px;
}
.bubble.user {
  background: rgba(122,158,95,0.16); color: rgba(245,240,232,0.85);
  border-radius: 10px 10px 2px 10px; align-self: flex-end;
}
.phone-booked {
  background: var(--matcha); border-radius: 8px;
  padding: 9px; text-align: center;
  font-size: 10px; font-weight: 700; color: white;
  transition: opacity 0.5s ease;
}

/* Typing indicator */
.typing-indicator {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 11px; border-radius: 10px 10px 10px 2px;
  background: rgba(194,217,237,0.1);
  margin-bottom: 0;
}
.typing-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(245,240,232,0.5);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%          { transform: translateY(-4px); opacity: 1; }
}

/* Chat bubble entrance animation */
.bubble {
  padding: 8px 11px; border-radius: 10px;
  font-size: 10px; line-height: 1.5; max-width: 88%;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bubble.visible { opacity: 1; transform: translateY(0); }
.bubble.ai {
  background: rgba(194,217,237,0.1); color: rgba(245,240,232,0.85);
  border-radius: 10px 10px 10px 2px;
}
.bubble.user {
  background: rgba(122,158,95,0.16); color: rgba(245,240,232,0.85);
  border-radius: 10px 10px 2px 10px; align-self: flex-end;
}
.phone-ring {
  position: absolute; border-radius: 48px;
  border: 1px solid rgba(194,217,237,0.12);
  animation: ring-pulse 3.5s ease-in-out infinite;
}
.pr1 { inset: -22px; }
.pr2 { inset: -44px; animation-delay: 1.4s; opacity: 0.5; }
@keyframes ring-pulse {
  0%,100% { opacity: 0.1; transform: scale(0.97); }
  50%      { opacity: 0.3; transform: scale(1.03); }
}

/* ─── DEMO SECTION ─── */
.demo-section {
  background: var(--navy);
  padding: 110px 0;
  position: relative; z-index: 2;
}
.demo-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.demo-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--cream); margin-bottom: 18px;
  opacity: 0; transform: translateY(18px);
}
.demo-text h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky);
}
.demo-text p {
  font-size: 16px; line-height: 1.75;
  color: rgba(245,240,232,0.92); margin-bottom: 32px;
  opacity: 0; transform: translateY(18px);
}
.demo-widget-wrap {
  display: flex; justify-content: center; align-items: center;
}
.demo-widget {
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(194,217,237,0.1);
  border-radius: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 28px;
  cursor: pointer; position: relative;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.demo-widget:hover {
  background: rgba(255,255,255,0.07);
  transform: scale(1.03);
}
.dw-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(194,217,237,0.1);
  animation: dw-ring-pulse 3.5s ease-in-out infinite;
}
.dw-ring.r1 { width: 100px; height: 100px; }
.dw-ring.r2 { width: 160px; height: 160px; animation-delay: 0.9s; }
.dw-ring.r3 { width: 220px; height: 220px; animation-delay: 1.8s; }
@keyframes dw-ring-pulse {
  0%,100% { opacity: 0.07; transform: scale(0.93); }
  50%      { opacity: 0.2;  transform: scale(1); }
}
.dw-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  color: rgba(245,240,232,0.55); letter-spacing: 0.05em;
  align-self: flex-start; position: relative; z-index: 2;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--matcha);
  animation: blink 2.5s ease-in-out infinite;
}
.dw-bars {
  display: flex; align-items: center; gap: 3.5px;
  height: 48px; position: relative; z-index: 2;
}
.wb {
  width: 3px; border-radius: 2px;
  background: var(--sky); height: 8px;
  animation: wave 1.3s ease-in-out infinite;
}
.wb:nth-child(1)  { animation-delay: 0.00s; }
.wb:nth-child(2)  { animation-delay: 0.08s; }
.wb:nth-child(3)  { animation-delay: 0.16s; }
.wb:nth-child(4)  { animation-delay: 0.24s; }
.wb:nth-child(5)  { animation-delay: 0.32s; }
.wb:nth-child(6)  { animation-delay: 0.40s; }
.wb:nth-child(7)  { animation-delay: 0.48s; }
.wb:nth-child(8)  { animation-delay: 0.40s; }
.wb:nth-child(9)  { animation-delay: 0.32s; }
.wb:nth-child(10) { animation-delay: 0.24s; }
.wb:nth-child(11) { animation-delay: 0.16s; }
.wb:nth-child(12) { animation-delay: 0.08s; }
.wb:nth-child(13) { animation-delay: 0.00s; }
.wb:nth-child(14) { animation-delay: 0.08s; }
.wb:nth-child(15) { animation-delay: 0.16s; }
@keyframes wave {
  0%,100% { height: 7px; opacity: 0.35; }
  50%      { height: 34px; opacity: 1; }
}
.dw-label {
  font-family: var(--sans); font-size: 18px; font-weight: 700;
  color: var(--cream); position: relative; z-index: 2;
}
.dw-sub {
  font-size: 10px; color: rgba(245,240,232,0.45);
  letter-spacing: 0.04em; position: relative; z-index: 2;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--cream-2);
  position: relative; z-index: 2;
}
.footer-wave {
  line-height: 0; overflow: hidden;
  transform: rotate(180deg);
}
.footer-wave svg {
  display: block; width: 100%; height: 80px;
}
.footer-body { background: var(--navy); }
.footer-cta {
  text-align: center;
  padding: 80px 48px 60px;
  border-bottom: 1px solid rgba(245,240,232,0.07);
}
.footer-cta h2 {
  font-size: clamp(32px, 4vw, 58px);
  color: var(--cream); margin-bottom: 16px;
  opacity: 0; transform: translateY(18px);
}
.footer-cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky);
}
.footer-cta p {
  font-size: 16px; line-height: 1.7;
  color: rgba(245,240,232,0.82); margin-bottom: 36px;
  opacity: 0; transform: translateY(18px);
}
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  padding: 24px 48px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px;
  color: rgba(245,240,232,0.65);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: rgba(245,240,232,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(245,240,232,0.8); }
.footer-copy {
  font-size: 12px; color: rgba(245,240,232,0.35);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .bl-layout { grid-template-columns: 1fr; }
  .bl-right { display: none; }
  .demo-inner { grid-template-columns: 1fr; text-align: center; }
  .demo-widget-wrap { justify-content: center; }
  .why-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #nav { padding: 18px 24px; }
  #nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-pill { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 110px 24px 70px; }
  .hero-h1 { font-size: clamp(34px, 8vw, 56px); }
  .section-wrap { padding: 0 24px; }
  .stats-strip { padding: 48px 24px; }
  .stats-inner { flex-direction: column; gap: 36px; }
  .stat-rule { width: 48px; height: 1px; }
  .service-tiles { grid-template-columns: 1fr; }
  .demo-section { padding: 80px 0; }
  .footer-cta { padding: 60px 24px 40px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; align-items: flex-start; }
}
