@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #07090f;
  --bg-alt: #0c101a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --accent: #54f4c4;
  --accent-2: #5ba8ff;
  --accent-glow: rgba(84, 244, 196, 0.4);
  --accent-2-glow: rgba(91, 168, 255, 0.4);
  --text: #f4f5f7;
  --muted: #b4bac7;
  --shadow: 0 30px 80px rgba(3, 7, 18, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
}

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

/* Animated gradient background */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.15;
  }
  33% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.2;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: 0.12;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(84, 244, 196, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(84, 244, 196, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
  50% {
    filter: drop-shadow(0 0 20px var(--accent-glow));
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.03;
  }
  50% {
    opacity: 0.06;
  }
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated mesh gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(84, 244, 196, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(91, 168, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(84, 244, 196, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(91, 168, 255, 0.1) 0%, transparent 40%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
  pointer-events: none;
}

/* Grid/mesh pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(84, 244, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 244, 196, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Floating geometric orbs */
.page::before,
.page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.page::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: floatOrb 20s ease-in-out infinite;
}

.page::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-2-glow) 0%, transparent 70%);
  bottom: 20%;
  right: -5%;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

.page {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 80px;
  position: relative;
}

/* Glassmorphism topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.85) 0%, rgba(7, 9, 15, 0.4) 100%);
  z-index: 10;
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #54f4c4 0%, #5ba8ff 100%);
  color: #0a0f18;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow:
    var(--shadow),
    0 0 30px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: glow 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow:
    var(--shadow),
    0 0 50px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav a:hover {
  color: var(--text);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav a:hover::after {
  width: 100%;
}

/* Enhanced CTA buttons with glow */
.cta,
.ghost {
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #071018;
  box-shadow:
    0 12px 30px rgba(84, 244, 196, 0.35),
    0 0 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(84, 244, 196, 0.45),
    0 0 40px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta:hover::before {
  left: 100%;
}

.ghost {
  border: 1px solid var(--glass-highlight);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}

/* Gradient text for headings */
.hero-content h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgba(84, 244, 196, 0.3));
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  display: inline-block;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 2px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}

/* Glassmorphism stats panel */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced hero card with glassmorphism and float */
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow),
    0 0 60px rgba(84, 244, 196, 0.1),
    inset 0 1px 0 var(--glass-highlight);
  display: grid;
  gap: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent 30%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: none;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 40px 100px rgba(3, 7, 18, 0.5),
    0 0 80px rgba(84, 244, 196, 0.2),
    inset 0 1px 0 var(--glass-highlight);
  border-color: rgba(84, 244, 196, 0.3);
}

