:root {
  --bg: #0b0a14;
  --bg-alt: #110f1f;
  --surface: #161325;
  --surface-2: #1c1830;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f4f8;
  --text-muted: #b6b2c9;
  --text-dim: #8a86a3;

  --primary: #6d28d9;       /* purple, ~hsl(271,100%,25%) lightened */
  --primary-light: #9d6bff;
  --accent: #14b8b8;        /* teal, ~hsl(180,100%,25%) lightened */
  --accent-light: #4ee3e3;

  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

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

/* Background glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -150px;
}
.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 700px;
  left: -200px;
  opacity: 0.25;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.brand-ai {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(109, 40, 217, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(109, 40, 217, 0.75);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(109, 40, 217, 0.12);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 900px;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 16px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 800px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 0 20px;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.card-text {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.card-cta {
  margin-top: 24px;
  width: 100%;
}

/* Check list */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gradient);
  opacity: 0.9;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Tags */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag-grid-center {
  justify-content: center;
  margin-top: 36px;
}

.tag-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
  color: var(--text);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Community */
.community-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.18), rgba(20, 184, 184, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.community-card .section-kicker,
.community-card .section-title,
.community-card .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.community-card .btn { margin-top: 12px; }

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.pill {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Contact */
.section-contact {
  text-align: center;
}
.section-contact .section-kicker,
.section-contact .section-title,
.section-contact .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-light);
  word-break: break-word;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-text {
  color: var(--text-muted);
  margin: 0;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav.nav-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .community-card { padding: 36px 24px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 60px; }
  .section { padding: 64px 0; }
}
