:root {
  --bg-deep: #0f0c18;
  --bg-mid: #16122a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #ece8f5;
  --text-muted: #a89fc4;
  --accent-purple: #9b7bff;
  --accent-green: #4ee4a8;
  --accent-mix: linear-gradient(135deg, #7c5cff 0%, #3ecf8e 100%);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(62, 207, 142, 0.18), transparent 50%),
    var(--bg-deep);
}

body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 30%;
  z-index: -1;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(145deg, rgba(155, 123, 255, 0.15), rgba(78, 228, 168, 0.08));
  filter: blur(2px);
  animation: float-shape 18s ease-in-out infinite alternate;
}

@keyframes float-shape {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-40px, 30px) rotate(8deg); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-purple);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.glass-panel {
  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);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
}

.header-inner {
  max-width: var(--max);
  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.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  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);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-mix);
  color: #0f0c18 !important;
  font-weight: 600;
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: #0f0c18 !important;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0;
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .hero-home {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-home .hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin: 0 0 1rem;
  line-height: 1.12;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.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;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-mix);
  color: #0f0c18;
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #0f0c18;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--accent-purple);
  color: var(--text);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  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), transparent 45%, rgba(62, 207, 142, 0.2));
  pointer-events: none;
}

.section {
  margin-bottom: 3.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.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 ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.split-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .split-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.quote-block {
  padding: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-purple);
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.footer-heading {
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.footer-address {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem;
  animation: slide-up 0.4s ease;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner.hidden {
  display: none;
}

.form-panel {
  padding: 1.75rem;
  max-width: 640px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.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(--accent-purple);
  outline-offset: 1px;
}

.field-error {
  color: #ff8a9b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-status.success {
  background: rgba(78, 228, 168, 0.15);
  border: 1px solid rgba(78, 228, 168, 0.4);
}

.form-status.error {
  background: rgba(255, 120, 140, 0.12);
  border: 1px solid rgba(255, 120, 140, 0.35);
}

.script-error {
  color: #ff8a9b;
  padding: 0.75rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 120, 140, 0.35);
  border-radius: 10px;
  font-size: 0.9rem;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-cover {
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin: 0;
  background: var(--accent-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-steps li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-mix);
  color: #0f0c18;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}
