:root {
  --bg-deep: #12101c;
  --bg-mid: #1a1528;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #ece8f5;
  --text-muted: #a89fc4;
  --purple: #9b7bff;
  --purple-dim: #7c5cff;
  --green: #3dd6a5;
  --green-dim: #2bb88a;
  --accent-gradient: linear-gradient(135deg, var(--purple-dim) 0%, var(--green) 100%);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max-width: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 92, 255, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(61, 214, 165, 0.22), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(124, 92, 255, 0.15), transparent);
}

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 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

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;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  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;
}

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

.brand:hover {
  color: var(--text);
}

.brand-mark {
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 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 0.9rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--bg-deep) !important;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.92;
  color: var(--bg-deep) !important;
}

main {
  padding: 0 1rem 4rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding: 2rem 0;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

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

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

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-deep);
}

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

.hero-home {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
  min-height: calc(100vh - var(--header-h) - 2rem);
}

.hero-home .hero-copy {
  animation: fade-up 0.8s ease both;
}

.hero-visual {
  position: relative;
  animation: fade-up 0.8s 0.15s ease both;
}

.hero-visual img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.shape-float {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 30% 70% 60% 40% / 40% 50% 50% 60%;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.5), rgba(61, 214, 165, 0.35));
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.shape-float--one {
  top: -20px;
  right: -10px;
}

.shape-float--two {
  bottom: 10%;
  left: -30px;
  animation-delay: -3s;
  width: 80px;
  height: 80px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(155, 123, 255, 0.35);
  transform: translateY(-3px);
}

.card img {
  border-radius: 12px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

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

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

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-block {
  padding: 2rem;
  border-left: 3px solid var(--green);
}

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

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

.page-hero-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 2.5rem;
}

.page-hero-wide img {
  border-radius: var(--radius);
  aspect-ratio: 3/2;
  object-fit: cover;
}

.prose {
  max-width: 42rem;
}

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

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

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

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

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

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 32rem;
}

.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.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--purple-dim);
  outline-offset: 2px;
}

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

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

.form-status--success {
  background: rgba(61, 214, 165, 0.15);
  border: 1px solid var(--green-dim);
}

.form-status--error {
  background: rgba(255, 100, 120, 0.12);
  border: 1px solid #ff6b7a;
}

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

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  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-heading {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  animation: fade-up 0.5s ease;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.cookie-banner[hidden] {
  display: none !important;
}

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

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

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.error-page {
  text-align: center;
  padding: 5rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.script-inline-error {
  color: #ff8a9b;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ff6b7a;
  border-radius: 8px;
  background: rgba(255, 100, 120, 0.08);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}

.price-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green);
}

@media (max-width: 860px) {
  .hero-home,
  .page-hero-wide {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle-bars {
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
