/* ============================================================
   ALOKIN — SHARED STYLESHEET
   Version: 1.0 | April 2026
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-primary:    #080A10;
  --bg-card:       #111420;
  --bg-card-hover: #161927;
  --bg-elevated:   #0E1018;

  /* Borders */
  --border:        #1A1D2E;
  --border-light:  #252840;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #8A92B0;
  --text-tertiary:  #6B7394;

  /* Brand Colors */
  --lime:   #B1DC2D;
  --cyan:   #50D2F2;
  --purple: #5C3FE4;

  /* Gradient */
  --gradient: linear-gradient(135deg, #B1DC2D, #50D2F2, #5C3FE4);

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --container:       1200px;
  --spacing-section: 112px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   SCREEN-READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  min-height: 48px;
}

.btn-primary {
  background: var(--gradient);
  color: #080A10;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(177, 220, 45, 0.2), 0 4px 12px rgba(80, 210, 242, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(177, 220, 45, 0.3);
}

.btn-outline:hover {
  background: rgba(177, 220, 45, 0.06);
  border-color: rgba(177, 220, 45, 0.5);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 29, 46, 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  display: block;
  height: 32px;
  width: auto;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Ambient glow — top */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 640px;
  background: radial-gradient(
    ellipse at center,
    rgba(177, 220, 45, 0.07) 0%,
    rgba(80, 210, 242, 0.055) 35%,
    transparent 70%
  );
  pointer-events: none;
}

/* Ambient glow — bottom right */
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    rgba(92, 63, 228, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(177, 220, 45, 0.08);
  border: 1px solid rgba(177, 220, 45, 0.22);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 52px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Fade to bg at bottom of hero */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: var(--spacing-section) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background 0.2s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

/* Rotate icon colors across the 6 cards */
.feature-card:nth-child(1) .feature-icon { background: rgba(177, 220, 45, 0.09);  border: 1px solid rgba(177, 220, 45, 0.18);  color: var(--lime);   }
.feature-card:nth-child(2) .feature-icon { background: rgba(80, 210, 242, 0.09);   border: 1px solid rgba(80, 210, 242, 0.18);  color: var(--cyan);   }
.feature-card:nth-child(3) .feature-icon { background: rgba(92, 63, 228, 0.09);    border: 1px solid rgba(92, 63, 228, 0.18);   color: var(--purple); }
.feature-card:nth-child(4) .feature-icon { background: rgba(80, 210, 242, 0.09);   border: 1px solid rgba(80, 210, 242, 0.18);  color: var(--cyan);   }
.feature-card:nth-child(5) .feature-icon { background: rgba(92, 63, 228, 0.09);    border: 1px solid rgba(92, 63, 228, 0.18);   color: var(--purple); }
.feature-card:nth-child(6) .feature-icon { background: rgba(177, 220, 45, 0.09);   border: 1px solid rgba(177, 220, 45, 0.18);  color: var(--lime);   }

.feature-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-block {
  text-align: center;
  padding: 48px 32px;
  position: relative;
}

.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  padding: var(--spacing-section) 0;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind the box */
.waitlist::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(80, 210, 242, 0.05) 0%,
    rgba(92, 63, 228, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.waitlist-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

/* Gradient top line accent */
.waitlist-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.7;
}

.waitlist-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.waitlist-sub {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.form-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 48px;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: rgba(80, 210, 242, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 210, 242, 0.06);
}

.waitlist-success {
  display: none;
  margin-top: 20px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

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

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

/* footer logo uses nav-logo-img at height: 28px (set inline) */

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

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

/* ============================================================
   INTERIOR PAGE (Privacy, Support)
   ============================================================ */
.page-body {
  padding: 140px 0 var(--spacing-section);
}

.page-header {
  margin-bottom: 56px;
}

.page-header .section-label {
  display: block;
  margin-bottom: 12px;
}

.page-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  max-width: 800px;
}

/* Privacy / Support prose */
.prose h2 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--lime);
}

.prose .last-updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

/* Support contact block */
.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(80, 210, 242, 0.06);
  border: 1px solid rgba(80, 210, 242, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--cyan);
  margin: 24px 0 32px;
  transition: background 0.15s ease;
}

.support-email:hover {
  background: rgba(80, 210, 242, 0.1);
  -webkit-text-fill-color: var(--cyan);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}

.form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea:focus {
  border-color: rgba(80, 210, 242, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 210, 242, 0.06);
}

.form-success {
  display: none;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 80px;
  }

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

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

  .stat-block:not(:last-child)::after {
    display: none;
  }

  .stat-block {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
  }

  .stat-block:last-child {
    border-bottom: none;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-box {
    padding: 48px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .page-card {
    padding: 36px 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
