/* ===========================
   CSS Variables & Base Styles
   =========================== */

:root {
  /* Color Scheme: Sketch Charcoal & Highlight Amber */
  /* Primary charcoal grays (hand-drawn pencil aesthetic) */
  --color-charcoal-dark: #2B2B2B;
  --color-charcoal-medium: #4A4A4A;
  --color-charcoal-light: #6B6B6B;
  
  /* Secondary sketch paper backgrounds */
  --color-paper-white: #FDFCFA;
  --color-paper-cream: #F8F6F2;
  --color-paper-light: #F0EDE7;
  
  /* Accent highlight amber (found objects, discovery moments) */
  --color-amber-bright: #D4A76A;
  --color-amber-glow: #E8C087;
  --color-amber-deep: #B8925C;
  
  /* Text colors */
  --color-text-primary: #2B2B2B;
  --color-text-secondary: #4A4A4A;
  --color-text-light: #6B6B6B;
  
  /* Spacing system */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Typography scale */
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows (soft sketch paper depth) */
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.08);
  --shadow-md: 0 4px 16px rgba(43, 43, 43, 0.12);
  --shadow-lg: 0 8px 24px rgba(43, 43, 43, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* Base reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-paper-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===========================
   Header (Sticky Navigation)
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-paper-light);
  height: 64px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-charcoal-light);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  display: none;
}

.nav-link:hover {
  color: var(--color-amber-bright);
}

.nav-link:active {
  color: var(--color-amber-deep);
}

.cta-button-mobile {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-amber-bright), var(--color-amber-glow));
  border-radius: 50%;
  color: white;
  transition: transform var(--transition-fast);
}

.cta-button-mobile:active {
  transform: scale(0.95);
}

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

.hero {
  padding-top: 80px;
  padding-bottom: var(--spacing-xxl);
  background: linear-gradient(180deg, var(--color-paper-white) 0%, var(--color-paper-cream) 100%);
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-charcoal-light);
  box-shadow: var(--shadow-md);
  animation: magnifyFloat 4s ease-in-out infinite;
}

.magnify-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 2px dashed var(--color-amber-bright);
  border-radius: 50%;
  opacity: 0.6;
  animation: magnifyPulse 3s ease-in-out infinite;
}

.hero-title {
  font-size: var(--font-size-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-amber-bright);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  cursor: pointer;
  text-align: left;
  border: 2px solid var(--color-charcoal-medium);
  background: white;
}

.store-button.google-play {
  background: linear-gradient(135deg, var(--color-charcoal-dark), var(--color-charcoal-medium));
  color: white;
  border-color: var(--color-charcoal-dark);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.store-button.google-play:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 167, 106, 0.3);
}

.store-button.google-play:active {
  transform: translateY(-1px);
}

.store-button.app-store {
  background: #2a2a2a;
  color: white;
  border-color: #2a2a2a;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

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

.store-label {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.store-label.coming-soon-label {
  font-size: 10px;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
}

.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-amber-bright);
  color: var(--color-text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  width: 100%;
  max-width: 800px;
}

.hero-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-charcoal-light);
  box-shadow: var(--shadow-lg);
}

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

.features {
  padding: var(--spacing-xxl) 0;
  background: white;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: 800;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-paper-white), var(--color-paper-cream));
  border: 2px solid var(--color-charcoal-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
  animation: revealCard 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(212, 167, 106, 0.2);
  border-color: var(--color-amber-bright);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.feature-description {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

.download-cta {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--color-amber-deep), var(--color-amber-bright), var(--color-amber-glow));
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
  pointer-events: none;
}

.download-cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.download-cta-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--spacing-xl);
}

.download-buttons-large {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.store-button-large {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium);
  cursor: pointer;
  text-align: left;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.store-button-large.google-play-large {
  background: linear-gradient(135deg, var(--color-charcoal-dark), var(--color-charcoal-medium));
  color: white;
  border-color: rgba(255,255,255,0.2);
}

.store-button-large.google-play-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.4);
}

.store-button-large.google-play-large:active {
  transform: translateY(-2px);
}

.store-button-large.app-store-large {
  background: #2a2a2a;
  color: white;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
  border-color: rgba(255,255,255,0.1);
}

.store-icon-large {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.store-text-large {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-label-large {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.store-name-large {
  font-size: 20px;
  font-weight: 700;
}

/* ===========================
   About Section
   =========================== */

.about {
  padding: var(--spacing-xxl) 0;
  background: var(--color-paper-cream);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.contact-info {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: white;
  border: 2px solid var(--color-charcoal-light);
  border-radius: var(--radius-md);
}

.contact-info a {
  color: var(--color-amber-bright);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-info a:hover {
  color: var(--color-amber-deep);
  text-decoration: underline;
}

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

.footer {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: var(--color-charcoal-dark);
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.3);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-amber-bright);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ===========================
   Floating CTA (Mobile)
   =========================== */

.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: var(--spacing-sm);
  background: linear-gradient(to top, rgba(253, 252, 250, 1), rgba(253, 252, 250, 0.95));
  border-top: 2px solid var(--color-paper-light);
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition-medium);
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-amber-bright), var(--color-amber-glow));
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.floating-cta-button:active {
  transform: scale(0.98);
}

/* ===========================
   Animations
   =========================== */

@keyframes magnifyFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes magnifyPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Responsive Design (Tablet & Desktop)
   =========================== */

@media (min-width: 768px) {
  :root {
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
  }
  
  .header-title {
    display: block;
  }
  
  .nav-link {
    display: block;
  }
  
  .cta-button-mobile {
    display: none;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xxl);
  }
  
  .hero-content {
    flex: 1;
    text-align: left;
  }
  
  .hero-icon-wrapper {
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-visual {
    flex: 1;
  }
  
  .download-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .download-buttons-large {
    flex-direction: row;
    justify-content: center;
  }
  
  .download-cta-title {
    font-size: 3rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .footer-brand {
    flex-direction: row;
  }
  
  .floating-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-icon {
    width: 140px;
    height: 140px;
  }
  
  .magnify-ring {
    width: 160px;
    height: 160px;
  }
}
