:root {
  --bg: #0a0a0f;
  --bg-section: #11111a;
  --bg-dark: #060609;
  --text: #e8e8ee;
  --text-muted: #a8a8b8;
  --accent: #5b8aff;
  --accent-soft: #3a5fb3;
  --border: #1f1f2e;
  --border-strong: #2d2d44;
  --max-width: 1080px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 20%, rgba(91, 138, 255, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(91, 138, 255, 0.08) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px) saturate(1.3);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.hero-graph .lines line {
  stroke: var(--accent-soft);
  stroke-width: 1;
  opacity: 0.5;
}
.hero-graph .nodes circle {
  fill: var(--accent-soft);
  opacity: 0.6;
}
.hero-graph .nodes circle.active {
  fill: var(--accent);
  opacity: 1;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; r: 4; }
  50% { opacity: 1; r: 7; }
}

nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.logo { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-links a.nav-cta:hover { border-color: var(--accent); }
.nav-links a.nav-pitch,
.nav-links a.nav-repo {
  color: var(--text);
}
.nav-links a.nav-pitch:hover,
.nav-links a.nav-repo:hover {
  color: var(--accent);
}

/* Eyebrow с pill-метой */
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.eyebrow-pill {
  background: rgba(91, 138, 255, 0.12);
  border: 1px solid rgba(91, 138, 255, 0.4);
  border-radius: 100px;
  padding: 4px 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 24px 96px;
  max-width: 880px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-wrap: balance;
}

.subtitle {
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
  text-wrap: pretty;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-encryption {
  /* deprecated — encryption pill moved out of hero */
  display: none;
}

/* Stats eyebrow */
.stats-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 500;
}

/* Trust icons */
.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* Subgroup labels in trust */
.subgroup {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 56px;
  margin-bottom: 18px;
}
.subgroup:first-of-type { margin-top: 32px; }

/* Form label and note */
.form-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}
.form-note a { color: var(--accent); }

/* Join links — связь с презентацией, репо, доками */
.join-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.join-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.join-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.join-link-card .step-num {
  margin-bottom: 0;
}
.join-link-card span:last-child {
  font-size: 15px;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  box-shadow:
    0 0 0 1px rgba(91, 138, 255, 0.4),
    0 8px 24px -8px rgba(91, 138, 255, 0.5);
}
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(91, 138, 255, 0.06);
}

/* STATS BAND */
.stats-band {
  background: var(--bg-dark);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.stats .num {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stats .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* SECTIONS */
.content-section {
  padding: 96px 0;
  position: relative;
}
.content-section.dark { background: var(--bg-dark); }
.content-section + .content-section:not(.dark) { border-top: 1px solid var(--border); }

/* фоновое изображение секции с overlay */
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}
.content-section .container { position: relative; z-index: 1; }
.trust-section .section-bg { opacity: 0.07; filter: hue-rotate(200deg) saturate(0.8); }
.roadmap-section .section-bg { opacity: 0.06; }

/* SPLIT (текст + картинка) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.product-split { grid-template-columns: 1fr 1fr; }
.split-text h2 { margin-bottom: 20px; }
.split-text .hero-eyebrow { margin-bottom: 16px; }
.split-image {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-section);
  aspect-ratio: 4 / 3;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.05);
}
.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 138, 255, 0.08), transparent 60%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.product-split .split-image { order: -1; }
}

.content-section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text);
  margin-bottom: 32px;
  max-width: 680px;
  line-height: 1.5;
  text-wrap: pretty;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 680px;
}

/* HOW STEPS */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step, .feature, .security-item {
  padding: 24px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.15s;
}
.step:hover, .feature:hover, .security-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  display: block;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.step h3, .feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}
.step p, .feature p, .security-item p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* COMPARE TABLE */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg-section);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table tbody td:first-child {
  color: var(--text-muted);
  font-size: 13px;
  width: 28%;
}
.compare-table .ours {
  background: rgba(91, 138, 255, 0.05);
  color: var(--text);
  font-weight: 500;
}
.compare-table tbody tr:last-child td { border-bottom: none; }

/* SECURITY */
.subgroup {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.security-item h4 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* TRUST */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.trust-item {
  padding: 28px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.trust-item:hover { border-color: var(--border-strong); }
.trust-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.trust-item p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}
.trust-meta {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px !important;
  font-style: italic;
}

/* STATS NOTE */
.stats-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq-list {
  margin-top: 32px;
  max-width: 760px;
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-list details[open] { padding-bottom: 24px; }
.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  padding-right: 24px;
}

/* HONESTY */
.honesty-list { list-style: none; margin: 24px 0 32px; }
.honesty-list li {
  padding: 16px 0 16px 22px;
  border-left: 2px solid var(--accent-soft);
  margin-bottom: 14px;
  color: var(--text-muted);
  max-width: 760px;
}
.honesty-list strong { color: var(--text); font-weight: 600; }
.note {
  font-style: italic;
  margin-top: 28px;
  color: var(--text);
  max-width: 680px;
}

/* TIMELINE VERTICAL */
.timeline-vertical {
  margin-top: 48px;
  position: relative;
  padding-left: 28px;
  max-width: 720px;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}
.milestone {
  position: relative;
  padding: 12px 0 28px;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-soft);
}
.milestone.here::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 138, 255, 0.2);
}
.period {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.milestone h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 600;
}
.milestone p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* JOIN FORM */
.join-form {
  margin-top: 32px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row.roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row.roles label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.form-row.roles label:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.form-row.roles input[type="radio"] {
  accent-color: var(--accent);
}
.join-form .btn-primary { align-self: flex-start; }

/* FOOTER */
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-logo { font-weight: 600; margin-bottom: 12px; }
.footer-desc {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.5;
}
.footer-note {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-credits {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
}
.footer-credits a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}
.footer-credits a:hover { color: var(--accent); }

/* MOBILE */
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  nav { padding: 16px 20px; }
  .hero-content { padding: 32px 20px 64px; }
  .content-section { padding: 64px 0; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { gap: 16px; }
  .stats > div { min-width: 120px; }
  .stats .num { font-size: 22px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}
