@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --violet: #4a21ef;
  --mint: #79efbd;
  --green: #18d26e;
  --indigo: #0d0b33;
  --carbon: #1d1d1d;
  --lavender: #f7f6ff;
  --white: #ffffff;
  --gray: #666666;

  --grad-signal: linear-gradient(154.24deg, #bfffe4 11.19%, #4a21ef 62.38%);
  --grad-indigo: linear-gradient(124.15deg, #0d0b33 0%, #4b3ed3 218.07%);
  --grad-cta: linear-gradient(135deg, #79efbd 0%, #4a21ef 100%);

  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-nav: 12px;
  --radius-card: 24px;
  --radius-pill: 100px;

  --page-max: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }
body {
  font-family: var(--font-body);
  background: var(--indigo);
  color: var(--white);
  font-size: 16px;
  line-height: 1.57;
  overflow-x: hidden;
}
body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0.5px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  padding: 6px 16px;
  border: 1px solid rgba(121, 239, 189, 0.4);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.muted { color: rgba(255, 255, 255, 0.72); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
}
#preloader img { width: 64px; height: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: var(--grad-cta);
  color: var(--indigo);
  box-shadow: 0 8px 30px rgba(121, 239, 189, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(74, 33, 239, 0.4); color: var(--mint); }
.btn-ghost {
  background: transparent;
  color: var(--mint);
  border: 2px solid var(--mint);
}
.btn-ghost:hover { background: rgba(121, 239, 189, 0.12); transform: translateY(-3px); }

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.btn-levitate { animation: levitate 3s ease-in-out infinite; }
.btn-levitate:hover { animation-play-state: paused; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.header.scrolled {
  background: rgba(13, 11, 51, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(121, 239, 189, 0.12);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--mint);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--mint); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mint);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  /* max-width: 85vw; */
  height: 100vh;
  background: var(--grad-indigo);
  z-index: 999;
  padding: calc(var(--header-h) + 24px) 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 1px solid rgba(121, 239, 189, 0.15);
}
#mobile-menu.opened {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
#mobile-menu .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: var(--grad-indigo);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.webp') center/cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 42%, rgba(74, 33, 239, 0.35), transparent 55%);
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.hero-title span { color: var(--mint); }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 470px;
  filter: drop-shadow(0 30px 60px rgba(74, 33, 239, 0.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Generic section ---------- */
.section { padding: 96px 0; position: relative; }
.section-dark { background: var(--indigo); }
.section-violet { background: var(--violet); }
.section-grad { background: var(--grad-indigo); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  animation: float 7s ease-in-out infinite;
}
.split-text .section-title { margin-bottom: 22px; }
.split-text p { color: rgba(255, 255, 255, 0.78); margin-bottom: 16px; }

/* feature list with checkmarks */
.feature-list { margin: 26px 0 30px; display: grid; gap: 14px; }
.feature-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-cta);
}
.feature-list li::after {
  content: '';
  position: absolute;
  left: 6px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: rotate(-45deg);
}

.section-violet .split-text p,
.section-violet .muted { color: rgba(255, 255, 255, 0.85); }

/* ---------- Center head + cards ---------- */
.section-head-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px;
}
.section-head-center .section-title { margin-bottom: 18px; }
.section-head-center p { color: rgba(255, 255, 255, 0.78); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(121, 239, 189, 0.16);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(121, 239, 189, 0.5);
  background: rgba(74, 33, 239, 0.12);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--indigo); fill: none; stroke-width: 2; }
.card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.card p { color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.55; }

.center-cta { text-align: center; margin-top: 50px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 110px 0;
  background: var(--grad-signal);
  overflow: hidden;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta .section-title { color: var(--white); margin-bottom: 18px; }
.final-cta p {
  color: rgba(13, 11, 51, 0.82);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 34px;
  font-weight: 500;
}
.final-cta .btn-primary {
  background: var(--indigo);
  color: var(--mint);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 72px 0 32px;
  background: var(--indigo);
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/footer-bg.webp') center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}
.footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 440px;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-content: start;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a:hover { color: var(--mint); }

/* ---------- Legal pages ---------- */
.legal-page {
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: var(--grad-indigo);
  min-height: 80vh;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 239, 189, 0.15);
  border-radius: var(--radius-card);
  padding: 48px 44px;
}
.legal-content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  margin-bottom: 28px;
  color: var(--mint);
}
.legal-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  margin: 32px 0 14px;
}
.legal-content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  margin: 26px 0 12px;
  color: var(--mint);
}
.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}
.legal-content ul { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--mint); text-decoration: underline; }
.legal-content strong { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 46px; }
  .section-title { font-size: 38px; }
  .split { gap: 40px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger-btn { display: flex; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 320px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 460px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-title { font-size: 42px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 34px; }
  .section-title { font-size: 30px; }
  .legal-content { padding: 30px 22px; }
  .legal-content h1 { font-size: 30px; }
  .btn { padding: 13px 24px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
