:root {
  --bg-deep: #1a1428;
  --bg-mid: #2a2240;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --purple: #9b7ede;
  --purple-dim: #6b4fa8;
  --green: #7dd3a8;
  --green-dim: #4a9e78;
  --text: #f0eef5;
  --text-muted: #b8b0c8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(155, 126, 222, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(125, 211, 168, 0.28), transparent 50%),
    linear-gradient(165deg, #1a1428 0%, #2d2548 45%, #1e1830 100%);
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  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: #a8e8c8;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

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

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.glass {
  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 0;
  background: rgba(26, 20, 40, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.nav-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  background: var(--glass);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff;
  box-shadow: 0 4px 20px rgba(125, 211, 168, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 28px rgba(155, 126, 222, 0.35);
}

.btn--ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

main {
  padding: 2rem 0 3rem;
}

.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-hero--compact {
  padding: 1.5rem 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--green);
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  margin-bottom: 1.5rem;
}

.hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 79, 168, 0.35), rgba(74, 158, 120, 0.25));
  pointer-events: none;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(125, 211, 168, 0.15);
  color: var(--green);
  border: 1px solid rgba(125, 211, 168, 0.3);
  margin-bottom: 1rem;
}

.quote {
  padding: 1.75rem;
  font-style: italic;
  position: relative;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  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 input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e88a8a;
}

.field-error {
  color: #f0a0a0;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(125, 211, 168, 0.15);
  border: 1px solid rgba(125, 211, 168, 0.4);
}

.form-status--error {
  background: rgba(232, 138, 138, 0.15);
  border: 1px solid rgba(232, 138, 138, 0.4);
}

.script-error {
  background: rgba(232, 138, 138, 0.2);
  border: 1px solid #e88a8a;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  padding: 1.25rem 1.5rem;
  display: none;
  max-width: 520px;
  margin-inline: auto;
  animation: slideUp 0.4s ease;
}

.cookie-banner.is-visible {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-prose {
  max-width: 52rem;
}

.legal-prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-block {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.pricing-block h3 {
  margin-bottom: 0.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green);
  margin: 0.5rem 0 1rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--glass-border);
  padding-left: 1.5rem;
}

.timeline li {
  margin-bottom: 1.75rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-dim);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--purple);
}
