:root {
  --bg: #f8f9ff;
  --surface: #ffffff;
  --surface-2: #e9f0ff;
  --text: #111827;
  --muted: #334155;
  --accent: #7c3aed;
  --accent-2: #2563eb;
  --accent-3: #f97316;
  --border: rgba(23, 26, 43, 0.12);
  --shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
  --page-bg: linear-gradient(180deg, #f9faff 0%, #ecf1ff 100%);
}

:root[data-theme="dark"] {
  --bg: #050914;
  --surface: #0b1323;
  --surface-2: #14233d;
  --text: #f7f8ff;
  --muted: #b9c2dd;
  --accent: #9b6bff;
  --accent-2: #5ca3ff;
  --accent-3: #ff8e3c;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  --page-bg: linear-gradient(180deg, #050914 0%, #0b1323 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 2;
}

.switch-group {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-2);
}

.switch-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 3px 6px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.switch-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

:root[data-theme="dark"] .site-header {
  background: rgba(5, 9, 20, 0.9);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.nav-wrap {
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent-3);
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  order: 1;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.hero {
  padding: 56px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lead,
.card p,
.link-card p,
.contact-list {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
}

.btn.secondary {
  background: var(--surface);
  border-color: rgba(249, 115, 22, 0.35);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 10px;
}

.contact-link,
.contact-static {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.contact-link:hover {
  color: var(--accent-3);
}

.section {
  padding: 32px 0 44px;
}

.alt-section {
  background: rgba(124, 58, 237, 0.04);
}

.section-heading {
  margin-bottom: 18px;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
  transform: translateY(-3px);
}

.page-hero {
  padding: 40px 0 10px;
}

.page-title {
  margin-bottom: 8px;
}

.page-intro {
  color: var(--muted);
  max-width: 720px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--surface-2);
  color: var(--accent-2);
}

.site-footer {
  padding: 18px 0 34px;
  color: var(--muted);
}

body.cookie-locked .site-header,
body.cookie-locked main,
body.cookie-locked .site-footer {
  display: none;
}

body.cookie-locked {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 20, 0.7);
  padding: 20px;
}

.cookie-panel {
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 20px;
}

.cookie-panel p {
  margin: 0 0 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }
}
