/* SelfCore VPN — общий стиль, повторяет дизайн-токены веб-приложения app.self-core.com */

:root {
  --bg: #06111f;
  --bg-deep: #03070b;
  --panel: #0d1b2e;
  --panel-2: #071426;
  --panel-3: #13263d;
  --border: rgba(148, 197, 255, 0.16);
  --border-strong: rgba(148, 197, 255, 0.28);
  --text: #eff8ff;
  --muted: #a5b8ca;
  --dim: #64798c;
  --accent: #38bdf8;
  --accent-contrast: #03100a;
  --success: #3ecf8e;
  --radius: 8px;
  --radius-lg: 16px;
  --nav-bg: rgba(7, 12, 17, 0.88);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.46);
  --sheen: rgba(255, 255, 255, 0.055);
  --font-sans: -apple-system, "system-ui", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Фоновое неоновое сияние в духе логотипа */
.glow-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 50% -10%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(500px 380px at 90% 20%, rgba(56, 189, 248, 0.08), transparent 70%),
    var(--bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links .nav-anchor {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.nav-links .nav-anchor:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links .nav-anchor { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

.btn-small { padding: 10px 18px; font-size: 14px; }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.35));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.8);
}

h1.hero-title {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17px;
}

.hero .btn-row { justify-content: center; margin-bottom: 20px; }

.hero-note {
  color: var(--dim);
  font-size: 13px;
}

/* Sections */
.section { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
}

.section-head p { color: var(--muted); margin: 0; }

/* Feature cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, var(--sheen), transparent 40%), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--panel-3);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(180deg, var(--sheen), transparent 60%), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.cta-band h2 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 28px;
}

.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--dim);
  font-size: 14px;
  max-width: 320px;
  margin: 12px 0 0;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Legal documents */
.doc-wrap { padding: 56px 0 80px; }

.doc-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  overflow-wrap: break-word;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--accent); }

.doc-panel h1 {
  font-family: var(--font-mono);
  font-size: clamp(21px, 5vw, 26px);
  margin: 0 0 6px;
}

.doc-date {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 32px;
}

.doc-panel h2 {
  font-size: 18px;
  color: var(--accent);
  margin: 32px 0 12px;
}

.doc-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px;
}

.doc-panel ul {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px;
  padding-left: 22px;
}

.doc-panel li { margin-bottom: 6px; }

.doc-panel strong { color: var(--text); }

@media (max-width: 640px) {
  .doc-panel { padding: 28px 20px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp 0.6s ease both;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
