:root {
  --bg: #050608;
  --bg-soft: #0b0d12;
  --surface: #11141b;
  --surface-2: #171b24;
  --line: rgba(255,255,255,0.1);
  --line-soft: rgba(255,255,255,0.06);
  --text: #f7f9fc;
  --muted: #a6afbf;
  --soft: #697386;
  --blue: #1e8cff;
  --cyan: #35d7ff;
  --green: #43e6a6;
  --gradient: linear-gradient(135deg, #74b9ff 0%, #27d9ff 100%);
  --shadow: 0 28px 80px rgba(0,0,0,0.36);
  --radius: 8px;
  --nav-h: 78px;
  --max-w: 1180px;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; color: inherit; border: 0; background: none; }
svg { display: block; }

.w-full { width: 100%; }
.section-inner { width: min(100% - 48px, var(--max-w)); margin: 0 auto; }
.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.section-header {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-header h2,
.signature-band h2,
.split-copy h2,
.pricing-copy h2,
.about-text h2 {
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  margin: 12px 0 18px;
}
.section-header p,
.signature-band p,
.split-copy p,
.pricing-copy p,
.about-text p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  color: #051018;
  background: var(--gradient);
  box-shadow: 0 16px 42px rgba(39,217,255,0.2);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg,
.btn-outline.btn-lg { min-height: 52px; padding: 14px 24px; }
.btn-primary.btn-full { width: 100%; }
.btn-outline { color: var(--text); border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.03); }
.btn-outline:hover { border-color: rgba(53,215,255,0.45); background: rgba(53,215,255,0.07); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  transition: background var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(5,6,8,0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(100% - 48px, var(--max-w));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.nav-logo img {
  height: 58px;
  width: auto;
  filter: brightness(1.22) contrast(1.06) drop-shadow(0 0 12px rgba(53,215,255,0.12));
}
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  padding: 10px 13px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}
.lang-toggle button {
  min-width: 36px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active {
  color: #051018;
  background: var(--gradient);
}
.lang-toggle-mobile {
  width: 100%;
  justify-content: stretch;
  margin: 4px 0;
}
.lang-toggle-mobile button { flex: 1; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--text); }
.nav-mobile {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(5,6,8,0.96);
  border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 6px; }
.nav-mobile a,
.nav-mobile button {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 800;
}
.nav-mobile a:hover,
.nav-mobile button:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 0 86px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,18,25,0) 0%, rgba(15,18,25,0.78) 100%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 70px;
}
.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: 78px;
  line-height: 0.96;
  font-weight: 800;
}
.hero-subtitle {
  max-width: 650px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.hero-proof span {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.device-showcase { display: flex; justify-content: center; }
.device-frame {
  width: min(100%, 440px);
  min-height: 620px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}
.device-top,
.visual-header,
.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mini-label {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.device-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(30,140,255,0.18);
}
.device-top strong { font-size: 20px; }
.live-pill {
  color: var(--green);
  border: 1px solid rgba(67,230,166,0.32);
  background: rgba(67,230,166,0.08);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
.health-ring {
  width: 230px;
  height: 230px;
  margin: 42px auto 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 220deg, var(--cyan), var(--blue) 72%, rgba(255,255,255,0.08) 72%),
    rgba(255,255,255,0.04);
  position: relative;
}
.health-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.ring-core { position: relative; text-align: center; }
.ring-core span { display: block; font-size: 70px; line-height: 0.9; font-weight: 800; }
.ring-core small { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.device-grid div,
.visual-metrics div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
  padding: 14px;
}
.device-grid span,
.visual-metrics span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  margin-bottom: 6px;
}
.device-grid strong,
.visual-metrics strong { font-size: 22px; }
.timeline {
  height: 128px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #080a0f;
}
.timeline span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--gradient);
}

.signature-band {
  padding: 112px 0;
  text-align: center;
  background: var(--bg-soft);
}
.signature-band .section-inner { max-width: 900px; }

.feature-split,
.intelligence,
.pricing-section,
.about { padding: 118px 0; }
.split-inner,
.pricing-inner,
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: center;
}
.surface-card,
.premium-card,
.price-panel,
.dash-card,
.dash-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}
.wide-visual { padding: 28px; min-height: 390px; }
.visual-header span { color: var(--cyan); font-weight: 800; }
.visual-header strong { color: var(--muted); font-size: 13px; }
.flow-lines {
  display: grid;
  gap: 18px;
  margin: 44px 0;
}
.flow-lines span {
  height: 14px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(53,215,255,0.15), rgba(53,215,255,0.88), rgba(116,185,255,0.24));
}
.flow-lines span:nth-child(2) { width: 78%; }
.flow-lines span:nth-child(3) { width: 92%; }
.flow-lines span:nth-child(4) { width: 62%; }
.visual-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.intelligence { background: var(--bg-soft); }
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.premium-card { padding: 28px; min-height: 260px; }
.premium-card img {
  width: 58px;
  height: auto;
  margin-bottom: 28px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(30,140,255,0.18);
}
.premium-card h3 { font-size: 21px; margin-bottom: 12px; }
.premium-card p { color: var(--muted); line-height: 1.7; }