.hero-card:hover::before {
  opacity: 0.1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Animated Live pill */
.pill {
  background: rgba(84, 244, 196, 0.2);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
  box-shadow: 0 0 15px var(--accent-glow);
}

.pill::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.card-metric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.card-metric h3 {
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-metric p {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.card-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--text);
}

.panel {
  padding: 60px 0;
}

/* Enhanced alt panel */
.panel.alt {
  background: linear-gradient(180deg, var(--bg-alt), rgba(12, 16, 26, 0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 60px 48px;
  margin: 40px 0;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
}

.panel.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(84, 244, 196, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.panel-header h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-family: "Fraunces", serif;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(84, 244, 196, 0.2));
}

.panel-header p {
  color: var(--muted);
  max-width: 640px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Enhanced panel items with hover lift and glow */
.panel-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  min-height: 150px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.panel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 50%, var(--accent-2-glow));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.panel-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(84, 244, 196, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.panel-item:hover::before {
  opacity: 1;
}

.panel-item:hover::after {
  opacity: 0.15;
}

.panel-item h3 {
  font-size: 18px;
  transition: color 0.3s ease;
}

.panel-item:hover h3 {
  color: var(--accent);
}

.panel-item p {
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

/* Enhanced feature cards */
.feature {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transition: height 0.3s ease;
  border-radius: 0 0 4px 0;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 244, 196, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent-glow);
}

.feature:hover::before {
  height: 100%;
}

.feature h3 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.feature:hover h3 {
  color: var(--accent);
}

.feature p {
  color: var(--muted);
}

/* Enhanced callout with shimmer */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(120deg, rgba(84, 244, 196, 0.12), rgba(91, 168, 255, 0.08));
  border-radius: 20px;
  border: 1px solid rgba(84, 244, 196, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(84, 244, 196, 0.15),
    inset 0 1px 0 var(--glass-highlight);
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.timeline {
  display: grid;
  gap: 18px;
}

/* Enhanced timeline items */
.timeline-item {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item:hover {
  transform: translateX(10px);
  border-color: rgba(84, 244, 196, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-item:hover::before {
  opacity: 1;
}

.timeline-item h3 {
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.timeline-item:hover h3 {
  color: var(--accent);
}

/* Terminal-style code blocks */
.code-block {
  background: linear-gradient(180deg, #0d1117 0%, #0b0f1a 100%);
  border-radius: 18px;
  border: 1px solid rgba(84, 244, 196, 0.2);
  padding: 0;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(84, 244, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.code-block::before {
  content: '';
  display: block;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.code-block::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow:
    20px 0 0 #febc2e,
    40px 0 0 #28c840;
}

.code-block code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #e6f4ff;
  line-height: 1.7;
  display: block;
  padding: 22px;
  overflow-x: auto;
}

/* Syntax highlighting colors */
.code-block .keyword {
  color: var(--accent-2);
}

.code-block .string {
  color: var(--accent);
}

.code-block .comment {
  color: #6a737d;
  font-style: italic;
}

.code-block .function {
  color: #d2a8ff;
}

/* Enhanced footer */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  display: grid;
  gap: 16px;
  color: var(--muted);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.footer strong {
  color: var(--text);
  font-size: 18px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.footer-links a:hover::after {
  width: 100%;
}

.disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

/* Enhanced reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Geometric accent decorations */
.hero::before {
  content: '';
  position: absolute;
  top: 100px;
  right: -100px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(84, 244, 196, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 200px;
  right: -50px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(91, 168, 255, 0.15);
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Additional particle-like decorations */
.panel.alt::after {
  content: '';
  position: absolute;
  top: 50px;
  right: 50px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    -30px 20px 0 2px rgba(91, 168, 255, 0.5),
    -60px -10px 0 1px var(--accent),
    20px 40px 0 3px rgba(91, 168, 255, 0.3),
    -100px 30px 0 2px var(--accent);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection styling */
::selection {
  background: rgba(84, 244, 196, 0.3);
  color: var(--text);
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================
   MOBILE STYLES - Sleek Native App Feel
   ========================================= */

/* Smooth scrolling for all devices */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal overflow on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure body fills viewport with no gaps */
body {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
}

/* =========================================
   TABLET BREAKPOINT (max-width: 900px)
   ========================================= */
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 16px 0 12px;
    gap: 12px;
    border-radius: 0; /* Remove weird bottom radius */
  }

  /* Brand and CTA on same row */
  .brand {
    flex: 1;
  }

  .tag {
    display: none; /* Hide tagline on mobile to save space */
  }

  /* Nav below as simple text links */
  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  /* Simple text links - no bulky pill buttons */
  .nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .panel.alt {
    padding: 40px 24px;
    border-radius: 24px;
    margin: 24px 0;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    padding: 20px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-card {
    border-radius: 20px;
    padding: 24px;
  }

  .feature {
    border-radius: 16px;
  }

  .panel-item {
    border-radius: 16px;
  }

  .timeline-item {
    border-radius: 14px;
  }

  .code-block {
    border-radius: 16px;
  }

  .stats {
    border-radius: 16px;
  }
}

/* =========================================
   MOBILE BREAKPOINT (max-width: 640px)
   ========================================= */
@media (max-width: 640px) {
  /* Page container - consistent horizontal margins */
  .page {
    width: calc(100vw - 32px);
    margin: 0 16px;
    padding-bottom: 40px;
  }

  /* Hero section */
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .eyebrow::before {
    left: -14px;
    width: 8px;
  }

  .lede {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Hero actions - stack on very small screens */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }

  /* Make buttons full-width and touch-friendly on mobile */
  .cta,
  .ghost {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    min-height: 48px;
    font-size: 15px;
    border-radius: 16px;
  }

  /* Stats grid - rounded and properly stacked */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 20px;
    padding: 16px;
    gap: 14px;
  }

  .stat {
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 16px;
  }

  /* Hero card - sleek rounded corners */
  .hero-card {
    animation: none;
    border-radius: 24px;
    padding: 20px;
    margin: 0;
  }

  .card-header {
    font-size: 12px;
  }

  .card-metric {
    gap: 12px;
  }

  .card-metric h3 {
    font-size: 18px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 12px;
  }

  .card-grid strong {
    font-size: 14px;
  }

  /* Panels - smooth rounded edges */
  .panel {
    padding: 40px 0;
  }

  .panel.alt {
    padding: 28px 20px;
    border-radius: 24px;
    margin: 20px 0;
  }

  .panel.alt::after {
    display: none;
  }

  .panel-header {
    margin-bottom: 24px;
  }

  .panel-header h2 {
    font-size: 24px;
  }

  .panel-header p {
    font-size: 14px;
  }

  /* Panel grid - single column on mobile */
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel-item {
    border-radius: 20px;
    padding: 18px;
    min-height: auto;
  }

  .panel-item h3 {
    font-size: 16px;
  }

  .panel-item p {
    font-size: 13px;
  }

  /* Feature grid - single column */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .feature {
    border-radius: 20px;
    padding: 18px;
  }

  .feature h3 {
    font-size: 16px;
  }

  .feature p {
    font-size: 13px;
  }

  /* Callout - rounded and padded */
  .callout {
    border-radius: 20px;
    padding: 18px;
    gap: 14px;
  }

  .callout p {
    font-size: 14px;
  }

  /* Timeline - rounded items */
  .timeline {
    gap: 12px;
  }

  .timeline-item {
    border-radius: 18px;
    padding: 16px;
  }

  .timeline-item h3 {
    font-size: 15px;
  }

  .timeline-item p,
  .timeline-item li {
    font-size: 13px;
  }

  /* Code blocks - horizontal scroll, rounded */
  .code-block {
    border-radius: 18px;
    margin-bottom: 20px;
  }

  .code-block::before {
    height: 36px;
    border-radius: 18px 18px 0 0;
  }

  .code-block::after {
    top: 12px;
    left: 14px;
    width: 10px;
    height: 10px;
    box-shadow:
      16px 0 0 #febc2e,
      32px 0 0 #28c840;
  }

  .code-block code {
    font-size: 12px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* Footer - flush with no gaps */
  .footer {
    margin-top: 40px;
    padding: 24px 0;
    border-radius: 24px 24px 0 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 0;
  }

  .footer::before {
    width: 120px;
  }

  .footer strong {
    font-size: 16px;
  }

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

  .footer-links a {
    font-size: 14px;
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .disclaimer {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px;
  }

  /* Topbar - compact header layout */
  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0 10px;
    gap: 10px;
    border-radius: 0; /* Remove weird bottom radius */
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    width: calc(100% + 32px);
  }

  /* Brand takes available space, CTA stays on right */
  .brand {
    flex: 1;
    gap: 10px;
  }

  .logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }

  .wordmark {
    font-size: 15px;
  }

  .tag {
    display: none; /* Hide tagline to save space */
  }

  /* CTA button - compact */
  .topbar .cta {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
  }

  /* Navigation - horizontal scrolling row below */
  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-top: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  /* Simple text links - no bulky buttons */
  .nav a {
    padding: 6px 0;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav a::after {
    bottom: 0;
  }

  /* Pill badge */
  .pill {
    font-size: 10px;
    padding: 4px 12px 4px 18px;
  }

  .pill::before {
    left: 6px;
    width: 5px;
    height: 5px;
  }

  /* Reduce floating orbs on mobile for performance */
  .page::before {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }

  .page::after {
    width: 250px;
    height: 250px;
    filter: blur(60px);
  }

  /* Disable heavy animations on mobile for performance */
  .hero-card:hover,
  .panel-item:hover,
  .feature:hover,
  .timeline-item:hover {
    transform: none;
  }
}

/* =========================================
   SMALL MOBILE BREAKPOINT (max-width: 380px)
   ========================================= */
@media (max-width: 380px) {
  .page {
    width: calc(100vw - 24px);
    margin: 0 12px;
  }

  .topbar {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% + 24px);
    padding: 10px 12px 8px;
    gap: 8px;
  }

  .logo {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .wordmark {
    font-size: 14px;
  }

  .topbar .cta {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
  }

  .footer {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

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

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

  /* Nav links - smaller gap, still horizontal scroll */
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
    padding: 4px 0;
  }

  .cta,
  .ghost {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* =========================================
   LANDSCAPE MOBILE
   ========================================= */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .panel {
    padding: 30px 0;
  }

  .panel.alt {
    padding: 24px 20px;
  }
}

/* =========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================= */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects that don't work well on touch */
  .hero-card:hover,
  .panel-item:hover,
  .feature:hover,
  .timeline-item:hover,
  .cta:hover,
  .ghost:hover,
  .nav a:hover,
  .logo:hover,
  .stat:hover {
    transform: none;
  }

  /* Ensure good tap targets */
  .nav a,
  .footer-links a,
  .cta,
  .ghost {
    min-height: 44px;
    min-width: 44px;
  }

  /* Active states for touch feedback */
  .cta:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .ghost:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav a:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .panel-item:active,
  .feature:active,
  .timeline-item:active {
    transform: scale(0.99);
    opacity: 0.95;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
