@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

/* ---------- Design tokens ---------- */

:root {
  --bg-base: #0c0c10;
  --bg-surface: #141418;
  --bg-raised: rgba(255, 255, 255, 0.035);
  --bg-hover: rgba(255, 255, 255, 0.055);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.09);
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0be;
  --text-muted: #6b6b7b;
  --accent: #7c6aff;
  --accent-light: #a78bfa;
  --accent-text: #c4b5fd;
  --accent-glow: rgba(124, 106, 255, 0.15);
  --accent-glow-strong: rgba(124, 106, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Parallax background ---------- */

.parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.parallax-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124, 106, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(167, 139, 250, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(99, 88, 212, 0.06) 0%, transparent 70%);
  animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 1.5%) scale(1.02); }
  100% { transform: translate(1.5%, -1%) scale(1.01); }
}

.parallax-grid {
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(124, 106, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 106, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes hex-float {
  0%, 100% { transform: translateY(0); }
  33%      { transform: translateY(-18px); }
  66%      { transform: translateY(12px); }
}

.hex-shape svg {
  animation: hex-float var(--dur, 25s) ease-in-out var(--delay, 0s) infinite;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(12, 12, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
}

.nav-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand span em {
  font-style: normal;
  color: var(--accent-text);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-raised);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-login:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* ---------- Layout ---------- */

.page-content {
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent-text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c6aff, #6358d4);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(124, 106, 255, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(124, 106, 255, 0.45);
}

.btn-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Features ---------- */

.features {
  padding: 4rem 1.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.features-heading h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.features-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(124, 106, 255, 0.2);
  box-shadow: 0 0 30px rgba(124, 106, 255, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent-text);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-light);
}

/* ---------- Responsive ---------- */

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

  .nav {
    padding: 0.85rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