.pricing-inner { grid-template-columns: 1fr 430px; }
.price-panel { padding: 30px; }
.price-head { justify-content: flex-start; }
.price-head img {
  width: 58px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(30,140,255,0.18);
}
.price-head h3 { font-size: 24px; line-height: 1; }
.price-head span { color: var(--soft); font-size: 13px; font-weight: 800; }
.price-main { margin: 34px 0 24px; }
.price-main strong { display: block; font-size: 58px; line-height: 1; font-weight: 800; }
.price-main span { color: var(--muted); }
.price-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: 0 0 auto;
}
.price-note {
  color: var(--soft);
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  background: #050608;
}
.minimal-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--soft);
  font-size: 14px;
}
.minimal-footer div { display: flex; gap: 20px; }
.minimal-footer a:hover { color: var(--text); }

.page-container { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--nav-h); }
.page-inner { flex: 1; width: min(100% - 48px, var(--max-w)); margin: 0 auto; padding: 62px 0; }
.page-title { font-size: 42px; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--muted); margin-bottom: 36px; }
.gradient-text { color: var(--cyan); }
.dash-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.dash-sidebar { padding: 22px; height: fit-content; }
.dash-user { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-user-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #061018;
  font-weight: 800;
  margin-bottom: 12px;
}
.dash-user-name { font-weight: 800; margin-bottom: 3px; }
.dash-user-email { color: var(--muted); font-size: 13px; word-break: break-all; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 9px 10px;
  font-size: 14px;
}
.dash-nav a:hover,
.dash-nav a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.dash-content-area { display: flex; flex-direction: column; gap: 18px; }
.dash-card { padding: 24px; }
.dash-card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 800; margin-bottom: 18px; }
.sub-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(67,230,166,0.25);
  border-radius: var(--radius);
  background: rgba(67,230,166,0.06);
}
.sub-status.inactive { border-color: var(--line); background: rgba(255,255,255,0.02); }
.sub-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.sub-status.inactive .sub-status-dot { background: var(--soft); }
.sub-info { flex: 1; min-width: 0; }
.sub-name { font-weight: 800; }
.sub-date { color: var(--soft); font-size: 12px; }
.sub-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius);
  color: var(--green);
  border: 1px solid rgba(67,230,166,0.28);
  background: rgba(67,230,166,0.08);
  font-size: 12px;
  font-weight: 800;
}
.sub-badge.trial { color: var(--blue); border-color: rgba(30,140,255,0.28); background: rgba(30,140,255,0.08); }

.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  text-align: center;
  background: var(--bg);
}
.result-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 24px;
  font-size: 34px;
}
.result-icon.success { color: var(--green); background: rgba(67,230,166,0.08); border: 1px solid rgba(67,230,166,0.28); }
.result-icon.cancel { color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.result-title { font-size: 38px; line-height: 1.1; margin-bottom: 12px; font-weight: 800; }
.result-text { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.btn-loading { pointer-events: none; opacity: 0.76; }
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 340px;
  border: 1px solid rgba(53,215,255,0.35);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0,0,0,0.34);
  padding: 14px 16px;
  font-size: 14px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255,99,132,0.52); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero-inner,
  .split-inner,
  .pricing-inner,
  .about-grid { grid-template-columns: 1fr; }
  .device-showcase { justify-content: flex-start; }
  .premium-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-logo img { height: 48px; }
  .hero { min-height: auto; padding: 108px 0 72px; }
  .hero-inner,
  .section-inner,
  .nav-inner,
  .page-inner { width: min(100% - 36px, var(--max-w)); }
  .hero-copy h1 { font-size: 48px; }
  .hero-subtitle,
  .section-header p,
  .signature-band p,
  .split-copy p,
  .pricing-copy p { font-size: 16px; }
  .section-header h2,
  .signature-band h2,
  .split-copy h2,
  .pricing-copy h2 { font-size: 38px; }
  .signature-band,
  .feature-split,
  .intelligence,
  .pricing-section { padding: 78px 0; }
  .device-frame { min-height: auto; }
  .health-ring { width: 190px; height: 190px; }
  .ring-core span { font-size: 56px; }
  .device-grid,
  .visual-metrics { grid-template-columns: 1fr; }
  .minimal-footer { align-items: flex-start; flex-direction: column; padding: 24px 0; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 42px; }
  .hero-cta,
  .result-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline,
  .result-actions .btn-primary,
  .result-actions .btn-outline { width: 100%; }
  .device-frame,
  .surface-card,
  .premium-card,
  .price-panel,
  .dash-card { padding: 20px; }
  .price-main strong { font-size: 46px; }
}
