:root {
  --bg-deep: #0f0e14;
  --bg-mid: #16141f;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #9b7fd4;
  --purple-dim: #7c5cbf;
  --green: #5ec9a0;
  --green-dim: #3d9b7a;
  --text: #e8e6f0;
  --text-muted: #a8a4b8;
  --danger: #e87a7a;
  --success: #5ec9a0;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.4, 0, 0.2, 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;
  position: relative;
  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, 191, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(61, 155, 122, 0.28), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #12101a 100%);
  pointer-events: none;
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
  animation: float 18s var(--ease) infinite alternate;
  pointer-events: none;
}

.shape-blob--1 {
  width: 420px;
  height: 420px;
  background: var(--purple-dim);
  top: -120px;
  right: -80px;
}

.shape-blob--2 {
  width: 320px;
  height: 320px;
  background: var(--green-dim);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.08); }
}

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);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(15, 14, 20, 0.72);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--glass);
  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: 1px;
  transition: transform 0.25s var(--ease);
}

.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;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

.nav-error {
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: rgba(232, 122, 122, 0.15);
  color: var(--danger);
  font-size: 0.9rem;
  text-align: center;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

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, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text);
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

@media (min-width: 900px) {
  .hero-home {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 52vh;
  }
}

.hero-home__copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--green);
  margin: 0 0 1rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  animation: fadeUp 0.8s var(--ease) both;
}

.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, 191, 0.25), rgba(61, 155, 122, 0.2));
  pointer-events: none;
}

@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;
}

.section {
  margin-top: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 127, 212, 0.35);
}

.service-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card__img img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card__body p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial-strip {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonial-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-card {
  padding: 1.5rem 1.75rem;
  font-size: 0.98rem;
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-card--muted {
  border-color: rgba(61, 155, 122, 0.2);
}

.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.process-steps li {
  counter-increment: step;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  position: relative;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff;
}

.page-hero {
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-hero--left {
  text-align: left;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose-wide {
  max-width: none;
}

.split-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.detail-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 420px;
}

.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.meta-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.meta-list span:first-child {
  color: var(--text-muted);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-block {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.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;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--purple-dim);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-status--success {
  background: rgba(94, 201, 160, 0.15);
  color: var(--success);
}

.form-status--error {
  background: rgba(232, 122, 122, 0.15);
  color: var(--danger);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.blog-list article {
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .blog-list article {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.blog-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header {
  margin-bottom: 2rem;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 380px;
}

.story-block {
  padding: 2rem;
  margin-bottom: 2rem;
}

.team-card {
  padding: 1.5rem;
  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);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  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;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal {
  max-width: 1180px;
  margin: 0 auto;
  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.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.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: fadeUp 0.5s var(--ease) both;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 h1 {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-doc {
  padding: 2rem;
}

.legal-doc h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  padding: 0.65rem;
  border: 1px solid var(--glass-border);
  text-align: left;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    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;
  }

  .site-header {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
