:root {
  --bg-deep: #0f0b18;
  --bg-mid: #1a1428;
  --text: #ebe6f5;
  --text-muted: #a89bc4;
  --accent-purple: #7c5cff;
  --accent-green: #3dd6a5;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 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-body);
  font-size: 1.05rem;
  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(--accent-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #5eecc0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.35rem;
  height: 2px;
  background: var(--accent-green);
  box-shadow: 0 5px 0 var(--accent-purple), 0 10px 0 var(--accent-green);
}

.nav-toggle-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.primary-nav {
  display: none;
}

.primary-nav.is-open {
  display: block;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(var(--header-h) + 0.5rem);
  padding: 1rem;
  background: rgba(15, 11, 24, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent-green);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-purple), #5a3fd4);
  border-radius: 999px;
  padding: 0.55rem 1rem !important;
  text-align: center;
  color: #fff !important;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
  }
}

.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 48% 42% 58% 52%;
  filter: blur(1px);
  animation: float 14s ease-in-out infinite;
}

.shape--1 {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -60px;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.4), transparent);
}

.shape--2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: -40px;
  background: linear-gradient(200deg, rgba(61, 214, 165, 0.35), transparent);
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(4deg);
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #6348e8);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  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, 255, 0.25), rgba(61, 214, 165, 0.15));
  pointer-events: none;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 52ch;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.link-arrow {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: none;
}

.quote-strip {
  padding: 2rem;
  border-left: 3px solid var(--accent-purple);
}

.quote-strip cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.split-panel {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.stat-list strong {
  display: block;
  color: var(--accent-green);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.site-footer {
  position: relative;
  margin-top: 3rem;
  padding: 3rem 1.25rem 2rem;
  background: var(--bg-mid);
  border-top: 1px solid var(--glass-border);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-purple), transparent);
  opacity: 0.6;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.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-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin: 0;
}

.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 60ch;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--glass-border);
  text-align: left;
}

th {
  background: rgba(124, 92, 255, 0.15);
}

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.input-invalid {
  border-color: #e86a6a !important;
}

.field-error {
  color: #f0a0a0;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.form-status--success {
  background: rgba(61, 214, 165, 0.15);
  border: 1px solid rgba(61, 214, 165, 0.4);
}

.form-status--error {
  background: rgba(232, 106, 106, 0.12);
  border: 1px solid rgba(232, 106, 106, 0.35);
}

.form-status[hidden] {
  display: none;
}

.inline-error {
  background: rgba(232, 106, 106, 0.15);
  border: 1px solid rgba(232, 106, 106, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0.5rem 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  z-index: 200;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-card {
  display: grid;
  gap: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .blog-card {
    grid-template-columns: 200px 1fr;
  }
}

.blog-card img {
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem 1.5rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  max-height: 360px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step {
  padding: 1.5rem;
  position: relative;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-purple);
  opacity: 0.7;
  margin: 0 0 0.5rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-block {
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.pricing-block h3 {
  margin-top: 0;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent-green);
  margin: 0.5rem 0 1rem;
}

.review-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.review-card blockquote {
  margin: 0;
  font-style: italic;
}

.team-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 280px;
}

.legal-page .prose {
  max-width: 72ch;
}
