:root{
  --bg:#06111f;
  --bg-elev:#0b1c31;
  --panel:#0e223a;
  --panel-soft:rgba(10, 25, 43, .78);
  --panel-strong:#102945;
  --line:rgba(125, 211, 252, .16);
  --line-strong:rgba(125, 211, 252, .28);
  --text:#e8f2ff;
  --muted:#8ba7c7;
  --accent:#38bdf8;
  --accent-strong:#0ea5e9;
  --accent-soft:rgba(56, 189, 248, .16);
  --success:#22c55e;
  --warning:#f59e0b;
  --danger:#ef4444;
  --shadow:0 24px 80px rgba(2, 8, 23, .42);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:12px;
}

html[data-theme="light"]{
  --bg:#eaf3fb;
  --bg-elev:#f7fbff;
  --panel:#ffffff;
  --panel-soft:rgba(255, 255, 255, .86);
  --panel-strong:#ffffff;
  --line:rgba(15, 23, 42, .09);
  --line-strong:rgba(14, 165, 233, .24);
  --text:#0f1b2d;
  --muted:#506887;
  --accent:#0284c7;
  --accent-strong:#0369a1;
  --accent-soft:rgba(2, 132, 199, .10);
  --shadow:0 24px 60px rgba(15, 23, 42, .10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:"Segoe UI Variable Display","IBM Plex Sans","Inter","Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34,211,238,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(14,165,233,.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #04101d 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(148,163,184,.04) 1px, transparent 1px),linear-gradient(90deg, rgba(148,163,184,.04) 1px, transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.6), transparent 92%);
}

a{color:inherit}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}

.app-shell{position:relative;z-index:1}
.page-shell{width:min(1180px, calc(100% - 32px));margin:0 auto;padding:24px 0 56px}

.site-header{position:sticky;top:0;z-index:20;padding:18px 16px 0;backdrop-filter:blur(16px)}
.site-header__inner{
  width:min(1180px, 100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(6,17,31,.72);
  box-shadow:var(--shadow);
}
html[data-theme="light"] .site-header__inner{background:rgba(247,251,255,.86)}

.brand-mark{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}
.brand-mark__logo{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg, rgba(56,189,248,.26), rgba(14,165,233,.08));
  border:1px solid var(--line-strong);
  font-weight:800;
  letter-spacing:.08em;
}
.brand-mark__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.brand-mark__text strong{font-size:1rem;letter-spacing:.04em;text-transform:uppercase}
.brand-mark__text span{font-size:.82rem;color:var(--muted);white-space:nowrap}

.site-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.site-nav__link{
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  transition:all .18s ease;
}
.site-nav__link:hover,
.site-nav__link.is-active{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.04);
}

