:root {
  --bg-deep: #0f0a1a;
  --bg-mid: #1a1428;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #9b7bff;
  --purple-dim: #7c5cff;
  --green: #3dd6a5;
  --green-dim: #2ab88a;
  --text: #e8e4f2;
  --text-muted: #a89ec4;
  --error: #ff7b9c;
  --success: #5ee4b8;
  --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;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(61, 214, 165, 0.22), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #12101f 100%);
}

.shape-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.shape--1 {
  width: 320px;
  height: 320px;
  background: var(--purple-dim);
  top: 12%;
  left: -5%;
  animation-delay: 0s;
}

.shape--2 {
  width: 240px;
  height: 240px;
  background: var(--green);
  bottom: 20%;
  right: 8%;
  animation-delay: -6s;
}

.shape--3 {
  width: 180px;
  height: 180px;
  background: #c4a8ff;
  top: 55%;
  left: 40%;
  animation-delay: -12s;
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.98); }
}

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(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

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(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: 1200px;
  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); }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff !important;
}

.nav-cta:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 1rem;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.section {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), #5a3fd4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover { border-color: var(--purple); }

.hero-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

@media (min-width: 768px) {
  .hero-home {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 52vh;
  }
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  animation: fadeUp 0.8s ease-out;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(61, 214, 165, 0.15));
}

.hero-copy {
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.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.5rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.15);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 { margin: 0 0 0.5rem; }

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.quote-block {
  padding: 1.75rem;
  border-left: 3px solid var(--green);
  font-style: italic;
  color: var(--text-muted);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links a,
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  z-index: 200;
  padding: 1.25rem;
  animation: fadeUp 0.4s ease-out;
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  flex: 1;
  min-width: 100px;
}

.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.65rem 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-dim);
  outline-offset: 2px;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: var(--error);
}

.field-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.25rem;
}

.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);
  color: var(--success);
}

.form-status--error {
  background: rgba(255, 123, 156, 0.12);
  border: 1px solid var(--error);
  color: var(--error);
}

.page-hero {
  padding: 2.5rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-hero--with-img {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.page-hero--with-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero--with-img .page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 10, 26, 0.95), transparent);
}

.prose {
  max-width: 72ch;
}

.prose h2 { margin-top: 2rem; }

.legal-content {
  max-width: 75ch;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

th, td {
  border: 1px solid var(--glass-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

th {
  background: rgba(124, 92, 255, 0.15);
}

.timeline {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.75rem;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-table {
  display: grid;
  gap: 1.25rem;
}

.pricing-row {
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .pricing-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.blog-list article {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.blog-list h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.blog-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-list h2 a:hover { color: var(--green); }

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-cover {
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-error,
.footer-error,
.inline-script-error {
  color: var(--error);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.team-card {
  padding: 1.25rem;
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--glass-border);
}

.story-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
