:root {
  color-scheme: light dark;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --accent: #5b7cfa;
  --accent-2: #22d3ee;
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --header-bg: rgba(246, 247, 251, 0.85);
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --bg-elevated: #121a2f;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --header-bg: rgba(11, 16, 32, 0.85);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html[data-theme-pref="system"]:not([data-theme="light"]) {
    --bg: #0b1020;
    --bg-elevated: #121a2f;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.18);
    --header-bg: rgba(11, 16, 32, 0.85);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 2rem)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.85rem; }
.muted { color: var(--muted); }
.sr-only, .hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.logo { display: inline-flex; line-height: 0; align-items: center; }
.logo-img {
  display: block;
  height: 74px;
  width: auto;
  object-fit: contain;
  max-width: min(280px, 42vw);
}
.footer-logo .logo-img { height: 40px; max-width: 160px; opacity: 0.98; }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--text); font-weight: 500; text-decoration: none; opacity: 0.85; }
.nav a.is-active, .nav a:hover { opacity: 1; color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch a {
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.45rem;
  border-radius: 999px; color: var(--muted); text-decoration: none;
}
.lang-switch a.is-active { background: var(--bg-elevated); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.theme-form select {
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); border-radius: 999px; padding: 0.35rem 0.6rem; font-size: 0.8rem;
}
.nav-toggle {
  display: none; border: 0; background: transparent; width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text); margin: 7px 6px;
}
.mobile-nav {
  display: none; flex-direction: column; padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 0.5rem 0; color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(91, 124, 250, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(91, 124, 250, 0.45);
}
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }

.header-inner--minimal { justify-content: space-between; }
.hero { padding: 4.5rem 0 3rem; }
.hero-landing {
  min-height: calc(100dvh - 5.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) 0;
  box-sizing: border-box;
}
.hero-landing > .container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; align-items: center;
}
.hero-copy { min-width: 0; max-width: 36rem; }
.hero-landing .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(320px, 40vh);
}
.hero-landing .grid-card { margin-top: 0; width: min(100%, 340px); margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  color: var(--accent); font-weight: 700;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 0.5rem 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-visual { position: relative; min-height: 280px; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-a { width: 180px; height: 180px; background: var(--accent); top: 10%; right: 20%; animation-delay: 0s; }
.orb-b { width: 140px; height: 140px; background: var(--accent-2); bottom: 5%; left: 10%; animation-delay: -3s; }
.grid-card {
  position: relative; margin-top: 3rem; padding: 1.25rem 1.5rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.35rem;
  animation: card-float 6s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 10px) scale(1.05); }
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.section { padding: 3.5rem 0; }
.section-muted { background: rgba(91, 124, 250, 0.06); }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 1.5rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3, .card h2 { margin-top: 0; }
.prose ul { padding-left: 1.1rem; }
.prose h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; line-height: 1.35; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--border); }
.legal-prose { padding-bottom: 3rem; }
.legal-meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.25rem !important; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.legal-table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border); padding: 0.65rem 0.75rem; text-align: left; vertical-align: top;
}
.legal-table th { background: var(--bg-elevated); font-weight: 600; }
.page-hero.legal { padding-bottom: 2rem; }
.advantages {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.advantages li {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.advantages strong { display: block; margin-bottom: 0.35rem; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.process li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.step-num {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700;
  background: rgba(91, 124, 250, 0.15); color: var(--accent);
}
.founder-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
}
.founder-photo {
  border-radius: calc(var(--radius) + 6px);
  object-fit: cover; border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.founder-name { font-size: 1.35rem; font-weight: 700; margin: 0; }
.section-cta { background: linear-gradient(180deg, transparent, rgba(91, 124, 250, 0.08)); }

.page-hero { padding: 3rem 0 1rem; }
.page-hero h1 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-hero-actions { margin-top: 1.5rem; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); text-decoration: none;
}

.lead-form { display: grid; gap: 1rem; margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.85rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font: inherit;
}
.checkbox { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.alert { padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.alert-success { background: rgba(34, 197, 94, 0.12); }
.alert-error { background: rgba(239, 68, 68, 0.12); }

.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 1.5rem; align-items: start;
}
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a, .footer-social a { color: var(--muted); text-decoration: none; }
.footer-logo { margin-bottom: 0.75rem; opacity: 0.95; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-nav.is-open { display: flex; }
  .hero-grid, .two-col, .founder-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-landing .hero-visual { min-height: 240px; }
  .header-actions .btn-sm { display: none; }
}

.breadcrumbs { padding: 0.75rem 0 0; font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; opacity: 0.6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.hub-card {
  display: block; padding: 1.25rem 1.35rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-elevated); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.hub-card h3 { margin: 0 0 0.5rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hub-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.hub-lead { max-width: 62ch; }
.card-teaser .text-link { font-weight: 600; }
.section-cta-inline { margin-top: 1.25rem; }
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 0.75rem; }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.25rem;
  width: min(640px, calc(100% - 1.5rem));
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1rem 1.15rem 1rem 1rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .cookie-banner__panel,
html[data-theme-pref="system"] .cookie-banner__panel {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cookie-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(91, 124, 250, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(91, 124, 250, 0.25);
}
.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}
.cookie-banner__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-banner__desc a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.cookie-banner__desc a:hover { text-decoration: underline; }
.cookie-banner__accept {
  white-space: nowrap;
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .cookie-banner__panel {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .cookie-banner__actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .cookie-banner__accept { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .cookie-banner { transition: none; }
}

/* Admin */
.admin-body { background: #0f172a; color: #e2e8f0; min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-nav { background: #111827; padding: 1rem; border-right: 1px solid #1f2937; }
.admin-nav a { display: block; color: #cbd5e1; text-decoration: none; padding: 0.45rem 0.5rem; border-radius: 8px; }
.admin-nav a:hover { background: #1f2937; }
.admin-main { padding: 1.5rem; }
.admin-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid #1f2937; padding: 0.5rem; text-align: left; vertical-align: top; }
.admin-input, .admin-textarea, .admin-select {
  width: 100%; padding: 0.5rem; border-radius: 8px; border: 1px solid #334155;
  background: #0b1220; color: #e2e8f0;
}
.admin-auth { max-width: 420px; margin: 10vh auto; padding: 1.5rem; background: #111827; border-radius: 12px; border: 1px solid #1f2937; }
