:root {
  --bg-color: #0b0b0f;
  --bg-secondary: #121318;
  --panel-bg: rgba(18, 19, 24, 0.75);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(6, 182, 212, 0.35);
  --glass-bg: rgba(18, 19, 24, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent-teal: #06B6D4;
  --accent-teal-bright: #22d3ee;
  --accent-teal-glow: rgba(6, 182, 212, 0.45);
  --accent-teal-subtle: rgba(6, 182, 212, 0.12);
  --accent-purple: #8b5cf6;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background Atmospheric Glow */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.18) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(11, 11, 15, 0) 75%);
  filter: blur(80px);
  opacity: 0.85;
}

.ambient-glow-2 {
  position: absolute;
  top: 45%;
  left: 15%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(11, 11, 15, 0) 70%);
  filter: blur(100px);
  opacity: 0.6;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
}

/* Page Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Floating Pill Navigation */
.nav-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.25rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  padding: 0.65rem 1.25rem;
  background: rgba(18, 19, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

nav.nav:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.brand-icon-gem {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-teal), #38BDF8);
  border-radius: 5px;
  box-shadow: 0 0 12px var(--accent-teal-glow);
}

.brand-icon-gem svg {
  width: 12px;
  height: 12px;
  color: #0b0b0f;
}

.brand-logo span {
  color: var(--accent-teal);
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-signin-btn {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.nav-signin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem;
}

/* Hero Section */
section.hero {
  max-width: 860px;
  width: 100%;
  margin: 3.5rem auto 4.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: var(--accent-teal-subtle);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-teal-bright);
  margin-bottom: 1.75rem;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.eyebrow-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.35rem;
}

/* Explicit rule: Roman typography, no italic fonts */
.hero-headline em {
  font-style: normal;
  color: var(--accent-teal-bright);
  background: linear-gradient(135deg, #22d3ee 0%, #06B6D4 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0b0b0f;
  background: linear-gradient(135deg, #22d3ee 0%, #06B6D4 100%);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 28px var(--accent-teal-glow), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.7), 0 8px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
}

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

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

.hero-helper {
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Features Section */
section.features {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto 5rem;
}

.features-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

.feature-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(6, 182, 212, 0.1);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-subtle);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal-bright);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 16px var(--accent-teal-glow);
}

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

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Footer */
footer.footer {
  width: 100%;
  border-top: 1px solid var(--panel-border);
  padding: 2.25rem 1.25rem;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  section.hero {
    margin: 2.5rem auto 3.5rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 1rem 0.85rem 0.5rem;
  }

  nav.nav {
    padding: 0.55rem 1rem;
  }

  .brand-logo {
    font-size: 1rem;
  }

  .nav-signin-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
  }

  section.hero {
    margin: 2rem auto 3rem;
  }

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

  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  footer.footer {
    padding: 1.75rem 1rem;
  }
}

@media (max-width: 360px) {
  .hero-headline {
    font-size: 2rem;
  }
  
  .cta-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }
}
