@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1320;
  --panel: rgba(13, 22, 40, 0.85);
  --panel-strong: rgba(7, 12, 22, 0.94);
  --line: rgba(0, 212, 255, 0.16);
  --text-main: #e2e8f0;
  --text-soft: #94a3b8;
  --accent: #00d4ff;
  --accent-strong: #00b0d4;
  --accent-cold: #818cf8;
  --accent-warm: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 960px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #33ddff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); margin-bottom: 14px; }
h3 { font-size: 1.05rem; }

p { margin-bottom: 12px; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 20px; color: var(--text-soft); margin-bottom: 12px; }
li { margin-bottom: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ── Page shell ── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.hero-block {
  position: relative;
  padding: 60px 0 48px;
  background:
    linear-gradient(175deg, rgba(0,212,255,0.08) 0%, transparent 40%),
    linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-block h1 {
  margin-bottom: 14px;
}

.hero-block h1 .glow {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,212,255,0.35);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 20px;
}

/* ── Header / Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0088aa);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.top-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.2s;
  white-space: nowrap;
}

.top-nav a:hover { color: var(--accent); background: rgba(0,212,255,0.08); }
.top-nav a.active { color: var(--accent); background: rgba(0,212,255,0.12); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33ddff, var(--accent));
  box-shadow: 0 6px 24px rgba(0,212,255,0.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.4);
}

.btn-outline:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  color: #fff;
}

/* ── Sections ── */
.main-content {
  flex: 1;
  padding: 28px 0 40px;
}

.section {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel), var(--panel-strong));
}

.section:last-child { margin-bottom: 0; }

/* ── Cards / Grid ── */
.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13,22,40,0.7), rgba(7,12,22,0.5));
}

.card h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.98rem;
}

.card p, .card ul { font-size: 0.92rem; color: var(--text-soft); }

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-soft);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,212,255,0.04); }

/* ── Link grid (internal links) ── */
.link-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.link-grid a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0,212,255,0.04);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.link-grid a:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  transform: translateX(4px);
}

/* ── CTA box ── */
.cta-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(129,140,248,0.06));
  border: 1px solid rgba(0,212,255,0.2);
  text-align: center;
}

.cta-box h3 { margin-bottom: 8px; color: var(--text-main); }
.cta-box p { margin-bottom: 14px; }

/* ── Notices ── */
.notice {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
  color: var(--text-soft);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

.notice.warn {
  border-color: rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.08);
  color: #fde68a;
}

/* ── Content images ── */
.content-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  margin: 18px 0;
  display: block;
}

.img-caption {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: -10px;
  margin-bottom: 16px;
  font-style: italic;
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13,22,40,0.8), rgba(7,12,22,0.6));
  padding: 16px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--accent);
}

.faq-item p {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── Inline links ── */
.inline-link {
  color: var(--accent-cold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--accent); }

/* ── Stats row ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(129,140,248,0.08));
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-badge strong {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ── Footer ── */
.footer {
  padding: 20px 0 36px;
}

.footer-inner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 22px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-top strong { color: var(--text-main); font-size: 0.95rem; }

.footer p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-links a:hover { color: var(--accent); border-color: var(--line); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-block { padding: 40px 0 32px; }
  .section { padding: 16px; }
  .top-nav { gap: 2px; }
  .top-nav a { padding: 4px 7px; font-size: 0.78rem; }
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 8px; }
  .stats-row { gap: 8px; }
  .stat-badge { padding: 8px 12px; font-size: 0.82rem; }
  .footer-top { flex-direction: column; text-align: center; }
  .cta-box { padding: 16px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  .container { padding: 0 12px; }
  .hero-block { padding: 30px 0 24px; }
}
