/* =====================================================================
   DailuMedia HVAC Lead Response System, demo site
   Easiest things to edit: the colors and fonts in :root just below.
   ===================================================================== */

:root {
  /* Colors */
  --ink: #06080c;              /* page background */
  --text: #e9f2f8;             /* main text */
  --mute: #93a3b3;             /* secondary text */
  --dim: #5f6f7f;              /* tertiary text */
  --ice: #8fe6ff;              /* icy highlight */
  --cyan: #37c8f5;             /* main glow color */
  --deep: #1a8fd1;             /* deeper blue */
  --red: #ff4d5a;              /* DailuMedia accent, use sparingly */
  --line: rgba(140, 200, 235, .14);
  --line-strong: rgba(140, 220, 255, .3);

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-card: 26px;
  --r-tile: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ice); color: #03141d; padding: .6rem 1rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus { left: 0; }

/* Icons: stroke icons that inherit text color */
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.bg-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.g-right { right: -220px; top: 10%; background: radial-gradient(closest-side, rgba(38, 150, 220, .2), transparent); }
.g-left { left: -260px; top: 6%; background: radial-gradient(closest-side, rgba(38, 150, 220, .16), transparent); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { text-wrap: pretty; }

.sec-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.sec-sub { margin-top: 1.2rem; max-width: 58ch; color: var(--mute); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.lede { color: var(--mute); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 56ch; }
.fine { margin-top: 1.6rem; font-size: .82rem; color: var(--dim); max-width: 60ch; }

/* ------------------------------------------------ Glass */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 37, 52, .72), rgba(12, 17, 26, .62));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 60px -30px rgba(0, 0, 0, .75);
  transition: border-color .35s;
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(90, 200, 245, .17), transparent 60%);
}
.glass:hover { border-color: var(--line-strong); }
.glass:hover::before { opacity: 1; }

/* ------------------------------------------------ Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .8rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #03141d;
  background: linear-gradient(135deg, #b4f3ff 0%, #4cd0f7 45%, #1fa1e0 100%);
  box-shadow: 0 12px 40px -10px rgba(55, 200, 245, .65), 0 0 0 1px rgba(255, 255, 255, .28) inset;
}
.btn-primary:hover { box-shadow: 0 16px 50px -8px rgba(55, 200, 245, .85), 0 0 0 1px rgba(255, 255, 255, .4) inset; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .7s;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(90, 200, 245, .1); border-color: rgba(143, 230, 255, .6); box-shadow: 0 0 34px -8px rgba(55, 200, 245, .5); }
.btn-sm { padding: .7rem 1.15rem; font-size: .72rem; }
.btn-lg { padding: 1.25rem 2rem; font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* ------------------------------------------------ Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: .95rem 0; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 9, 13, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: .92rem; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--mute); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

/* ------------------------------------------------ Hero */
.hero { position: relative; padding: clamp(7.5rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 82% 8%, rgba(38, 150, 220, .26), transparent 62%),
    radial-gradient(700px 520px at 4% 30%, rgba(20, 90, 160, .2), transparent 60%),
    radial-gradient(500px 300px at 50% 100%, rgba(255, 77, 90, .05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(55, 200, 245, .07); color: var(--ice); font-size: .85rem; font-weight: 600; margin-bottom: 1.6rem; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero h1 {
  font-weight: 700; font-size: clamp(2.4rem, 4.9vw, 4.1rem); line-height: 1.05; letter-spacing: -.045em; max-width: 16ch;
  background: linear-gradient(180deg, #ffffff 35%, #a4dcef 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 1.6rem; }

/* One orchestrated page-load moment */
.js .hero-anim { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--a, 0) * .13s + .1s); }

.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(55, 200, 245, .3), transparent); filter: blur(34px); }
.flow-card { max-width: 500px; margin-left: auto; padding: 1.5rem 1.5rem 1.2rem; border-radius: 30px; }
.fc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.fc-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.fc-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ice); }
.fc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 2s infinite; }
.fc-foot { margin-top: 1.3rem; font-size: .74rem; color: var(--dim); }

