:root {
  --ink: #0e1a2b;
  --ink-2: #44506a;
  --ink-3: #6b7588;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: #e1e6ee;
  --navy: #0b1a33;
  --navy-2: #12284a;
  --accent: #f2a91c;
  --accent-2: #ffcf6b;
  --accent-ink: #1a1405;
  --hi: #d2452f;
  --mid: #d98c0f;
  --lo: #3b6fb6;
  --hi-bg: #fdecea;
  --mid-bg: #fdf3e1;
  --lo-bg: #e9f0fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 12px 32px rgba(14, 26, 43, .08);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf3;
    --ink-2: #b4bdcc;
    --ink-3: #8c96a8;
    --bg: #0a1322;
    --bg-alt: #0f1a2d;
    --line: #22304a;
    --hi: #f0806c;
    --mid: #f2b44c;
    --lo: #82a9e2;
    --hi-bg: #3a1c1a;
    --mid-bg: #36290f;
    --lo-bg: #152742;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; max-width: 24ch; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

section { padding: 96px 0; scroll-margin-top: 64px; }
section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--mid); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .8em; }
.muted { color: var(--ink-2); font-size: 1.06rem; }
.note { color: var(--ink-3); font-size: .9rem; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .top { background: rgba(10, 19, 34, .8); } }
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 26px; height: 26px; color: var(--accent); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 550; }
.nav a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px rgba(242, 169, 28, .28);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px rgba(242, 169, 28, .38); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-lg { padding: 15px 26px; font-size: 1.04rem; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 110px 0 120px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 78% 40%, rgba(242, 169, 28, .18), transparent 70%),
    radial-gradient(800px 500px at 10% 0%, rgba(59, 111, 182, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #d7deea; font-size: .85rem; font-weight: 600; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 169, 28, .2); }
.hl { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #c3cddd; font-size: 1.2rem; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.link-light { color: #d7deea; text-decoration: none; font-weight: 600; }
.link-light:hover { color: #fff; }
.hero-note { margin-top: 18px; color: #8e9ab0; font-size: .9rem; }

/* hero visual */
.hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; }
.beacon { position: absolute; top: -62px; right: -52px; z-index: 1; width: 120px; height: 120px; display: grid; place-items: center; color: var(--accent); }
.beacon-core { width: 26px; height: 26px; position: relative; z-index: 1; filter: drop-shadow(0 0 12px rgba(242, 169, 28, .8)); }
.ring { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(242, 169, 28, .7); animation: pulse 3s ease-out infinite; }
.r2 { animation-delay: 1s; }
.r3 { animation-delay: 2s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4.6); opacity: 0; } }

.feed { position: relative; width: 100%; max-width: 420px; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-1.5deg); }
@media (prefers-color-scheme: dark) { .feed { background: #111d31; color: var(--ink); } }
.feed-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.live .dot { width: 7px; height: 7px; }
.feed-item { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.fi-title { font-weight: 700; margin: 6px 0 0; font-size: .98rem; }
.fi-text { margin: 0; color: var(--ink-2); font-size: .9rem; }
.feed-foot { margin: 6px 4px 0; font-size: .74rem; color: var(--ink-3); }

.chip { display: inline-block; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 999px; }
.chip-hi { background: var(--hi-bg); color: var(--hi); }
.chip-mid { background: var(--mid-bg); color: var(--mid); }
.chip-lo { background: var(--lo-bg); color: var(--lo); }

/* stats */
.stats { padding: 0; position: relative; z-index: 2; margin-top: -48px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 28px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.lbl { color: var(--ink-2); margin: 6px 0 0; font-size: .95rem; }

/* problem */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.col-old { background: var(--bg-alt); }
.col-new { background: var(--navy); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.col ul { list-style: none; padding: 0; margin: 16px 0 0; }
.col li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.x-list li { color: var(--ink-2); }
.ok-list li { color: #d7deea; }
.x-list li::before, .ok-list li::before { position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.x-list li::before { content: "\2715"; background: var(--hi-bg); color: var(--hi); }
.ok-list li::before { content: "\2713"; background: rgba(242, 169, 28, .18); color: var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mid-bg); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--mid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* network */
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.net { width: 100%; height: auto; }
.net-lines line { stroke: var(--line); stroke-width: 1.5; }
.net-nodes circle { fill: var(--bg-alt); stroke: var(--ink-3); stroke-width: 1.5; }
.net-hub { fill: var(--mid); }
.net-phone { fill: #fff; }
.net-yours { fill: var(--lo); stroke: var(--lo-bg); stroke-width: 6; }
.net-label { font-size: 12px; font-weight: 700; fill: var(--lo); }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps .n { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* sample */
.sample-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.email { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.email-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 14px 20px; font-size: .9rem; color: var(--ink-2); }
.dots { display: flex; gap: 6px; margin-bottom: 10px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.email-head .k { display: inline-block; width: 64px; color: var(--ink-3); }
.email-body { padding: 20px 20px 8px; }
.alert { border-left: 3px solid var(--lo); padding: 2px 0 2px 16px; margin-bottom: 20px; }
.alert p { margin: 6px 0 0; font-size: .96rem; }
.alert p + p { margin-top: 2px; color: var(--ink-2); }
.alert.hi { border-color: var(--hi); }
.alert.mid { border-color: var(--mid); }
.fine { font-size: .8rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem; padding: 18px 36px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--ink-3); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); margin: 0 0 18px; }

/* cta */
.cta { padding: 96px 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--navy); color: #fff; border-radius: 22px; padding: 52px 56px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(242, 169, 28, .28), transparent 65%); }
.cta-box > * { position: relative; }
.cta-box h2 { max-width: none; margin-bottom: .3em; }
.cta-box p { color: #c3cddd; margin: 0; max-width: 52ch; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: .86rem; }
.foot p { max-width: 90ch; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.foot-top p { margin: 0; }
.foot .brand { color: var(--ink); font-size: 1rem; }

/* plain pages (privacy, 404) */
.page { padding: 56px 0 72px; }
.page h2 { font-size: 1.2rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-2); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .net-grid, .sample-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; }
  .beacon { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .top-row { justify-content: space-between; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 96px; }
  .stats-grid, .compare, .steps, .grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 24px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .btn-lg { white-space: normal; }
  .feed { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring { animation: none; }
  .ring { display: none; }
}
