/* FiberBill marketing page — fiber-dusk design system
   Palette: dusk navy ground, fiber-pulse teal + household-ember amber dual accent */
:root {
  --dusk: #0A1428;
  --dusk-2: #111F3E;
  --dusk-3: #182A52;
  --pulse: #30D9C8;
  --pulse-dim: rgba(48, 217, 200, .14);
  --ember: #FFAE4A;
  --ember-deep: #F08A1D;
  --paper: #F5F7FB;
  --card: #FFFFFF;
  --ink: #16233E;
  --slate: #56668A;
  --line: #E3E9F4;
  --line-dark: rgba(255, 255, 255, .09);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--pulse); display: inline-flex;
  align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pulse); display: inline-block; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 12px; font-weight: 700; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(10, 20, 40, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 9px; }
.nav-logo .nav-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px rgba(48, 217, 200, .35)); }
.nav-logo em { color: var(--ember); font-style: normal; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, .78); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; overflow: hidden; font-family: var(--font-mono); font-size: .74rem; }
.lang-switch a { color: rgba(255, 255, 255, .65); padding: 7px 11px; font-weight: 700; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { background: var(--pulse); color: #06231F; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  border-radius: 10px; padding: 13px 26px; font-size: .98rem; font-family: var(--font-body);
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--pulse); outline-offset: 2px; }
.btn-ember { background: linear-gradient(135deg, var(--ember), var(--ember-deep)); color: #2A1600; box-shadow: 0 6px 22px rgba(240, 138, 29, .35); }
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240, 138, 29, .45); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--pulse); color: var(--pulse); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--dusk); overflow: hidden; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 20, 40, .93) 22%, rgba(10, 20, 40, .55) 58%, rgba(10, 20, 40, .25)); }
.hero-inner { position: relative; z-index: 2; padding: 140px 0 120px; max-width: 720px; }
.fomo-chip {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  background: rgba(255, 174, 74, .12); border: 1px solid rgba(255, 174, 74, .45);
  color: var(--ember); border-radius: 100px; padding: 8px 16px; font-size: .85rem; font-weight: 600;
}
.fomo-chip .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 800; margin: 8px 0 20px; }
.hero h1 .hl { color: var(--pulse); }
.hero-sub { font-size: 1.18rem; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.proof-row { display: flex; gap: 22px; flex-wrap: wrap; }
.proof-row span { font-family: var(--font-mono); font-size: .78rem; color: rgba(255, 255, 255, .6); display: inline-flex; gap: 7px; align-items: center; }
.proof-row b { color: var(--pulse); font-weight: 600; }

/* ---------- Signature: billing pulse ledger ---------- */
.ledger-tape { background: #060D1D; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 13px 0; position: relative; }
.ledger-track { display: flex; gap: 48px; white-space: nowrap; animation: tape 46s linear infinite; width: max-content; }
@keyframes tape { to { transform: translateX(-50%); } }
.ledger-track span { font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.ledger-track .si { color: var(--pulse); }
.ledger-track .pr { color: var(--ember); }
.ledger-track .ok { color: #6EE7A0; }

/* ---------- Problem ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; position: relative; }
.pain-card .tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: #C2410C; background: #FFF1E4; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 16px; }
.pain-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pain-card p { color: var(--slate); font-size: .97rem; }

/* ---------- Agitate ---------- */
.agitate { background: var(--dusk); color: #fff; }
.agitate .section-head h2 { color: #fff; }
.agitate .section-head p { color: rgba(255, 255, 255, .65); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.stat { border: 1px solid var(--line-dark); border-radius: 16px; padding: 30px 26px; background: var(--dusk-2); }
.stat .num { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: var(--ember); }
.stat .lbl { color: rgba(255, 255, 255, .7); font-size: .95rem; margin-top: 8px; }
.agitate .kicker { margin-top: 44px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; color: var(--pulse); max-width: 640px; }

/* ---------- Solution ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22, 35, 62, .1); }
.pillar .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--pulse-dim); color: #0B8D80; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 18px; }
.pillar h3 { font-size: 1.18rem; margin-bottom: 9px; }
.pillar p { color: var(--slate); font-size: .95rem; margin-bottom: 14px; }
.pillar code { font-family: var(--font-mono); font-size: .72rem; color: #0B8D80; background: var(--pulse-dim); padding: 5px 9px; border-radius: 6px; display: inline-block; }

/* ---------- Showcase: alternating image + text rows ---------- */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.flip .showcase-media { order: 2; }
.showcase-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 20, 40, .16); aspect-ratio: 3 / 2; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.showcase-row:hover .showcase-media img { transform: scale(1.04); }
.showcase-media .badge-float {
  position: absolute; left: 16px; bottom: 16px; background: rgba(6, 13, 29, .82);
  backdrop-filter: blur(6px); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 9px 13px; font-family: var(--font-mono); font-size: .72rem; color: var(--pulse);
  display: inline-flex; align-items: center; gap: 8px;
}
.showcase-media .badge-float b { color: #fff; font-weight: 600; }
.showcase-text .step-num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember-deep); }
.showcase-text h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 12px 0 14px; }
.showcase-text p { color: var(--slate); font-size: 1.05rem; margin-bottom: 18px; }
.showcase-text ul { list-style: none; display: grid; gap: 9px; }
.showcase-text li { padding-left: 26px; position: relative; color: var(--ink); font-size: .97rem; }
.showcase-text li::before { content: "→"; position: absolute; left: 0; color: var(--pulse); font-weight: 700; }

/* ---------- In-action video band ---------- */
.inaction { position: relative; background: var(--dusk); color: #fff; overflow: hidden; }
.inaction-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.inaction-scrim { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 0%, rgba(10,20,40,.35), rgba(10,20,40,.92)); }
.inaction .wrap { position: relative; z-index: 2; text-align: center; padding-top: 8px; }
.inaction h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 14px 0 12px; }
.inaction p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 8px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 30px 26px; border-left: 2px solid var(--pulse); background: linear-gradient(90deg, rgba(48, 217, 200, .06), transparent 60%); border-radius: 4px 16px 16px 4px; }
.step .n { font-family: var(--font-mono); color: var(--pulse); font-weight: 700; font-size: .85rem; }
.step h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.step p { color: var(--slate); font-size: .95rem; }

/* ---------- Voice of customer ---------- */
.voc { background: var(--dusk); color: #fff; }
.voc .section-head h2 { color: #fff; }
.voc .section-head p { color: rgba(255, 255, 255, .65); }
.voc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.voc-card { background: var(--dusk-2); border: 1px solid var(--line-dark); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.voc-card blockquote { font-size: 1.06rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.voc-card blockquote::before { content: "“"; color: var(--ember); font-family: var(--font-display); font-size: 2rem; line-height: 0; vertical-align: -12px; margin-right: 4px; }
.voc-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.voc-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pulse); }
.voc-who .nm { font-weight: 700; font-size: .95rem; }
.voc-who .rl { font-family: var(--font-mono); font-size: .74rem; color: rgba(255, 255, 255, .55); }
.voc-stars { color: var(--ember); font-size: .85rem; letter-spacing: 2px; }

/* ---------- Pricing / FOMO ---------- */
.pricing-card {
  max-width: 620px; margin: 0 auto; background: var(--card); border-radius: 22px;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(22, 35, 62, .13);
  padding: 44px 42px; text-align: center; position: relative; overflow: hidden;
}
.pricing-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--pulse), var(--ember)); }
.pricing-card .plan-tag { font-family: var(--font-mono); letter-spacing: .18em; font-size: .72rem; text-transform: uppercase; color: var(--ember-deep); }
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.price-line .old { color: var(--slate); text-decoration: line-through; font-size: 1.3rem; }
.price-line .new { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; color: var(--ink); }
.price-line .per { color: var(--slate); }
.pricing-card ul { list-style: none; margin: 26px 0 30px; text-align: left; display: grid; gap: 11px; }
.pricing-card li { padding-left: 28px; position: relative; color: var(--ink); font-size: .98rem; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: #0B8D80; font-weight: 800; }
.slots-bar { background: #FFF1E4; border: 1px solid rgba(240, 138, 29, .4); border-radius: 10px; padding: 12px 16px; margin-bottom: 26px; font-size: .92rem; color: #9A3E00; font-weight: 600; }
.slots-meter { height: 7px; border-radius: 100px; background: rgba(240, 138, 29, .18); margin-top: 9px; overflow: hidden; }
.slots-meter i { display: block; height: 100%; width: 74%; border-radius: 100px; background: linear-gradient(90deg, var(--ember), var(--ember-deep)); }
.pricing-note { font-size: .84rem; color: var(--slate); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--pulse); font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding-top: 12px; max-width: 640px; }

/* ---------- Final CTA ---------- */
.final-cta { background: radial-gradient(1100px 500px at 50% 120%, var(--dusk-3), var(--dusk)); color: #fff; text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.final-cta p { color: rgba(255, 255, 255, .7); max-width: 520px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer { background: #060D1D; color: rgba(255, 255, 255, .55); padding: 40px 0; font-size: .88rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: rgba(255, 255, 255, .75); margin-left: 22px; }
.footer a:hover { color: var(--pulse); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ledger-track { animation: none; }
  .fomo-chip .pulse-dot { animation: none; }
  .hero-video { display: none; }
}

@media (max-width: 900px) {
  .pain-grid, .stat-row, .pillar-grid, .steps, .voc-grid { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .showcase-row.flip .showcase-media { order: 0; }
  .nav-links { display: none; }
  .section { padding: 68px 0; }
  .hero-inner { padding: 120px 0 90px; }
  .pricing-card { padding: 34px 24px; }
}