.fc-step { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; align-items: center; padding-bottom: 1.4rem; opacity: .4; transition: opacity .5s; }
.fc-step:last-child { padding-bottom: 0; }
.fc-step.is-on { opacity: 1; }
.fc-step:not(:last-child)::after, .fc-step:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; }
.fc-step:not(:last-child)::after { background: var(--line); z-index: 1; }
.fc-step:not(:last-child)::before { background: linear-gradient(#b4f3ff, #37c8f5); box-shadow: 0 0 12px rgba(55, 200, 245, .8); z-index: 2; transform: scaleY(0); transform-origin: top; transition: transform .2s; }
.fc-step.pass:not(:last-child)::before { transform: scaleY(1); transition: transform .9s linear; }
.fc-ic { position: relative; z-index: 3; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; border: 1px solid var(--line); background: #0d141d; color: var(--mute); transition: background .5s, color .5s, box-shadow .5s, border-color .5s; }
.is-on .fc-ic { color: #04141d; background: linear-gradient(135deg, #b4f3ff, #37c8f5); border-color: transparent; box-shadow: 0 0 28px rgba(55, 200, 245, .5); }
.is-active .fc-ic::after { content: ""; position: absolute; inset: -6px; border-radius: 19px; border: 1px solid rgba(143, 230, 255, .7); animation: ping 1.6s ease-out infinite; }
.fc-step strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.fc-step small { color: var(--mute); font-size: .83rem; }
.fc-tag { font-size: .72rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(55, 200, 245, .12); color: var(--ice); border: 1px solid rgba(100, 215, 250, .3); opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; }
.is-on .fc-tag { opacity: 1; transform: none; }

.float-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 16px; font-size: .82rem; font-weight: 600; animation: float 7s ease-in-out infinite; }
.chip-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(55, 200, 245, .16); color: var(--ice); }
.chip-a { top: -20px; right: -10px; }
.chip-b { bottom: -38px; left: -30px; animation-delay: -3.5s; }

/* ------------------------------------------------ Problem */
.problem-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.p-card { grid-column: span 2; padding: 1.7rem; display: flex; flex-direction: column; gap: .75rem; min-height: 250px; }
.p-card.wide { grid-column: span 3; min-height: 210px; }
.p-card p { color: var(--mute); font-size: .97rem; }
.p-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(55, 200, 245, .08); border: 1px solid var(--line); color: var(--ice); margin-bottom: .4rem; }
.p-tell { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #ffa3aa; background: rgba(255, 77, 90, .09); border: 1px solid rgba(255, 77, 90, .28); }
.p-tell i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 2.4s infinite; }

/* ------------------------------------------------ How it works (workflow) */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.flow-step { position: relative; text-align: center; padding: 0 .5rem; }
.fs-node { position: relative; z-index: 3; width: 72px; height: 72px; margin: 0 auto 1.3rem; border-radius: 24px; display: grid; place-items: center; background: #0c131c; border: 1px solid var(--line); color: var(--dim); transition: color .5s, border-color .5s, box-shadow .5s, background .5s; animation: bob 6s ease-in-out infinite; }
.flow-step:nth-child(2n) .fs-node { animation-delay: -2s; }
.flow-step:nth-child(3n) .fs-node { animation-delay: -4s; }
.fs-num { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: #0c131c; border: 1px solid var(--line-strong); color: var(--mute); }
.fs-text h3 { font-size: 1rem; margin-bottom: .45rem; color: var(--mute); transition: color .5s; }
.fs-text p { font-size: .85rem; color: var(--dim); line-height: 1.5; transition: color .5s; }
.flow-step.is-on .fs-node { color: #04141d; background: linear-gradient(135deg, #b4f3ff, #37c8f5); border-color: transparent; box-shadow: 0 0 40px rgba(55, 200, 245, .5); }
.flow-step.is-on .fs-num { background: #04141d; color: var(--ice); border-color: rgba(143, 230, 255, .6); }
.flow-step.is-on .fs-text h3 { color: var(--text); }
.flow-step.is-on .fs-text p { color: var(--mute); }
.flow-step.is-current .fs-node::after { content: ""; position: absolute; inset: -8px; border-radius: 30px; border: 1px solid rgba(143, 230, 255, .7); animation: ping 1.6s ease-out infinite; }
/* connector line between nodes */
.flow-step:not(:last-child)::before, .flow-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; width: 100%; top: 35px; height: 2px; }
.flow-step:not(:last-child)::after { background: var(--line); z-index: 1; }
.flow-step:not(:last-child)::before { background: linear-gradient(90deg, #b4f3ff, #37c8f5); box-shadow: 0 0 12px rgba(55, 200, 245, .8); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.flow-step.seg-on:not(:last-child)::before { transform: scaleX(1); transition: transform .9s linear; }

/* ------------------------------------------------ Phone demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pd-list { display: grid; gap: .9rem; margin: 2.2rem 0; }
.pd-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); opacity: .55; transition: opacity .5s, border-color .5s, background .5s, box-shadow .5s; }
.pd-item strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.pd-item p { color: var(--mute); font-size: .92rem; margin-top: .15rem; }
.pd-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); color: var(--mute); transition: .5s; }
.pd-item.on { opacity: 1; border-color: rgba(120, 220, 255, .45); background: rgba(55, 200, 245, .08); box-shadow: 0 0 40px -14px rgba(55, 200, 245, .6); }
.pd-item.on .pd-dot { background: linear-gradient(135deg, #b4f3ff, #37c8f5); color: #04141d; }
.pd-list.idle .pd-item { opacity: .85; }

.phone-wrap { position: relative; display: grid; place-items: center; padding: 1rem; isolation: isolate; }
.phone-wrap::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(55, 200, 245, .3), transparent); filter: blur(36px); }
.phone { position: relative; width: min(310px, 84vw); aspect-ratio: 310 / 640; padding: 10px; border-radius: 50px; background: linear-gradient(160deg, #2c3746, #0d1219 40%, #1b2430); box-shadow: 0 0 0 1px rgba(150, 220, 255, .25), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 90px -10px rgba(55, 200, 245, .28); }
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #05080c; isolation: isolate; }
.ph-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 9; }
.ph-status { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 8px 28px 0; font-size: .78rem; font-weight: 700; pointer-events: none; }
.ph-sig { display: flex; gap: 2px; align-items: flex-end; }
.ph-sig i { width: 3px; background: var(--text); border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 6px; } .ph-sig i:nth-child(3) { height: 8px; } .ph-sig i:nth-child(4) { height: 10px; }

.ph-lock { position: absolute; inset: 0; z-index: 3; padding: 84px 20px 0; text-align: center; background: radial-gradient(120% 60% at 50% 0%, rgba(40, 140, 210, .42), transparent 62%), linear-gradient(180deg, #0b1826, #04070b); transition: opacity .6s; }
.ph-lock .date { font-size: .85rem; color: #b9d3e2; }
.ph-lock .clock { font-family: var(--font-display); font-weight: 600; font-size: 3.7rem; line-height: 1; letter-spacing: -.04em; margin-top: .35rem; }
.phone-screen.open .ph-lock { opacity: 0; pointer-events: none; }

.ph-notif { position: absolute; left: 12px; right: 12px; top: 56px; z-index: 10; display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border-radius: 20px; background: rgba(30, 42, 58, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7), 0 0 30px -6px rgba(55, 200, 245, .35); transform: translateY(-190%); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .2, 1.1), opacity .4s; }
.ph-notif.show { transform: none; opacity: 1; }
.ph-notif strong { display: block; font-size: .85rem; line-height: 1.3; }
.ph-notif span:not(.ph-notif-ic) { display: block; font-size: .73rem; color: #b3c3d0; line-height: 1.35; }
.ph-notif em { font-style: normal; font-size: .68rem; color: var(--dim); align-self: flex-start; }
.ph-notif-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #1a3b57, #0a1622); border: 1px solid var(--line-strong); }
.ph-notif-ic svg { width: 22px; height: 22px; }

.ph-thread { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding-top: 46px; background: #070b10; opacity: 0; transition: opacity .6s .1s; }
.phone-screen.open .ph-thread { opacity: 1; }
.ph-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .8rem; border-bottom: 1px solid var(--line); }
.ph-head strong { display: block; font-size: .88rem; line-height: 1.2; }
.ph-head small { color: var(--mute); font-size: .72rem; }
.ph-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, #24506f, #0f2536); border: 1px solid var(--line-strong); }
.ph-msgs { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: .6rem; padding: 1rem .85rem 1.2rem; }
.ph-item { display: none; flex-direction: column; gap: .3rem; }
.ph-item.show { display: flex; animation: pop .5s cubic-bezier(.2, .8, .2, 1); }
.ph-item.out { align-self: flex-end; align-items: flex-end; max-width: 90%; }
.ph-item.inb { align-self: flex-start; align-items: flex-start; max-width: 86%; }
.ph-item.time { align-self: center; font-size: .68rem; color: var(--dim); }
.ph-item.handoff { align-self: stretch; align-items: center; }
.msg { padding: .65rem .85rem; border-radius: 18px; font-size: .78rem; line-height: 1.45; }
.out .msg { background: linear-gradient(135deg, #2196e0, #1565b0); color: #fff; border-bottom-right-radius: 6px; }
.inb .msg { background: #1a2330; border-bottom-left-radius: 6px; }
.ph-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 600; color: var(--ice); }
.ph-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.handoff-chip { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .7rem .85rem; border-radius: 14px; font-size: .74rem; line-height: 1.35; background: rgba(55, 200, 245, .1); border: 1px solid rgba(100, 215, 250, .4); color: var(--text); }
.handoff-chip .ic { color: var(--ice); }
.ph-typing { display: none; gap: 4px; align-items: center; width: 54px; height: 32px; padding: 0 .85rem; border-radius: 18px; }
.ph-typing.show { display: flex; }
.ph-typing.out { align-self: flex-end; background: rgba(33, 150, 224, .4); }
.ph-typing.inb { align-self: flex-start; background: #1a2330; }
.ph-typing i { width: 6px; height: 6px; border-radius: 50%; background: #d3ecf8; animation: dot 1.1s infinite; }
.ph-typing i:nth-child(2) { animation-delay: .15s; } .ph-typing i:nth-child(3) { animation-delay: .3s; }

/* ------------------------------------------------ Before / after */
.ba { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); }
.ba::after { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 1px; background: linear-gradient(transparent, var(--ice), transparent); box-shadow: 0 0 20px 2px rgba(55, 200, 245, .5); }
.ba-panel { padding: clamp(1.6rem, 3.6vw, 3rem); }
.ba-panel h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 1.6rem; }
.ba-panel ul { display: grid; gap: .75rem; }
.ba-panel li { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.05rem; border-radius: 12px; font-weight: 500; }
.ba-before { background: linear-gradient(160deg, #0f1319, #090c11); filter: saturate(.55); }
.ba-before h3 { color: #a5b0bb; }
.ba-before li { color: #96a3b0; border: 1px dashed rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .02); }
.ba-before li .ic { color: var(--red); }
.ba-before li:nth-child(1) { transform: rotate(-1.6deg) translateX(-6px); }
.ba-before li:nth-child(2) { transform: rotate(1.2deg) translateX(14px); }
.ba-before li:nth-child(3) { transform: rotate(-.8deg) translateX(4px); }
.ba-before li:nth-child(4) { transform: rotate(1.6deg) translateX(-10px); }
.ba-before li:nth-child(5) { transform: rotate(-1.2deg) translateX(10px); }
.ba-after { background: linear-gradient(160deg, rgba(22, 66, 98, .55), rgba(7, 20, 32, .9)); box-shadow: inset 0 0 80px rgba(55, 200, 245, .08); }
.ba-after li { background: rgba(55, 200, 245, .07); border: 1px solid rgba(90, 210, 250, .22); transition: background .3s, border-color .3s, transform .3s; }
.ba-after li:hover { background: rgba(55, 200, 245, .14); border-color: rgba(143, 230, 255, .55); }
.ba-after li .ic { color: var(--ice); }

/* ------------------------------------------------ Included */
.inc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.inc { padding: 1.8rem; display: flex; flex-direction: column; gap: .6rem; }
.inc p { color: var(--mute); font-size: .97rem; max-width: 46ch; }
.i-7 { grid-column: span 7; } .i-5 { grid-column: span 5; } .i-4 { grid-column: span 4; }
.mini-meta { margin-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--dim); }

.mini-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin-top: 1rem; }
.mb-col { display: flex; flex-direction: column; gap: .45rem; padding: .6rem; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.mb-col b { font-size: .68rem; font-weight: 600; color: var(--mute); }
.mb-card { display: block; position: relative; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .05); border-left: 2px solid rgba(143, 230, 255, .45); }
.mb-card::after { content: ""; position: absolute; left: .5rem; top: .55rem; width: 55%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); box-shadow: 0 9px 0 -.5px rgba(255, 255, 255, .1); }
.mb-card.new { border-left-color: var(--ice); background: rgba(55, 200, 245, .16); box-shadow: 0 0 22px -4px rgba(55, 200, 245, .55); animation: arrive 4.5s ease-in-out infinite; }

.mini-bubble { margin-top: 1rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem .95rem; border-radius: 18px 18px 18px 6px; font-size: .84rem; background: linear-gradient(135deg, #2196e0, #1565b0); color: #fff; max-width: 100%; }
.mb-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }

.mini-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: 1rem; }
.mc-day { padding: .55rem 0; text-align: center; font-size: .72rem; color: var(--mute); border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.mc-day.booked { color: #04141d; font-weight: 700; background: linear-gradient(135deg, #b4f3ff, #37c8f5); border-color: transparent; box-shadow: 0 0 22px -4px rgba(55, 200, 245, .6); }

.mini-seq { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--dim); }
.chip { padding: .38rem .8rem; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--mute); background: rgba(255, 255, 255, .03); }
.chip.warn { color: #ffa3aa; border-color: rgba(255, 77, 90, .3); background: rgba(255, 77, 90, .08); }
.chip.ok { color: var(--ice); border-color: rgba(100, 215, 250, .4); background: rgba(55, 200, 245, .1); }

.stars { display: flex; gap: .35rem; margin-top: 1rem; }
.stars .ic { width: 28px; height: 28px; color: #35485a; animation: star 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }

.rep { display: grid; gap: .7rem; margin-top: 1rem; }
.rep-row { display: grid; grid-template-columns: 100px 1fr; gap: .9rem; align-items: center; font-size: .78rem; color: var(--mute); }
.rep-track { height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.rep-fill { display: block; height: 100%; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, #1fa1e0, #b4f3ff); transform-origin: left; animation: fill 5s ease-in-out infinite alternate; }
.rep-row:nth-child(2) .rep-fill { animation-delay: -.6s; } .rep-row:nth-child(3) .rep-fill { animation-delay: -1.2s; } .rep-row:nth-child(4) .rep-fill { animation-delay: -1.8s; }

/* ------------------------------------------------ Benefits */
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ben { padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; min-height: 330px; }
.ben p { color: var(--mute); max-width: 42ch; }
.b-title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; margin-top: 1.2rem; }
.ben > div { height: 120px; border-radius: 18px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }

.v-speed { position: relative; overflow: hidden; }
.v-speed i { position: absolute; left: -45%; width: 45%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ice), transparent); animation: streak 2.6s linear infinite; }
.v-speed i:nth-child(1) { top: 24%; } .v-speed i:nth-child(2) { top: 50%; animation-duration: 1.9s; animation-delay: -.7s; } .v-speed i:nth-child(3) { top: 76%; animation-duration: 3.2s; animation-delay: -1.3s; }

.v-rhythm { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 0 1rem; }
.v-rhythm i { width: 12px; height: 12px; border-radius: 50%; background: rgba(143, 230, 255, .25); animation: beat 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }

.v-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .7rem; align-content: center; justify-items: center; padding: 0 1.2rem; }
.v-grid i { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); opacity: .85; }
.v-grid i.lost { animation: recover 5s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }

.v-bars { display: grid; gap: .55rem; align-content: center; padding: 0 1.2rem; }
.v-bars div { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: .8rem; font-size: .72rem; color: var(--mute); }
.v-bars i { display: block; height: 9px; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, #1fa1e0, #b4f3ff); transform-origin: left; animation: fill 4.5s ease-in-out infinite alternate; }
.v-bars div:nth-child(2) i { animation-delay: -.8s; } .v-bars div:nth-child(3) i { animation-delay: -1.6s; }

/* ------------------------------------------------ Audience */
.aud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.aud-panel { padding: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; border-radius: 34px; }
.dial { position: relative; width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(55, 200, 245, .18), transparent 66%); }
.dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from -2deg, rgba(143, 230, 255, .6) 0 1.2deg, transparent 1.2deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 78%, transparent 79%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 78%, transparent 79%);
  animation: spin 80s linear infinite; }
.dial::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line-strong); background: conic-gradient(from 200deg, rgba(143, 230, 255, .9), transparent 40%, transparent); -webkit-mask: radial-gradient(closest-side, transparent 97%, #000 98%); mask: radial-gradient(closest-side, transparent 97%, #000 98%); animation: spin 14s linear infinite reverse; }
.dial-core { text-align: center; display: grid; gap: .1rem; }
.dial-core strong { font-family: var(--font-display); font-weight: 600; font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; }
.dial-core span { font-size: .8rem; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tags li { padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); transition: background .25s, border-color .25s, box-shadow .25s; }
.tags li:hover { background: rgba(55, 200, 245, .12); border-color: rgba(143, 230, 255, .6); box-shadow: 0 0 28px -6px rgba(55, 200, 245, .6); }

/* ------------------------------------------------ CTA */
.cta { position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0; text-align: center; background: radial-gradient(800px 460px at 50% 50%, rgba(38, 150, 220, .24), transparent 70%), linear-gradient(180deg, transparent, rgba(8, 20, 32, .7)); border-top: 1px solid var(--line); }
.cta-rings { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.cta-rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(143, 230, 255, .2); transform: translate(-50%, -50%); animation: ring 7s ease-in-out infinite; }
.cta-rings i:nth-child(1) { width: 520px; height: 520px; }
.cta-rings i:nth-child(2) { width: 820px; height: 820px; animation-delay: -2.3s; }
.cta-rings i:nth-child(3) { width: 1120px; height: 1120px; animation-delay: -4.6s; }
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(2.2rem, 5.6vw, 4.5rem); max-width: 16ch; margin-inline: auto; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 35%, #a4dcef 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta .lede { margin: 1.6rem auto 0; }

/* ------------------------------------------------ Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: rgba(4, 6, 9, .6); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.foot-brand p { margin-top: .6rem; color: var(--mute); font-size: .92rem; }
.foot-links { display: flex; gap: 1.8rem; font-weight: 600; font-size: .92rem; }
.foot-links a { color: var(--mute); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--ice); }
.foot-copy { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); display: flex; align-items: center; gap: .6rem; }
.foot-copy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ------------------------------------------------ Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------ Keyframes */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-10px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes star { 0%, 12% { color: #35485a; fill: transparent; } 30%, 78% { color: var(--ice); fill: rgba(143, 230, 255, .8); } 100% { color: #35485a; fill: transparent; } }
@keyframes fill { from { transform: scaleX(.18); } to { transform: scaleX(1); } }
@keyframes streak { to { left: 110%; } }
@keyframes beat { 0%, 100% { background: rgba(143, 230, 255, .22); transform: scale(1); } 50% { background: var(--ice); transform: scale(1.5); box-shadow: 0 0 16px rgba(143, 230, 255, .8); } }
@keyframes recover { 0%, 25% { background: var(--red); box-shadow: 0 0 12px var(--red); } 55%, 100% { background: var(--cyan); box-shadow: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .35; } 50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }

/* ------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .flow { grid-template-columns: 1fr; max-width: 560px; }
  .flow-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 1.3rem; text-align: left; padding: 0 0 1.8rem; align-items: start; }
  .flow-step:last-child { padding-bottom: 0; }
  .fs-node { margin: 0; }
  .fs-text { padding-top: .35rem; }
  .flow-step:not(:last-child)::before, .flow-step:not(:last-child)::after { left: 35px; top: 72px; bottom: 0; width: 2px; height: auto; }
  .flow-step:not(:last-child)::before { transform: scaleY(0); transform-origin: top; background: linear-gradient(#b4f3ff, #37c8f5); }
  .flow-step.seg-on:not(:last-child)::before { transform: scaleY(1); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem; border-radius: 22px; background: rgba(10, 15, 22, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: .8rem .6rem; }
  .nav-links .btn { margin-top: .5rem; }

  .hero-grid, .demo-grid, .aud-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .flow-card { margin-inline: auto; }
  .chip-a { right: 4px; } .chip-b { left: 4px; }
  .demo-copy { order: 1; } .phone-wrap { order: 2; }

  .problem-grid { grid-template-columns: 1fr 1fr; }
  .p-card, .p-card.wide { grid-column: span 1; min-height: 0; }
  .p-card:last-child { grid-column: 1 / -1; }

  .inc-grid { grid-template-columns: 1fr 1fr; }
  .i-4, .i-5, .i-7 { grid-column: span 1; }
  .t-wide { grid-column: 1 / -1; }

  .ba { grid-template-columns: 1fr; }
  .ba::after { top: 50%; bottom: auto; left: 8%; right: 8%; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--ice), transparent); }
}

@media (max-width: 700px) {
  .problem-grid, .inc-grid, .ben-grid { grid-template-columns: 1fr; }
  .p-card:last-child, .t-wide { grid-column: auto; }
  .ben { min-height: 0; }
  .mini-board { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .fc-tag { display: none; }
  .fc-step { grid-template-columns: 46px 1fr; }
  .flow-card { padding: 1.2rem; }
  .chip-a, .chip-b { display: none; }
}

/* ------------------------------------------------ Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-anim { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
