/* ============================================
   OnePulse Landing Page
   Color tokens from the app's design system
   ============================================ */

:root {
  /* Brand */
  --olive-branch: #5C6B47;
  --olive-branch-dark: #4A5638;
  --sanctuary-blue: #4B5F6D;
  --sacred-gold: #C4A572;
  --clay: #B8A088;

  /* Supporting */
  --moss: #4A5D4F;
  --sage: #8B9B7B;
  --parchment: #F5F0E8;
  --chapel-white: #FAF8F3;

  /* Neutral */
  --midnight: #2C3135;
  --slate: #727B81;
  --stone: #8B8680;
  --pebble: #B5B0A8;
  --linen: #E8E2D5;
  --pearl: #F5F2ED;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
  font-family: var(--font);
  color: var(--midnight);
  background-color: var(--chapel-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ============================================
   Utilities
   ============================================ */

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

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background-color: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linen);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--midnight);
}

.logo-icon {
  display: flex;
  color: var(--olive-branch);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background-color: var(--olive-branch);
  border-radius: 100px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background-color: var(--olive-branch-dark);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--midnight);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-md);
  background-color: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linen);
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  padding: var(--space-sm) 0;
}

.nav-mobile .nav-cta {
  text-align: center;
  justify-content: center;
  margin-top: var(--space-sm);
}

.nav-mobile--open {
  display: flex;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-4xl);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.hero-subtitle {
  margin-top: var(--space-lg);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* Background accent shape */
.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, var(--parchment) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: white;
  background-color: var(--olive-branch);
  box-shadow: 0 2px 8px rgba(92, 107, 71, 0.25);
}

.btn-primary:hover {
  background-color: var(--olive-branch-dark);
  box-shadow: 0 4px 16px rgba(92, 107, 71, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--midnight);
  background-color: transparent;
  border: 1.5px solid var(--linen);
}

.btn-secondary:hover {
  border-color: var(--pebble);
  background-color: var(--pearl);
}

/* ============================================
   Phone Mockup
   ============================================ */

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: var(--midnight);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(44, 49, 53, 0.15),
    0 8px 24px rgba(44, 49, 53, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--midnight);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    var(--chapel-white) 0%,
    var(--parchment) 50%,
    var(--linen) 100%
  );
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: var(--space-4xl) 0;
  background-color: white;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-branch);
  margin-bottom: var(--space-md);
}

.section-label--light {
  color: var(--sacred-gold);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.section-subtitle {
  margin-top: var(--space-md);
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background-color: var(--chapel-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--linen);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 49, 53, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background-color: rgba(92, 107, 71, 0.1);
  color: var(--olive-branch);
  margin-bottom: var(--space-md);
}

.feature-icon--prayer {
  background-color: rgba(180, 84, 80, 0.1);
  color: #B85450;
}

.feature-icon--scripture {
  background-color: rgba(75, 95, 109, 0.1);
  color: var(--sanctuary-blue);
}

.feature-icon--growth {
  background-color: rgba(196, 165, 114, 0.1);
  color: var(--sacred-gold);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--midnight);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ============================================
   Mission
   ============================================ */

.mission {
  padding: var(--space-4xl) 0;
  background-color: var(--midnight);
  color: white;
}

.mission-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.mission-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mission-text {
  margin-top: var(--space-lg);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--pebble);
}

.mission-values {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.mission-value {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sacred-gold);
}

/* ============================================
   Download CTA
   ============================================ */

.download {
  padding: var(--space-4xl) 0;
  background: linear-gradient(
    135deg,
    var(--chapel-white) 0%,
    var(--parchment) 100%
  );
}

.download-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.download-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.download-subtitle {
  margin-top: var(--space-md);
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: var(--midnight);
  color: white;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 49, 53, 0.2);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge-label {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
}

.store-badge-store {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.download-note {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--stone);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background-color: var(--pearl);
  border-top: 1px solid var(--linen);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
}

.footer-brand {
  max-width: 280px;
}

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

.footer-tagline {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--slate);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--midnight);
  margin-bottom: var(--space-xs);
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--slate);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--olive-branch);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--linen);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--stone);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links,
  .nav-inner .nav-cta {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
  }

  .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-notch {
    width: 100px;
    height: 24px;
    border-radius: 0 0 14px 14px;
    top: 10px;
  }

  .phone-screen {
    border-radius: 24px;
  }

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

  .mission-values {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-links {
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 220px;
    justify-content: center;
  }
}
