:root {
  --bg-deep: #0f0d18;
  --bg-mid: #1a1628;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e8e4ff;
  --text-muted: #a89fc9;
  --accent-purple: #9b8cff;
  --accent-green: #3dca8f;
  --accent-glow: rgba(124, 108, 240, 0.35);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 108, 240, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(61, 202, 143, 0.15), transparent),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 60%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-green);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.inline-error,
.field-error {
  color: #ff8a9a;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.glass-panel,
.glass-bar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-bar {
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-top: 6px;
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
  color: var(--bg-deep) !important;
  font-weight: 600;
}

.nav-cta:hover { filter: brightness(1.08); color: var(--bg-deep) !important; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; flex-direction: column; align-items: center; }
  .primary-nav {
    position: absolute;
    top: calc(var(--header-h) + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    padding: 1rem;
    background: rgba(26, 22, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .site-header { position: relative; }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .page-hero--split { grid-template-columns: 1fr; }
}

.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-glow), rgba(61, 202, 143, 0.2));
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.hero-orb--left { top: -40px; left: -80px; }
.hero-orb--right { bottom: 0; right: -60px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #6b5ce0);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  margin: 3.5rem 0;
}

.section-title {
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.card:hover { transform: translateY(-4px); }

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card h3 { margin: 0 0 0.5rem; }

.card p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

.quote-block {
  padding: 2rem;
  margin: 2rem 0;
  border-left: 3px solid var(--accent-green);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-tag { color: var(--text-muted); font-size: 0.95rem; }

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li { margin-bottom: 0.35rem; }

.footer-copy { color: var(--text-muted); text-align: center; }

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  z-index: 200;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner p { font-size: 0.92rem; margin-bottom: 1rem; }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.input-invalid { border-color: #ff8a9a !important; }

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.form-status--success {
  background: rgba(61, 202, 143, 0.15);
  border: 1px solid rgba(61, 202, 143, 0.4);
}

.form-status--error {
  background: rgba(255, 138, 154, 0.12);
  border: 1px solid rgba(255, 138, 154, 0.35);
}

.form-status[hidden] { display: none; }

.prose { max-width: 68ch; }

.prose h2 { margin-top: 2rem; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-table th { color: var(--text-muted); font-weight: 500; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.timeline strong { color: var(--accent-purple); }

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-cover {
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--glass-border);
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 { font-size: 4rem; margin: 0; opacity: 0.5; }

.legal-page h1 { margin-bottom: 0.5rem; }

.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; }

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--glass-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.story-card {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.team-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
  color: var(--bg-deep);
  font-weight: 700;
}
