/* ===================================================================
   Kairo — Landing Page Styles
   Version: 1.0.0
   Zero external dependencies. System font stack. Dark mode.
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --bg-card-hover: #222236;
  --bg-phone: #0d0d14;

  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #606078;

  --accent: #d63031;
  --accent-light: #ff7675;
  --accent-glow: rgba(214, 48, 49, 0.25);
  --accent-gradient: linear-gradient(135deg, #d63031, #ff7675);

  --success: #00cec9;
  --success-soft: rgba(0, 206, 201, 0.15);
  --warning: #fdcb6e;
  --warning-soft: rgba(253, 203, 110, 0.15);
  --danger: #ff6b6b;

  --border: #2a2a3e;
  --border-light: #3a3a52;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: white;
  font-weight: 800;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: white;
}

/* --- Hero Section --- */
.hero {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--accent-primary);
  font-style: italic;
  font-weight: 500;
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(214, 48, 49, 0.05);
}

/* --- How It Works (3 Steps) --- */
.steps {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-glow);
  border: 1px solid rgba(214, 48, 49, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-3xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-lg);
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-tag {
  display: inline-block;
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--success-soft);
  color: var(--success);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* --- Phone Mockups Section --- */
.screens {
  padding: var(--space-4xl) 0;
}

.screens-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.screens-header .section-title {
  margin-bottom: var(--space-md);
}

.screens-header .section-description {
  margin-left: auto;
  margin-right: auto;
}

.phones-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  align-items: flex-start;
}

/* --- Phone Frame (Pure CSS) --- */
.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 300px;
}

.phone-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone {
  width: 280px;
  height: 580px;
  background: var(--bg-phone);
  border-radius: 36px;
  border: 3px solid var(--border-light);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(214, 48, 49, 0.08);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--bg-primary);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: var(--space-md) var(--space-md) var(--space-sm);
  height: calc(100% - 28px - 52px);
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Phone screen internal elements */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.screen-app-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.screen-pill {
  padding: 2px 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(214, 48, 49, 0.3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
}

.screen-pill--success {
  background: var(--success-soft);
  border-color: rgba(0, 206, 201, 0.3);
  color: var(--success);
}

.screen-pill--warning {
  background: var(--warning-soft);
  border-color: rgba(253, 203, 110, 0.3);
  color: var(--warning);
}

.screen-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.screen-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

.screen-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.screen-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.screen-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-card-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-light);
}

.screen-btn-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.screen-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: default;
}

.screen-btn--primary {
  background: var(--accent-gradient);
  color: white;
}

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

.screen-btn--danger {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--danger);
}

.screen-btn--success {
  background: var(--success-soft);
  border: 1px solid rgba(0, 206, 201, 0.3);
  color: var(--success);
}

/* Checklist items */
.check-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.check-item:last-child {
  border-bottom: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.check-box--checked {
  background: var(--success);
  border-color: var(--success);
  position: relative;
}

.check-box--checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: white;
  font-weight: 800;
}

/* KPI row */
.kpi-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.kpi-item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
}

.kpi-value {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--accent-light);
}

.kpi-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Phone bottom nav */
.phone-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 0 var(--space-sm);
}

.phone-nav-item {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.phone-nav-item--active {
  color: var(--accent-light);
  font-weight: 700;
}

.phone-nav-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 1px;
}

/* Nutrition targets row */
.nutrition-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.nutrition-item {
  flex: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-xs);
}

.nutrition-value {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
}

.nutrition-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Contrast Section --- */
.contrast {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.contrast-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 700px;
  margin: 0 auto;
}

.contrast-text {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.contrast-text em {
  color: var(--accent-light);
  font-style: normal;
  font-weight: 600;
}

/* --- Waitlist Section --- */
.waitlist {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}

.waitlist-content {
  position: relative;
  z-index: 1;
}

.waitlist-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.waitlist-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--accent);
}

.waitlist-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.waitlist-submit {
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.waitlist-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.waitlist-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.waitlist-success {
  display: none;
  padding: var(--space-md);
  background: var(--success-soft);
  border: 1px solid rgba(0, 206, 201, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 600;
  margin-top: var(--space-md);
}

.waitlist-success.show {
  display: block;
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-md);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .phones-row {
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .phones-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
  }

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

  .waitlist-submit {
    width: 100%;
  }

  .contrast-card {
    padding: var(--space-xl);
  }

  .contrast-text {
    font-size: var(--text-lg);
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .phone {
    width: 260px;
    height: 540px;
  }
}
