/* ============================================================
   Secured Internet — monochrome theme (day / night)
   ============================================================ */

:root {
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Dark (night) — default ---- */
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #121214;
  --surface-2: #18181b;
  --border: #26262b;
  --border-strong: #34343a;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #6b6b73;
  --accent: #ffffff;
  --on-accent: #0a0a0b;
  --ok: #d4d4d8;
  --grid: rgba(255, 255, 255, 0.04);
  --glow: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}

/* ---- Light (day) ---- */
[data-theme="light"] {
  --bg: #f7f7f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #0a0a0b;
  --text-dim: #52525b;
  --text-faint: #a1a1aa;
  --accent: #0a0a0b;
  --on-accent: #ffffff;
  --ok: #18181b;
  --grid: rgba(0, 0, 0, 0.04);
  --glow: rgba(0, 0, 0, 0.05);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---- Background decor ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; top: -25%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; z-index: -1;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { opacity: 0.9; transform: translateY(-2px); }
.btn--ghost { color: var(--text-dim); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--outline { border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text);
}
.logo__text { font-size: 15px; letter-spacing: 0.12em; }
.logo__dim { color: var(--text-faint); }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-switch__btn:hover { border-color: var(--border-strong); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 168px; list-style: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px;
  box-shadow: var(--shadow);
}
.lang-switch__item {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; font-family: var(--font-sans); font-size: 13px;
  color: var(--text-dim); background: none; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.lang-switch__item:hover { background: var(--surface-2); color: var(--text); }
.lang-switch__item.is-active { color: var(--text); font-weight: 600; background: var(--surface-2); }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--text); transition: 0.25s; }

/* ---- Hero ---- */
.hero { padding: 96px 0 72px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.accent {
  background: linear-gradient(180deg, var(--text), var(--text-faint));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { max-width: 620px; color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.18rem); margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  width: 100%; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 18px; }
.stat__num { font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; transition: opacity 0.35s var(--ease); }
.stat__num.is-flash { opacity: 0.5; }
.stat__label { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section__head p { color: var(--text-dim); }

/* ---- Grid / cards ---- */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--border-strong); border-radius: 12px; margin-bottom: 18px; color: var(--text);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---- Network ---- */
.network { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.network__regions {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.region__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.region__val { font-family: var(--font-mono); color: var(--text-dim); }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text);
  border-radius: 999px; animation: grow 1.2s var(--ease) forwards; }
@keyframes grow { to { width: var(--w); } }

.network__panel { display: flex; }
.terminal {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.terminal__bar em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.terminal__body { padding: 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; color: var(--text-dim); overflow-x: auto; }
.terminal__body .ok { color: var(--text); }
.terminal__body .warn { color: var(--text-faint); }
.terminal__bw { transition: opacity 0.35s var(--ease); }
.terminal__bw.is-flash { opacity: 0.45; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}
.step__num { font-family: var(--font-mono); font-size: 1.4rem; color: var(--text-faint); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---- Club ---- */
.section--club { background: var(--bg-2); border-top: 1px solid var(--border); }
.club { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; }
.club__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.club__text p { color: var(--text-dim); margin-bottom: 22px; }
.club__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.club__list li { position: relative; padding-left: 26px; color: var(--text-dim); }
.club__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

.invite {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.invite h3 { font-size: 1.25rem; margin-bottom: 6px; }
.invite__hint { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 22px; }
.invite label { display: block; margin-bottom: 16px; }
.invite label span { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.invite label em { font-style: normal; color: var(--text-faint); }
.invite input {
  width: 100%; padding: 12px 14px; font-family: var(--font-sans); font-size: 14px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color 0.2s;
}
.invite input:focus { outline: none; border-color: var(--text); }
.invite__note { margin-top: 14px; font-size: 0.9rem; color: var(--text); text-align: center; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; max-width: 280px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 9px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); padding: 22px 24px; font-size: 13px; color: var(--text-faint);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: blink 2s infinite; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 760px;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__actions .btn--ghost, .header__actions .btn--solid { display: none; }
  .burger { display: flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .network, .club { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px; margin: 0;
  }
}
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { width: 100%; }
}
