:root {
  --bg-deep: #0f0e14;
  --bg-mid: #1a1824;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e8e6f0;
  --text-muted: #a8a4b8;
  --purple: #9b7ed9;
  --purple-dim: #7c5cbf;
  --green: #5ec9a0;
  --green-dim: #3d9b7a;
  --accent-gradient: linear-gradient(135deg, var(--purple-dim) 0%, var(--green-dim) 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --max-width: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 92, 191, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(61, 155, 122, 0.2), transparent 45%),
    var(--bg-deep);
  z-index: -2;
  pointer-events: none;
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.shape-blob--1 {
  width: 320px;
  height: 320px;
  background: var(--purple-dim);
  top: 10%;
  right: 5%;
}

.shape-blob--2 {
  width: 280px;
  height: 280px;
  background: var(--green-dim);
  bottom: 15%;
  left: 8%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
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; }

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--accent-gradient) !important;
  color: #fff !important;
  font-weight: 500;
}

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.footer-grid .glass-panel {
  padding: 1.25rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-tag {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.4rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.35);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  color: var(--green);
  border-color: var(--green-dim);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero--split {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.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;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 92, 191, 0.35), rgba(61, 155, 122, 0.25));
  pointer-events: none;
}

.section {
  margin-bottom: 3.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.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;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.text-link {
  font-weight: 500;
}

.page-hero {
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0.75rem auto 0;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 2rem;
}

.legal-prose {
  max-width: 75ch;
}

.legal-prose h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid var(--glass-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.form-panel {
  padding: 1.75rem;
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #f5a8a8;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #c96b6b;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 10px;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(61, 155, 122, 0.2);
  border: 1px solid var(--green-dim);
}

.form-status--error {
  display: block;
  background: rgba(201, 107, 107, 0.15);
  border: 1px solid #c96b6b;
}

.script-error {
  background: rgba(201, 107, 107, 0.2);
  border: 1px solid #c96b6b;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.quote-block {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-table-wrap {
  overflow-x: auto;
}

.case-study {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-study h3 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(var(--header-h) + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .glass-panel,
  .header-inner {
    position: relative;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
  }

  .site-header {
    position: relative;
  }
}

@media (min-width: 901px) {
  .primary-nav {
    display: block !important;
  }
}
