:root {
  --bg-dark: #05060f;
  --bg-light: #0f111f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --primary: #7f5bff;
  --primary-soft: rgba(127, 91, 255, 0.12);
  --accent: #4ef0c3;
  --text-main: #f6f7fb;
  --text-muted: rgba(246, 247, 251, 0.74);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1120px;
  --font-heading: "Space Grotesk", "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-body: "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #05060f 0%, #0b0d18 55%, #141632 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
button:hover {
  opacity: 0.9;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 15, 0.68);
  backdrop-filter: blur(2px);
  z-index: 100;
}

.container {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 12px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px -18px rgba(127, 91, 255, 0.6);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-light {
  background: #fff;
  color: #0b0d18;
  box-shadow: 0 16px 30px -18px rgba(255, 255, 255, 0.6);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 15, 0.74);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(2) {
  width: 18px;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 91, 255, 0.5);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  display: block;
  height: 38px;
  width: auto;
}

.logo svg {
  height: 38px;
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.hero {
  padding: 128px 0 96px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(127, 91, 255, 0.35), transparent 55%),
    radial-gradient(circle at bottom left, rgba(78, 240, 195, 0.2), transparent 60%);
  z-index: -1;
  animation: heroGlow 18s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate3d(-20px, 16px, 0) scale(1.06);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 50px -40px rgba(0, 0, 0, 0.9);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-metric {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.card-metric .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-metric .value {
  font-size: 1.3rem;
  font-weight: 700;
}

.trend {
  font-size: 1rem;
  color: var(--text-muted);
}

.trend.up {
  color: var(--accent);
}

.card-footer {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-hero {
  padding-top: 112px;
  padding-bottom: 72px;
}

.page-hero .hero-grid {
  align-items: flex-start;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .lead {
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-container {
  display: grid;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 55px -45px rgba(5, 6, 15, 0.8);
}

.legal-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-card ul {
  list-style: disc;
}

.legal-card ol {
  list-style: decimal;
}

.legal-card li {
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-card strong {
  color: #ffffff;
}

.legal-note {
  text-align: center;
  background: rgba(127, 91, 255, 0.12);
  border: 1px solid rgba(127, 91, 255, 0.25);
  padding: 24px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-note a {
  color: #ffffff;
  font-weight: 600;
}

.legal-summary {
  gap: 16px;
}

.legal-summary-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.legal-summary-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-summary-list strong {
  color: #ffffff;
}

.legal-summary-list a {
  color: var(--accent);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(127, 91, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-content: center;
  font-weight: 600;
  margin-left: -10px;
}

.avatar:first-child {
  margin-left: 0;
}

.grid,
.work-grid,
.pricing-grid,
.testimonial-grid {
  display: grid;
  gap: 24px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.work-card,
.pricing-card,
.cta-card,
.contact-form,
.hero-card,
.timeline .step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}

.reveal-on-scroll,
.reveal-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card ul,
.pricing-card ul {
  list-style: none;
  margin-top: 16px;
  color: var(--text-muted);
}

.service-card li,
.pricing-card li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card li::before,
.pricing-card li::before {
  content: "✔";
  color: var(--accent);
  font-size: 0.85rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 8px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 91, 255, 0.5);
  box-shadow: 0 24px 45px -36px rgba(127, 91, 255, 0.9);
}

.team-image {
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  display: block;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.team-contact {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.team-contact a {
  color: var(--text-muted);
}

.team-contact a:hover {
  color: #fff;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "➔";
  color: var(--accent);
  margin-top: 2px;
}

.process .timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.timeline .step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.work-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card .tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(127, 91, 255, 0.26);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.work-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent);
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

blockquote {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-muted);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: -4px;
  font-size: 4rem;
  color: rgba(127, 91, 255, 0.18);
}

blockquote footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(246, 247, 251, 0.6);
  font-size: 0.9rem;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 18px;
}

.pricing-card .price {
  font-size: 2.1rem;
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.pricing-card.featured {
  border-color: rgba(127, 91, 255, 0.6);
  box-shadow: 0 20px 50px -35px rgba(127, 91, 255, 0.8);
}

.pricing-card .badge {
  position: absolute;
  top: 24px;
  right: 24px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(140deg, rgba(127, 91, 255, 0.5), rgba(78, 240, 195, 0.25));
  background-size: 180% 180%;
  animation: pulseGradient 14s ease-in-out infinite alternate;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.contact-copy p,
.contact-copy a {
  color: var(--text-muted);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 15, 0.65);
  color: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(127, 91, 255, 0.5);
}

.site-footer {
  margin-top: 120px;
  padding: 72px 0 40px;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.95) 0%, rgba(5, 6, 15, 0.86) 100%);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top p {
  color: var(--text-muted);
  max-width: 520px;
}

.footer-top h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.footer-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-top-actions .btn,
.footer-top-actions .btn-light,
.footer-top-actions .btn-outline {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-top-actions .btn-sm-inline {
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(180px, 1fr));
  gap: 36px;
  padding: 48px 0;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 18px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(127, 91, 255, 0.18);
  border: 1px solid rgba(127, 91, 255, 0.4);
  font-size: 0.78rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column h4 {
  font-size: 1rem;
  color: #fff;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #fff;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-newsletter .newsletter-form {
  margin-top: 8px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 15, 0.6);
  color: #fff;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-left {
  display: grid;
  gap: 6px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-links span {
  color: rgba(246, 247, 251, 0.25);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.footer-bottom .social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 120;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    left: 0;
    display: grid;
    gap: 16px;
    padding: 22px;
    background: rgba(5, 6, 15, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 110;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 1.05rem;
    color: #fff;
  }

  .site-nav .btn,
  .site-nav .btn-outline,
  .site-nav .btn-light {
    width: 100%;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }

  .footer-top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding: 40px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 96px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-card,
  .service-card,
  .work-card,
  .pricing-card,
  .cta-card,
  .contact-form {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline,
  .btn-light {
    width: 100%;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-info {
    padding: 24px;
  }
}
