* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #060609;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.085);
  --text: #f7f4ff;
  --muted: #9b98a8;
  --dim: #6f6b7d;
  --accent: #9b5cff;
  --accent-soft: rgba(155, 92, 255, 0.12);
  --accent-line: rgba(155, 92, 255, 0.32);
  --accent-muted: #bda2ee;
  --good: #80e6ae;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(155, 92, 255, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #08080c 0%, var(--bg) 46%, #050507 100%);
  background-size: 72px 72px, auto;
  color: var(--text);
  font-family: Lexend, Inter, Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(155, 92, 255, 0.075), transparent 34%);
  content: "";
  pointer-events: none;
}

.page-silhouette {
  position: fixed;
  z-index: -1;
  top: 96px;
  right: max(-70px, calc((100vw - 1220px) / 2 - 120px));
  width: min(44vw, 520px);
  opacity: 0.085;
  pointer-events: none;
}

.page-silhouette img {
  width: 100%;
  filter: saturate(1.4) drop-shadow(0 0 44px rgba(155, 92, 255, 0.36));
  transform: rotate(-10deg);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(6, 6, 9, 0.72);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  background: rgba(6, 6, 9, 0.9);
}

.navbar {
  display: flex;
  width: min(1220px, 100%);
  min-height: 70px;
  margin: auto;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(155, 92, 255, 0.46));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links .nav-cta {
  border: 0;
  color: var(--accent-muted);
  background: transparent;
}

.menu-toggle {
  display: none;
}

section {
  position: relative;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 92px 28px;
  scroll-margin-top: 72px;
}

.hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-top: 126px;
}

.hero-content {
  max-width: 760px;
}

.badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  align-items: center;
  gap: 9px;
  color: var(--accent-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(155, 92, 255, 0.7);
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(68px, 10vw, 132px);
  letter-spacing: 0;
  line-height: 0.95;
  font-weight: 700;
}

.gradient {
  color: var(--text);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.buttons {
  display: flex;
  margin-top: 32px;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: #8f54ef;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #9b5cff;
  box-shadow: none;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.btn-secondary:hover {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.06);
}

.section-title {
  max-width: 560px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin-bottom: 9px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  font-weight: 700;
}

.section-title p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.stats,
.product-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.stat,
.showcase-box,
.product-card,
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.card,
.product-card,
.pricing-card {
  min-height: 240px;
  padding: 22px;
}

.card:hover,
.product-card:hover,
.pricing-card:hover,
.showcase-box:hover {
  border-color: rgba(155, 92, 255, 0.26);
  background: rgba(255, 255, 255, 0.048);
}

.icon-wrap,
.product-icon {
  display: flex;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(155, 92, 255, 0.2);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: #d3bdff;
  background: rgba(155, 92, 255, 0.075);
  font-size: 20px;
}

.card h3,
.product-card h3,
.pricing-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p,
.product-card p,
.pricing-card p,
.stat p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.stat {
  padding: 22px;
}

.stat h3 {
  margin-bottom: 8px;
  color: white;
  font-size: 34px;
  line-height: 1;
}

.product-card,
.pricing-card {
  display: flex;
  flex-direction: column;
}

.product-card.featured,
.pricing-card.popular {
  border-color: rgba(155, 92, 255, 0.3);
  background: var(--panel);
}

.product-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  color: #d6c1ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.product-link:hover {
  color: white;
}

.popular-badge {
  width: fit-content;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.price {
  display: flex;
  margin: 16px 0 10px;
  align-items: flex-end;
  gap: 8px;
}

.price strong {
  font-size: 38px;
  line-height: 1;
}

.price span {
  padding-bottom: 5px;
  color: var(--dim);
  font-size: 12px;
}

.pricing-list {
  display: grid;
  margin: 18px 0 22px;
  gap: 10px;
  list-style: none;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-list i {
  color: #c8a9ff;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin-top: 18px;
  color: var(--dim);
  font-size: 12px;
}

.pricing-note a {
  color: #d1b8ff;
}

.showcase {
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: 0.85fr 1.15fr;
}

.showcase .buttons {
  margin-top: 22px;
}

.showcase-box {
  padding: 16px;
}

.terminal {
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #d7c0ff;
  background: rgba(0, 0, 0, 0.28);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 2;
}

.terminal .ok {
  color: var(--good);
}

.footer {
  position: relative;
  width: min(1220px, 100%);
  margin: 50px auto 0;
  padding: 50px 28px 34px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  margin-bottom: 40px;
  justify-content: space-between;
  gap: 46px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand h2 {
  margin-bottom: 12px;
  font-size: 36px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 58px;
  flex-wrap: wrap;
}

.footer-column h4 {
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 12px;
}

.footer-glow {
  display: none;
}

@media (max-width: 1080px) {
  .feature-grid,
  .product-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: white;
    transition: 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    visibility: hidden;
    top: 76px;
    right: 24px;
    left: 24px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    opacity: 0;
    background: rgba(8, 8, 12, 0.98);
    transform: translateY(-8px);
    transition: 0.2s ease;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .feature-grid,
  .stats,
  .product-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .buttons,
  .btn {
    width: 100%;
  }

  .page-silhouette {
    top: 110px;
    right: -120px;
    width: 420px;
    opacity: 0.06;
  }
}

@media (max-width: 560px) {
  .navbar,
  section,
  .footer {
    padding-inline: 16px;
  }

  .hero {
    min-height: 92vh;
  }

  .card,
  .product-card,
  .pricing-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