.theme-toggle,
.btn,
.button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid var(--line-strong);
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.theme-toggle{
  color:var(--text);
  background:rgba(255,255,255,.04);
}
.theme-toggle:hover,
.btn:hover,
.button-link:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(2,8,23,.18);
}
.theme-toggle__icon{
  width:18px;
  height:18px;
  border-radius:999px;
  background:linear-gradient(135deg, #fde68a, #38bdf8);
  box-shadow:0 0 0 4px rgba(255,255,255,.08);
}

.btn,
.button-link{
  background:linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#f8fdff;
  font-weight:650;
}
.btn--secondary,
.button-link--secondary{
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.btn--ghost,
.button-link--ghost{
  background:transparent;
  color:var(--muted);
}

.hero{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(280px, .8fr);
  gap:18px;
  align-items:stretch;
  margin-top:18px;
}
.panel,
.hero-panel,
.metric-card,
.info-card,
.content-card,
.message-card,
.status-card,
.feature-card,
.timeline-card,
.auth-card{
  border:1px solid var(--line);
  background:var(--panel-soft);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}
.hero-panel,
.content-card,
.message-card,
.auth-card{padding:26px}
.hero-panel--aside{padding:22px}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:#b8eaff;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
html[data-theme="light"] .eyebrow{color:var(--accent-strong)}

.hero-title,
.section-title,
.message-title,
.form-title,
.auth-title{
  margin:0;
  line-height:1.02;
  letter-spacing:-.03em;
}
.hero-title{font-size:clamp(2.35rem, 6vw, 4.8rem);max-width:12ch}
.section-title{font-size:clamp(1.5rem, 3vw, 2.25rem)}
.message-title,.form-title,.auth-title{font-size:clamp(1.5rem, 3vw, 2rem)}

.hero-copy,
.section-copy,
.message-copy,
.auth-copy{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.7;
  font-size:1rem;
}
.hero-actions,
.inline-actions,
.message-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}

.stat-row,
.metrics-grid,
.feature-grid,
.content-grid,
.quick-grid{
  display:grid;
  gap:14px;
}
.stat-row{grid-template-columns:repeat(3, minmax(0, 1fr));margin-top:22px}
.metrics-grid{grid-template-columns:repeat(3, minmax(0, 1fr));margin-top:18px}
.feature-grid{grid-template-columns:repeat(3, minmax(0, 1fr));margin-top:18px}
.content-grid{grid-template-columns:minmax(0, 1.4fr) minmax(300px, .8fr);margin-top:18px;align-items:start}
.quick-grid{grid-template-columns:repeat(2, minmax(0, 1fr));margin-top:18px}

.metric-card,
.info-card,
.status-card,
.feature-card,
.timeline-card{padding:18px}
.metric-card strong,
.status-card strong{display:block;font-size:1.65rem;letter-spacing:-.03em;margin-bottom:8px}
.metric-card span,
.info-card p,
.status-card p,
.feature-card p,
.timeline-card p{margin:0;color:var(--muted);line-height:1.6}

.status-list,
.feature-list,
.tiny-list,
.timeline-list{display:grid;gap:12px;margin-top:16px}
.status-chip,
.signal-chip,
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.05);
  font-size:.82rem;
  font-weight:600;
}
.status-chip--online,.badge--success{color:#a7f3d0;border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.12)}
.status-chip--protected,.badge--accent{color:#c7f2ff}
.status-chip--manual,.badge--warning{color:#fde68a;border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.12)}
.badge--danger{color:#fecaca;border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.12)}

.section-block{margin-top:26px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.section-head p{max-width:760px}

.stack{display:grid;gap:18px}
.muted{color:var(--muted)}
.kpi-label{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

.info-list{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.info-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.info-list li:last-child{border-bottom:0;padding-bottom:0}
.info-index{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--accent-soft);
  color:#b8eaff;
  font-size:.78rem;
  font-weight:700;
}
html[data-theme="light"] .info-index{color:var(--accent-strong)}

.page-intro{display:grid;gap:18px;margin-top:18px}
.message-card--compact,.auth-card--compact{max-width:620px;margin:32px auto 0}
.text-link{color:#8bd7ff}
.text-link:hover{color:#d7f5ff}

.site-footer{padding:0 16px 28px}
.site-footer__inner{
  width:min(1180px, 100%);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-top:1px solid var(--line);
  color:var(--muted);
}
.site-footer__inner strong{display:block;color:var(--text);margin-bottom:6px}
.site-footer__meta{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}

.notice,
.alert{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.alert--error{border-color:rgba(239,68,68,.32);background:rgba(239,68,68,.10);color:#fee2e2}
.alert--success{border-color:rgba(34,197,94,.32);background:rgba(34,197,94,.10);color:#dcfce7}
.alert--info{border-color:var(--line-strong)}

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 1080px){
  .hero,
  .content-grid{grid-template-columns:1fr}
  .feature-grid,
  .metrics-grid,
  .stat-row{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

@media (max-width: 760px){
  .site-header{padding:14px 12px 0}
  .site-header__inner{padding:14px;flex-wrap:wrap}
  .site-nav{order:3;width:100%;justify-content:flex-start}
  .theme-toggle{margin-left:auto}
  .page-shell{width:min(100% - 24px, 1180px);padding:18px 0 44px}
  .hero-panel,
  .content-card,
  .message-card,
  .auth-card{padding:20px}
  .hero-title{max-width:none}
  .feature-grid,
  .metrics-grid,
  .stat-row,
  .quick-grid{grid-template-columns:1fr}
  .site-footer__inner{flex-direction:column}
}
