:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-strong: #151515;
  --text: #f3f3f3;
  --muted: #b1b1b1;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff4d4f;
  --accent-2: #ffb347;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 77, 79, 0.2), transparent 32%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 45%, #080808 100%);
  color: var(--text);
}

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

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.topbar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a.active {
  background: linear-gradient(135deg, var(--accent), #ff7a59);
  color: #ffffff;
}

.hero,
.grid-section,
.timeline,
.alternatives,
.manifesto {
  margin-bottom: 28px;
}

.hero {
  padding: 96px 32px 80px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(180deg, rgba(255, 77, 79, 0.1), rgba(255, 77, 79, 0.02)),
    rgba(10, 10, 10, 0.8);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-mark {
  display: block;
  width: min(180px, 36vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 28px rgba(255, 77, 79, 0.22));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy {
  width: min(780px, 100%);
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.7;
  color: #dddddd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #ff7a59);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button.large {
  margin-top: 26px;
}

.hero-note {
  width: min(860px, 100%);
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 179, 71, 0.2);
  border-radius: 16px;
  background: rgba(255, 179, 71, 0.08);
  color: #ffd892;
  line-height: 1.6;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.card-grid,
.alt-grid,
.timeline-items,
.two-column {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel,
.alt-card,
.timeline-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.card h3,
.panel h2,
.alt-card h3 {
  margin-bottom: 12px;
}

.card p,
.panel p,
.panel li,
.alt-card p,
.timeline-item p,
.manifesto p {
  color: var(--muted);
  line-height: 1.75;
}

.quote-block {
  margin: 28px 0;
  padding: 28px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 77, 79, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 10px;
}

.timeline-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(255, 77, 79, 0.15);
  color: #ffaea8;
  font-weight: 800;
}

.alt-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.alt-card {
  background:
    linear-gradient(180deg, rgba(255, 179, 71, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(14, 14, 14, 0.9);
}

.manifesto {
  padding: 36px 28px;
  border: 1px solid rgba(255, 77, 79, 0.18);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(180deg, rgba(255, 77, 79, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(16, 16, 16, 0.96);
}

.manifesto h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.manifesto p + p {
  margin-top: 14px;
}

.form-lead {
  margin-top: 18px;
  color: #f0f0f0;
  font-weight: 600;
  line-height: 1.7;
}

.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.community-note {
  margin-top: 18px;
  color: #f0f0f0;
  line-height: 1.75;
}

.qr-panel {
  width: 100%;
}

.qr-panel summary {
  list-style: none;
  cursor: pointer;
}

.qr-panel summary::-webkit-details-marker {
  display: none;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.qr-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.qr-card h3 {
  margin: 14px 0 8px;
}

.qr-card p {
  color: var(--muted);
  line-height: 1.65;
}

.qr-code {
  display: block;
  width: min(220px, 100%);
  margin: 0 auto;
  border-radius: 14px;
  background: #ffffff;
}

.form-embed {
  margin-top: 26px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

[dir="rtl"] .quote-block {
  border-left: 0;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .list {
  padding-left: 0;
  padding-right: 18px;
}

@media (max-width: 920px) {
  .card-grid,
  .two-column,
  .timeline-items,
  .alt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 56px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .hero {
    padding: 72px 20px 56px;
  }

  .hero-mark {
    width: min(148px, 42vw);
    margin-bottom: 18px;
  }

  .card-grid,
  .two-column,
  .timeline-items,
  .alt-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .panel,
  .alt-card,
  .timeline-item,
  .manifesto {
    padding: 20px;
  }
}
