/* Landing page */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { overflow-x: clip; }
body { background: var(--bg-elev); }
.hero { overflow-x: clip; overflow-y: visible; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav.scrolled { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 20px; min-height: 60px; }
.nav-logo { flex: 1; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; margin-right: 20px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav-login { display: none; } }

/* hero */
.hero { position: relative; text-align: center; padding: clamp(56px, 10vw, 110px) 20px 40px; max-width: 1120px; margin: 0 auto; }
.hero-glow {
  position: absolute; inset: -10% -20% auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 42% at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(30% 30% at 70% 60%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
              radial-gradient(26% 30% at 30% 62%, color-mix(in srgb, var(--purple) 12%, transparent), transparent 70%);
  filter: blur(10px); animation: glow 14s var(--ease) infinite alternate;
}
@keyframes glow { to { transform: translateY(-30px) scale(1.06); } }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.hero-title { margin: 0; font: 800 clamp(44px, 9vw, 96px)/1.0 var(--display); letter-spacing: -.05em; }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); letter-spacing: -.015em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-cta .btn svg { width: 18px; height: 18px; transition: transform .4s var(--spring); }
.hero-cta .btn:hover svg { transform: translateX(3px); }
.hero-note { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); }

/* the demo "device" */
.device {
  max-width: 720px; margin: 64px auto 0; border-radius: 30px; background: var(--bg); text-align: left; overflow: hidden;
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line); transform: perspective(1400px) rotateX(var(--tilt, 8deg)); transform-origin: 50% 100%;
  transition: transform .2s linear;
}
.device-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--glass); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface3); }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.device-title { flex: 1; font-weight: 600; font-size: 14px; }
.device-clock { font: 12.5px var(--mono); color: var(--muted); }
.device-body { padding: 16px 18px 6px; height: 380px; overflow: hidden; position: relative; }
.device-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.demo-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 980px; background: var(--surface); font-size: 13px; color: var(--muted); box-shadow: var(--shadow); margin-bottom: 12px; }
.demo-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.demo-cs { margin-left: 6px; padding: 2px 9px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; }
.demo-alert { border-radius: 20px; background: var(--surface); padding: 12px 16px 14px; margin-bottom: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); animation: pop-in .5s var(--spring), demo-flash .3s var(--ease) 6 alternate .3s; }
@keyframes demo-flash { to { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: 0 0 0 4px var(--accent-soft); } }
.demo-alert b { display: block; font-size: 11px; letter-spacing: .06em; color: var(--accent); }
.demo-alert div { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin-top: 4px; }
.demo-feed { display: flex; flex-direction: column; gap: 8px; }
.demo-card { background: var(--surface); border-radius: 16px; padding: 10px 16px 12px; box-shadow: var(--shadow); animation: tx-in .6s var(--spring); }
@keyframes tx-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.demo-card time { font: 11.5px var(--mono); color: var(--faint); }
.demo-card p { margin: 2px 0 0; font-size: 16px; letter-spacing: -.012em; line-height: 1.4; }
.demo-card.live p { color: var(--muted); }
.demo-card.live time { color: var(--red); font: 600 11.5px var(--font); }
.cs-mark { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 5px; font-weight: 700; }
.device-dock { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 14px 0 18px; border-top: 1px solid var(--line); background: var(--glass); }
.dd-side { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dd-side.red { background: var(--red-soft); }
.dd-mic { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 8px color-mix(in srgb, var(--red) 16%, transparent); animation: mic-pulse 1.8s var(--ease) infinite; }
.dd-mic i { width: 16px; height: 16px; border-radius: 4px; background: #fff; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--red) 8%, transparent); } }

.hl-emergency { color: var(--hl-emergency); font-weight: 700; } .hl-instruction { color: var(--hl-instruction); }
.hl-procedure { color: var(--hl-procedure); } .hl-callsign { color: var(--hl-callsign); } .hl-value { color: var(--hl-value); }
.hl-place { color: var(--hl-place); } .hl-weather { color: var(--hl-weather); } .hl-phonetic { color: var(--hl-phonetic); }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) 20px 0; }
.section.narrow { max-width: 760px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin: 0; font: 700 clamp(32px, 5.5vw, 56px)/1.06 var(--display); letter-spacing: -.045em; }
.section-sub { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--r-xl); padding: 30px 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform .6s var(--spring), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.tile-big { grid-column: span 2; grid-row: span 1; }
.tile h3 { margin: 18px 0 8px; font: 700 23px/1.2 var(--display); letter-spacing: -.028em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tile-big h3 { font-size: 30px; }
.tile-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.tile-icon svg { width: 24px; height: 24px; }
.tile-icon.blue { background: var(--accent-soft); color: var(--accent); }
.tile-icon.purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }
.tile-icon.green { background: var(--green-soft); color: var(--green); }
.tile-icon.amber { background: var(--amber-soft); color: color-mix(in srgb, var(--amber) 80%, var(--fg)); }
.wave { display: flex; align-items: center; gap: 5px; height: 64px; margin-top: 26px; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); height: 20%; animation: wave 1.2s var(--ease) infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-delay: -.5s; } .wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { to { height: 100%; } }
.legend-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.legend-mini span { padding: 4px 10px; border-radius: 980px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile-big { grid-column: auto; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 30px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); font-weight: 700; }
.step h3 { margin: 18px 0 6px; font: 700 21px/1.2 var(--display); letter-spacing: -.025em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 30px 28px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .6s var(--spring), box-shadow .4s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.price-card.featured { box-shadow: var(--shadow-lift), inset 0 0 0 2px var(--accent); }
.price-card .badge { align-self: flex-start; }
.price-card h3 { margin: 14px 0 0; font: 700 24px/1.2 var(--display); letter-spacing: -.025em; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 6px; }
.pc-price b { font: 800 52px/1 var(--display); letter-spacing: -.05em; }
.pc-price span { color: var(--muted); }
.price-card ul { list-style: none; margin: 10px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price-card li svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.2; margin-top: 2px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -.018em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .45s var(--spring); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--spring); }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--muted); line-height: 1.6; }
.faq details[open] > div > p { padding-bottom: 20px; }

/* final band */
.cta-band { max-width: 1120px; margin: clamp(80px, 12vw, 140px) auto 0; padding: 0 20px; text-align: center; }
.cta-band h2 { margin: 0 0 30px; font: 800 clamp(38px, 7vw, 72px)/1.03 var(--display); letter-spacing: -.05em; }

.foot { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--line); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 32px 20px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.foot img { height: 22px; width: auto; margin-bottom: 6px; }
.foot p { margin: 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.device.reveal.in { transform: perspective(1400px) rotateX(var(--tilt, 8deg)); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .device { transform: none !important; } }
