:root {
  --bg-deep: #0f0e1a;
  --bg-mid: #1a1830;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #7c5cff;
  --purple-soft: rgba(124, 92, 255, 0.35);
  --green: #3dd6a0;
  --green-soft: rgba(61, 214, 160, 0.3);
  --text: #e8e6f2;
  --text-muted: #a8a4bc;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --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.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--purple-soft), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--green-soft), transparent),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 45%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #5eecc0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.page-wrap {
  position: relative;
  overflow-x: hidden;
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.shape-blob--1 {
  width: 320px;
  height: 320px;
  background: var(--purple);
  top: 10%;
  left: -8%;
}

.shape-blob--2 {
  width: 280px;
  height: 280px;
  background: var(--green);
  bottom: 15%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.05); }
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1120px;
  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.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand:hover { color: var(--text); }

.brand-mark { border-radius: 50%; }

.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);
}

.primary-nav .nav-list {
  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;
}

.primary-nav a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--purple), #5a3fd4);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover { filter: brightness(1.08); }

.nav-error {
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: rgba(220, 80, 80, 0.2);
  color: #ffb4b4;
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 14, 26, 0.95);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.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.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(--text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #5a3fd4);
  color: #fff;
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-home__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-home__visual {
  position: relative;
}

.hero-home__visual img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-home__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);
}

@media (max-width: 768px) {
  .hero-home { grid-template-columns: 1fr; }
}

.section { margin: 3.5rem 0; }

.section-title { margin-bottom: 0.5rem; }

.section-intro {
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.35);
}

.card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card h3 { margin: 0 0 0.5rem; }

.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.card a.stretched {
  font-weight: 500;
  text-decoration: none;
}

.quote-block {
  padding: 2rem;
  margin: 2rem 0;
  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);
}

.page-hero {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.page-hero--with-img {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
}

.page-hero--with-img img {
  border-radius: var(--radius);
  aspect-ratio: 3/2;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-hero--with-img { grid-template-columns: 1fr; }
}

.prose { max-width: 68ch; }

.prose h2 { margin-top: 2rem; }

.legal-prose h2 { font-size: 1.35rem; margin-top: 2.5rem; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--glass-border);
  text-align: left;
}

.data-table th {
  background: rgba(124, 92, 255, 0.15);
}

.form-panel {
  padding: 2rem;
  max-width: 520px;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.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 textarea { min-height: 140px; resize: vertical; }

.form-error {
  color: #ff9a9a;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-success {
  padding: 1rem;
  background: rgba(61, 214, 160, 0.15);
  border: 1px solid var(--green-soft);
  border-radius: 10px;
  color: var(--green);
}

.form-fail {
  padding: 1rem;
  background: rgba(220, 80, 80, 0.15);
  border-radius: 10px;
  color: #ffb4b4;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.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;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.timeline li::before {
  content: attr(data-step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  font-size: 0.85rem;
}

.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); }

.article-cover {
  border-radius: var(--radius);
  margin-bottom: 2rem;
  aspect-ratio: 21/9;
  object-fit: cover;
  width: 100%;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem;
  background: rgba(26, 24, 48, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 h1 { font-size: 4rem; margin: 0; opacity: 0.5; }

.review-card {
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.stars { color: var(--green); letter-spacing: 2px; }

.case-study {
  padding: 2rem;
  margin: 2rem 0;
}

.case-study h3 { margin-top: 0; }

.include-error {
  padding: 1rem;
  background: rgba(220, 80, 80, 0.2);
  color: #ffb4b4;
  text-align: center;
}
