:root {
  --bg-deep: #0f0e14;
  --bg-mid: #1a1824;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #a78bfa;
  --purple-dim: #7c6bb8;
  --green: #6ee7b7;
  --green-dim: #34d399;
  --text: #e8e6f0;
  --text-muted: #a8a4b8;
  --accent-gradient: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(110, 231, 183, 0.25));
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
}

*,
*::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 20% -10%, rgba(167, 139, 250, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(110, 231, 183, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(124, 107, 184, 0.12), 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);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: var(--header-h);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 92vw);
}

/* Glass panels */
.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);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 14, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  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:hover {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent-gradient);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--green);
}

.nav-error,
.footer-script-error,
.inline-script-error {
  color: #fca5a5;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15, 14, 20, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  width: min(1120px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.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;
  margin: 0;
}

.footer-heading {
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-contact p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-legal {
  width: min(1120px, 92vw);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dim);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), #5b4d8a);
  color: #fff;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Hero home */
.hero-home {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-home .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

.shape-blob--1 {
  width: 200px;
  height: 200px;
  background: rgba(167, 139, 250, 0.4);
  top: 10%;
  left: 10%;
}

.shape-blob--2 {
  width: 160px;
  height: 160px;
  background: rgba(110, 231, 183, 0.35);
  bottom: 20%;
  right: 15%;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  animation: fadeUp 0.8s ease-out;
}

.hero-card img {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 800px) {
  .hero-home .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-title {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 183, 0.35);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
}

/* Page hero */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero .lead {
  margin-inline: auto;
}

/* Prose */
.prose {
  padding: 2rem 0 4rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.prose h2 {
  margin-top: 2.5rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--green);
}

/* Forms */
.form-panel {
  padding: 2rem;
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(167, 139, 250, 0.5);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #fca5a5;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-success {
  padding: 1rem;
  background: rgba(110, 231, 183, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.4);
  border-radius: 10px;
  color: var(--green);
}

.form-fail {
  padding: 1rem;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 10px;
  color: #fca5a5;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-block p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

/* Testimonials */
.quote-grid {
  display: grid;
  gap: 1.5rem;
}

.quote-card {
  padding: 1.75rem;
}

.quote-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-muted);
}

.story-panel {
  padding: 2rem;
  margin-top: 2rem;
}

/* Pricing table */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.rate-table th {
  color: var(--purple);
  font-weight: 600;
}

.rate-table td {
  color: var(--text-muted);
}

/* Blog */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1rem;
  align-items: center;
}

.blog-item img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.blog-item a.title-link {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.blog-item a.title-link:hover {
  color: var(--purple);
}

@media (max-width: 600px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 92vw);
  padding: 1.25rem 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.5s ease-out;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner[hidden] {
  display: none !important;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--purple);
  margin: 0;
}

/* Process timeline */
.timeline {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  position: relative;
}

.timeline li {
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  margin-bottom: 1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.6);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem + 4px);
  top: 2.5rem;
  bottom: -1rem;
  width: 2px;
  background: var(--glass-border);
}

/* Cookies table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 2rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--glass-border);
  text-align: left;
  color: var(--text-muted);
}

.data-table th {
  background: rgba(167, 139, 250, 0.12);
  color: var(--text);
}
