:root {
  --bg-deep: #0f0b18;
  --bg-mid: #1a1428;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #ebe6f5;
  --text-muted: #a89fc4;
  --purple: #9b7bff;
  --purple-dim: #7c5cff;
  --green: #3dd6a0;
  --green-dim: #2ab87f;
  --shadow: 0 24px 80px rgba(60, 40, 120, 0.35);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --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);
  font-size: 1.0625rem;
  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, 160, 0.2), 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(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  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;
}

main {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
}

.wrap {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 4vw;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  max-width: var(--max);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #0f0b18 !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  margin-top: 4px;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 4vw;
    right: 4vw;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .glass-panel,
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
  }

  .primary-nav ul {
    display: flex;
  }
}

.site-footer {
  padding: 3rem 4vw 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin-inline: auto  ;
}

.footer-grid .glass-panel {
  padding: 1.25rem;
  box-shadow: none;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #0f0b18;
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #0f0b18;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.hero {
  position: relative;
  padding: 2rem 0 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--green);
  border: 1px solid rgba(61, 214, 160, 0.35);
  margin-bottom: 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.5rem;
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-visual img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.shape-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.shape-float--purple {
  width: 120px;
  height: 120px;
  background: var(--purple);
  top: -20px;
  right: -10px;
}

.shape-float--green {
  width: 90px;
  height: 90px;
  background: var(--green);
  bottom: 10px;
  left: -15px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.section {
  padding: 3rem 0;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
}

.card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--purple);
}

.quote-block {
  padding: 1.75rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--green);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

.page-hero {
  padding: 2rem 0;
  text-align: center;
}

.page-hero .glass-panel {
  padding: 2.5rem 2rem;
  max-width: 720px;
  margin-inline: auto;
}

.page-hero img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 68ch;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--glass-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

th {
  background: rgba(124, 92, 255, 0.15);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

input,
select,
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: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--purple-dim);
  outline-offset: 2px;
}

.field-error {
  color: #ff8a9b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.form-status--success {
  background: rgba(61, 214, 160, 0.15);
  border: 1px solid var(--green);
}

.form-status--error {
  background: rgba(255, 100, 120, 0.12);
  border: 1px solid #ff6b7a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.25rem;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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;
}

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--glass-border);
  margin-left: 0.5rem;
}

.timeline li {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--green));
}

.pricing-table .glass-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.inline-error {
  color: #ff8a9b;
  padding: 0.75rem;
  border: 1px solid #ff6b7a;
  border-radius: var(--radius);
  margin: 0.5rem 0;
}
