:root {
  --bg: #f2f8ff;
  --surface: #ffffff;
  --surface-soft: #e8f2ff;
  --border: #c6ddff;
  --text: #132642;
  --muted: #4b6a92;
  --accent: #2e8cff;
  --accent-strong: #1769cc;
  --hero-gradient: linear-gradient(145deg, #ffffff 0%, #dceeff 100%);
}

body.dark-theme {
  --bg: #090909;
  --surface: #111111;
  --surface-soft: #191919;
  --border: #2b2b2b;
  --text: #ffc800;
  --muted: #f4d86f;
  --accent: #ffc800;
  --accent-strong: #e8b600;
  --hero-gradient: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border);
}

.topbar {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  min-width: 9.75rem;
  height: 2.625rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.logo {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-content {
  padding: 1.5rem 0 3rem;
  max-width: 720px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.9rem 0 0.8rem;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #001321;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary,
.btn-theme {
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover,
.btn-theme:hover {
  background: var(--surface-soft);
}

.section {
  padding: 3rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
