:root {
  --bg-deep: #0a0612;
  --bg-mid: #120a1f;
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.35);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.28);
  --text: #e8e4f0;
  --text-muted: #a89bb8;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, var(--purple-soft), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 80%, var(--green-soft), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 50%, #0d1520 100%);
  z-index: -2;
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: float 18s var(--ease) infinite alternate;
}

.shape-blob--1 {
  width: 420px;
  height: 420px;
  background: #6d28d9;
  top: -120px;
  right: -80px;
}

.shape-blob--2 {
  width: 360px;
  height: 360px;
  background: #059669;
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

@keyframes float {
  to {
    transform: translate(30px, 40px) 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: #6ee7b7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

h3 {
  font-size: 1.35rem;
}

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

.header-inner {
  max-width: 1180px;
  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-weight: 600;
  font-size: 1.15rem;
}

.logo-mark {
  border-radius: 8px;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

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

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

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

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.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;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  box-shadow: 0 8px 32px var(--purple-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45);
}

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

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3.5rem;
}

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

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--glass-border);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: linear-gradient(135deg, var(--purple-soft), var(--green-soft));
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}

.section {
  margin: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
  max-width: 52ch;
}

.section-header p {
  color: var(--text-muted);
}

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

.card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}

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

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--purple);
  line-height: 1;
}

.quote-block {
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial {
  padding: 1.5rem;
}

.testimonial p {
  font-size: 0.98rem;
}

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

.page-hero {
  padding: 2.5rem 0;
  text-align: left;
  max-width: 720px;
}

.page-hero--wide {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.page-hero img {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.legal-page main {
  max-width: 780px;
}

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

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

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

.legal-page th {
  background: var(--glass);
}

.form-panel {
  padding: 2rem;
  max-width: 640px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

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

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

.form-success {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  margin-top: 1rem;
}

.form-fail {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

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

.pricing-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-note {
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-body {
  max-width: 68ch;
}

.article-body .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-list article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.blog-list h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.blog-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-list h2 a:hover {
  color: var(--green);
}

.process-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--glass-border);
}

.process-timeline li {
  margin-bottom: 2rem;
  list-style: none;
  position: relative;
}

.process-timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--green));
}

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

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--green), transparent);
  opacity: 0.6;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-family: var(--font);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 28ch;
  margin-top: 0.75rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  z-index: 200;
  animation: slideUp 0.5s var(--ease);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

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

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

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 h1 {
  font-size: 5rem;
  margin: 0;
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inline-script-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

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

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 1.25rem;
    right: 1.25rem;
    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(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
  }

  .site-header {
    position: relative;
  }

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

  .primary-nav {
    width: calc(100% - 2.5rem);
  }
}

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