:root {
  --bg: #0a0a0f;
  --bg-elev: #111118;
  --bg-alt: #0d0d14;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f2f5;
  --text-dim: #a1a1ae;
  --text-soft: #6e6e7a;
  --accent-a: #8b5cf6;
  --accent-b: #3b82f6;
  --accent-c: #22d3ee;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* Background gradient */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(600px 500px at 50% 110%, rgba(34, 211, 238, 0.10), transparent 60%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 210deg, var(--accent-a), var(--accent-b), var(--accent-c), var(--accent-a));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(139, 92, 246, 0.25);
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 3px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

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

@media (max-width: 560px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7.5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b) 45%, var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0f;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-a);
  font-weight: 600;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
}

.section-desc {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.12));
  color: #c4b5fd;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.about-grid .section-label {
  margin-bottom: 14px;
}

.about-grid h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.about-body p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 18px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Contact */
.contact {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

@media (max-width: 560px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dim);
}

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

.footer-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

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

.footer-meta {
  font-size: 12.5px;
  color: var(--text-soft);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Legal pages */
.legal {
  padding: 80px 0 100px;
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  font-weight: 700;
}

.legal .updated {
  color: var(--text-soft);
  font-size: 13.5px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal a {
  color: #c4b5fd;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
}

.legal a:hover {
  border-bottom-color: #c4b5fd;
}

.legal ul {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--text);
}
