:root {
  --bg: #F1F5F9;
  --bg-alt: #E2E8F0;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --border: #CBD5E1;
  --text: #0F172A;
  --text-sec: #475569;
  --text-muted: #64748B;
  --accent: #0284C7;
  --accent-soft: rgba(2, 132, 199, 0.12);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.14);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  --nav-bg: rgba(241, 245, 249, 0.85);
}

body.stealth {
  --bg: #0D0E11;
  --bg-alt: #13151B;
  --surface: #181B22;
  --surface-soft: #1E222B;
  --border: #2A2F3B;
  --text: #F1F5F9;
  --text-sec: #A1AAB8;
  --text-muted: #70798A;
  --accent: #FF5C28;
  --accent-soft: rgba(255, 92, 40, 0.16);
  --ok: #10E890;
  --ok-soft: rgba(16, 232, 144, 0.14);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(13, 14, 17, 0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.hidden { display: none !important; }
.ic {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -0.2em;
}
.inline-ic { color: var(--accent); margin: 0 2px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; align-items: center; gap: 8px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.3px; }
.ver-pill {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok);
}
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 13.5px; font-weight: 600; }
.nav-links > a:not(.btn) { color: var(--text-sec); transition: color 0.15s; }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform 0.12s, border-color 0.15s, filter 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(255, 92, 40, 0.24);
}
body:not(.stealth) .btn-primary { box-shadow: 0 8px 22px rgba(2, 132, 199, 0.24); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-sec); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.btn-full { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero-glow {
  position: absolute; inset: -120px 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 22% 20%, rgba(255, 92, 40, 0.16), transparent 65%),
              radial-gradient(ellipse 50% 60% at 82% 30%, rgba(16, 232, 144, 0.12), transparent 65%);
}
body:not(.stealth) .hero-glow {
  background: radial-gradient(ellipse 60% 60% at 22% 20%, rgba(2, 132, 199, 0.16), transparent 65%),
              radial-gradient(ellipse 50% 60% at 82% 30%, rgba(5, 150, 105, 0.12), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-sec); margin-bottom: 18px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.09; font-weight: 850; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 16.5px; color: var(--text-sec); max-width: 560px; margin-bottom: 24px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { color: var(--ok); }

/* Console Preview Card */
.console-preview {
  background: #14171E; color: #F1F5F9;
  border: 1px solid #2A303F; border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.preview-bar {
  padding: 10px 14px; background: #0C0E13; border-bottom: 1px solid #232836;
  display: flex; align-items: center; justify-content: space-between; font-size: 11.5px;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: #333B4D; display: block; }
.preview-title { font-family: ui-monospace, monospace; color: #94A3B8; font-weight: 600; }
.preview-badge {
  background: rgba(16, 232, 144, 0.16); color: #10E890;
  padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800;
}
.preview-body { display: flex; min-height: 290px; }
.preview-rail {
  width: 58px; background: #0B0D12; border-right: 1px solid #202532;
  padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.p-pill {
  font-size: 9px; font-weight: 800; padding: 4px 8px; border-radius: 8px;
  background: rgba(16, 232, 144, 0.16); color: #10E890; border: 1px solid #10E890;
}
.p-ch {
  font-size: 9.5px; font-weight: 700; width: 42px; text-align: center;
  padding: 6px 2px; border-radius: 8px; background: #171B24; color: #94A3B8;
}
.p-ch.active { background: #FF5C28; color: #FFFFFF; }
.preview-stage {
  flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.p-msg { max-width: 86%; padding: 9px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.35; }
.p-msg small { display: block; font-size: 10px; opacity: 0.72; margin-bottom: 3px; font-weight: 700; }
.p-msg.peer { background: #202531; border: 1px solid #303748; align-self: flex-start; }
.p-msg.mine { background: #FF5C28; color: #FFF; align-self: flex-end; }
.p-ptt-wrap {
  margin-top: auto; padding-top: 10px; border-top: 1px solid #232836;
  display: flex; align-items: center; gap: 14px;
}
.p-dial {
  position: relative; width: 64px; height: 64px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.p-dial-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #FF5C28;
  box-shadow: 0 0 18px rgba(255, 92, 40, 0.35);
}
.p-dial-core {
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2D3342, #12151C);
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.4px; text-align: center;
}
.p-dial-note strong { display: block; font-size: 12.5px; color: #10E890; }
.p-dial-note span { font-size: 11px; color: #94A3B8; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--text-sec); font-size: 15px; }

/* Platform Cards */
.platform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.platform-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s, transform 0.15s;
}
.platform-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.card-top { display: flex; align-items: flex-start; gap: 14px; }
.plat-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.plat-icon.ios { background: var(--accent-soft); color: var(--accent); }
.plat-icon.android { background: var(--ok-soft); color: var(--ok); }
.plat-icon.windows { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.plat-badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-badge-row h3 { font-size: 18px; font-weight: 800; }
.rec-tag {
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
}
.plat-sub { font-size: 12.5px; color: var(--text-sec); margin-top: 2px; }
.plat-points {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--text-sec); flex: 1;
}
.plat-points li { position: relative; padding-left: 18px; }
.plat-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
}
.checksum-box {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 11px;
}
.checksum-label { font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.checksum-box code {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-sec); flex: 1;
}
.icon-copy {
  background: transparent; border: none; color: var(--text-sec);
  cursor: pointer; padding: 4px; border-radius: 6px;
}
.icon-copy:hover { color: var(--accent); background: var(--accent-soft); }
.card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.hint-note { font-size: 11.5px; color: var(--text-muted); text-align: center; }

/* iOS Panel */
.ios-panel {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 34px; box-shadow: var(--shadow);
}
.pill-accent {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}
.ios-panel h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.ios-panel > div > p { color: var(--text-sec); margin-bottom: 20px; }
.ios-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.ios-steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #FFF; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.ios-steps strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.ios-steps p { font-size: 13px; color: var(--text-sec); }
.ios-phone-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 22px; padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ios-app-icon {
  border-radius: 22px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}
.ios-icon-caption { font-weight: 800; font-size: 15px; }
.ios-compat-grid {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px;
}
.ios-compat-grid > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 8px;
}
.ios-compat-grid strong { display: block; font-size: 12.5px; color: var(--ok); }
.ios-compat-grid span { font-size: 11px; color: var(--text-muted); }

/* Feature Grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.feat-ic {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.feat-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; color: var(--text-sec); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 26px 0;
  font-size: 13px; color: var(--text-muted);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 18px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .ios-panel { grid-template-columns: 1fr; padding: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
  .hero { padding: 40px 0 36px; }
  .feature-grid { grid-template-columns: 1fr; }
}
