/* Bailey's Panel website: navy, blue and white. Shared by every page. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
  --bg: #060d19;
  --bg-2: #08111f;
  --card: #0f1c33;
  --card-hi: #132442;
  --line: #1c3560;
  --line-hi: #2d5394;
  --text: #ffffff;
  --soft: #cfe0ff;
  --muted: #8ea3c7;
  --faint: #5f7ba8;
  --blue: #2f7bff;
  --blue-hi: #4a8eff;
  --blue-lo: #1f5fd6;
  --ok: #7fd6a4;
  --error: #ff8593;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select { font-family: var(--font); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- nav ------------------------------------------------------------------------------- */

.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px;
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 14px; border-radius: 18px;
  background: rgba(10, 20, 38, .72); border: 1px solid rgba(77, 132, 230, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .3s, border-color .3s;
}
.nav.scrolled .nav-inner { background: rgba(8, 16, 31, .9); border-color: rgba(77, 132, 230, .35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand b { color: var(--blue-hi); font-weight: 600; }
.logo {
  position: relative; overflow: hidden; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(145deg, var(--blue-hi), var(--blue-lo));
  box-shadow: 0 6px 18px -6px rgba(47, 123, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  transform: translateX(-120%); animation: shine 6s var(--ease) infinite 1.5s;
}
@keyframes shine { 0%, 80% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(47, 123, 255, .1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.currency {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(47, 123, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238ea3c7' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line); color: var(--soft); border-radius: 10px; padding: 7px 28px 7px 12px; font-size: 13px;
  transition: border-color .2s;
}
.currency:hover, .currency:focus { border-color: var(--line-hi); outline: none; }
.currency option { background: var(--card); }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ---- buttons ---------------------------------------------------------------------------- */

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px -8px rgba(47, 123, 255, .7);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), filter .2s, opacity .2s;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-20deg);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 32px -10px rgba(47, 123, 255, .9); }
.btn:hover::before { left: 120%; transition: left .75s var(--ease); }
.btn:active { transform: scale(.97); filter: brightness(.92); }
.btn:focus-visible { outline: 2px solid #9cc4ff; outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn.ghost {
  background: rgba(47, 123, 255, .06); color: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.btn.ghost:hover { background: rgba(47, 123, 255, .14); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .35);
  transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---- hero ------------------------------------------------------------------------------- */

.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.beams { position: absolute; inset: 0; pointer-events: none; }
.beams::before, .beams::after {
  content: ""; position: absolute; left: 50%; top: -20%; width: 1100px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(47, 123, 255, .28), transparent 70%) 50% 0 / 520px 760px no-repeat,
    linear-gradient(90deg, transparent 47%, rgba(110, 165, 255, .12) 50%, transparent 53%) 0 0 / 100% 100% no-repeat;
  filter: blur(8px); animation: breathe 9s ease-in-out infinite;
}
.beams::after {
  background:
    linear-gradient(100deg, transparent 38%, rgba(74, 142, 255, .09) 42%, transparent 46%),
    linear-gradient(80deg, transparent 54%, rgba(74, 142, 255, .09) 58%, transparent 62%);
  animation-delay: -4s;
}
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: #8fb6ff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 20px; font-weight: 700; }
.accent {
  background: linear-gradient(90deg, #6aa4ff, #2f7bff 60%, #9cc4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--faint); font-size: 13px; }
.trust span { display: flex; align-items: center; gap: 6px; }
.trust .icon { width: 15px; height: 15px; color: var(--blue-hi); }

/* phone mockup */
.stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #1b2b4a, #0b1526); border: 1px solid #2a4675;
  box-shadow: 0 40px 90px -30px rgba(47, 123, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden;
  background:
    radial-gradient(70% 45% at 30% 25%, rgba(255, 160, 120, .55), transparent 70%),
    radial-gradient(60% 50% at 75% 70%, rgba(80, 140, 255, .65), transparent 70%),
    linear-gradient(170deg, #253a63, #0d1a33 70%);
}
.screen::before { /* soft "person" silhouette */
  content: ""; position: absolute; left: 50%; bottom: -6%; width: 78%; height: 62%; transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 22%, rgba(8, 14, 28, .85) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 50% 60% at 50% 95%, rgba(8, 14, 28, .85) 0 99%, transparent 100%);
}
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); background: #070d18; border-radius: 0 0 14px 14px; z-index: 3; }
.caption {
  position: absolute; left: 8%; right: 8%; text-align: center; z-index: 2;
  font-weight: 700; font-size: 25px; line-height: 1.15; letter-spacing: .01em; color: #fff;
  -webkit-text-stroke: 5px #000; paint-order: stroke fill;
  transition: top .3s var(--ease);
}
.caption.pop { animation: pop .22s var(--ease); }
@keyframes pop { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
.caption.yellow { color: #ffdb1a; }
.chip-float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(15, 28, 51, .9); border: 1px solid var(--line-hi); font-size: 13px; color: var(--soft);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.chip-float .icon { color: var(--blue-hi); width: 17px; height: 17px; }
.chip-float.a { left: -6%; top: 18%; }
.chip-float.b { right: -8%; bottom: 20%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- sections --------------------------------------------------------------------------- */

section { position: relative; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.card {
  position: relative; border-radius: 18px; padding: 24px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -24px rgba(0, 0, 0, .9);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 50px -26px rgba(47, 123, 255, .55); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(47, 123, 255, .12); border: 1px solid rgba(47, 123, 255, .35); color: #9cc4ff;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.soon { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; color: var(--faint); font-size: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px dashed var(--line-hi); color: var(--muted); font-size: 13px;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-hi), var(--blue-lo)); font-weight: 700; margin-bottom: 14px;
  box-shadow: 0 6px 16px -6px rgba(47, 123, 255, .8);
}
.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* try it */
.try { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.controls { display: flex; flex-direction: column; gap: 18px; }
.control-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #0b172c; color: var(--muted); font-size: 14px;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--soft); border-color: var(--line-hi); }
.chip.on { color: #fff; border-color: var(--blue); background: rgba(47, 123, 255, .18); box-shadow: 0 0 16px -4px rgba(47, 123, 255, .8); }
.chip:active { transform: scale(.95); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.transcript { font-size: 14px; color: var(--faint); line-height: 1.9; }
.transcript span { transition: color .2s; }
.transcript span.now { color: #fff; }
.demo-note { color: var(--faint); font-size: 13px; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; padding: 34px; text-align: center; border-color: var(--line-hi); }
.price-card::before {
  content: "Monthly"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
}
.amount { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 10px 0 4px; }
.amount small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: 15px; }
.checks .icon { color: var(--blue-hi); width: 19px; height: 19px; margin-top: 3px; }
.fine { color: var(--faint); font-size: 13px; margin-top: 14px; }
.form-error { color: var(--error); font-size: 14px; margin-top: 12px; min-height: 0; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 20px;
  transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: var(--line-hi); background: var(--card-hi); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-hi); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* final cta */
.final { text-align: center; padding: 70px 24px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, rgba(47, 123, 255, .35), transparent 70%), var(--card);
  border: 1px solid var(--line-hi);
}
.final p { color: var(--muted); margin: 0 0 26px; }

/* footer */
footer { padding: 60px 0 40px; border-top: 1px solid #10203d; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--soft); font-weight: 600; }
.foot a { display: block; color: var(--faint); text-decoration: none; font-size: 14px; padding: 3px 0; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot p { color: var(--faint); font-size: 14px; margin: 12px 0 0; max-width: 300px; }
.copyright { color: var(--faint); font-size: 13px; margin-top: 40px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- simple pages (thanks, account, install, legal) ---------------------------------------- */

.page { padding: 140px 0 60px; min-height: 80vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 4.5vw, 46px); }
.page .lead { max-width: none; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page ol, .page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page strong { color: var(--soft); font-weight: 600; }
.keybox {
  display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 14px 14px 14px 18px; border-radius: 14px;
  background: #0b172c; border: 1px solid var(--line-hi); font-size: 20px; letter-spacing: .08em; font-weight: 600;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.keybox code { flex: 1; font-family: var(--font); }
.notice { padding: 14px 18px; border-radius: 12px; background: rgba(255, 207, 110, .08); border: 1px solid rgba(255, 207, 110, .35); color: #ffe2a6; font-size: 14px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #0b172c;
  color: #fff; font-size: 15px; letter-spacing: .04em; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 255, .2); }
.status-ok { color: var(--ok); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal h2 { font-size: 20px; }
.updated { color: var(--faint); font-size: 14px; }

/* ---- responsive ---------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .hero .wrap, .try { grid-template-columns: 1fr; }
  .stage { margin-top: 20px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column;
    padding: 10px; border-radius: 16px; background: rgba(8, 16, 31, .97); border: 1px solid var(--line-hi); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .menu-btn { display: block; }
  .nav-right .btn { display: none; }
  .hero { padding-top: 120px; }
  .grid-3, .steps, .foot { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .chip-float { display: none; }
  .phone { width: 250px; }
  .wrap { padding: 0 16px; }
}

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