/* ============================================
   Water Reminder+ — Global Styles
   ============================================ */

:root {
  --water-blue: #4FC3F7;
  --water-dark: #0288D1;
  --water-deep: #01579B;
  --caffeine-amber: #FFB74D;
  --streak-flame: #FF7043;
  --bg-primary: #FAFCFF;
  --bg-section: #F0F7FF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A6A7E;
  --text-light: #8A96A8;
  --white: #FFFFFF;
  --border: #E4EAF0;
  --shadow-sm: 0 2px 8px rgba(2, 136, 209, 0.08);
  --shadow-md: 0 8px 32px rgba(2, 136, 209, 0.12);
  --shadow-lg: 0 16px 48px rgba(2, 136, 209, 0.16);
  --gradient-water: linear-gradient(135deg, #4FC3F7, #0288D1);
  --gradient-hero: linear-gradient(160deg, #F0F7FF 0%, #E1F0FF 40%, #FAFCFF 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--water-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--water-deep);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-water);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(2, 136, 209, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 136, 209, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--water-dark);
  border: 2px solid var(--water-dark);
}

.btn-outline:hover {
  background: var(--water-dark);
  color: var(--white);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 252, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-water);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-water);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all var(--transition);
}

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

.hero {
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--water-dark);
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone-mockup {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #1a1a1a;
  background: #1a1a1a;
}

.phone-mockup img {
  border-radius: 28px;
}

.phone-mockup.secondary {
  width: 220px;
  margin-left: -40px;
  margin-bottom: 40px;
  z-index: 1;
}

.watch-mockup {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 120px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #2a2a2a;
  background: #000;
  z-index: 2;
}

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

.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-icon.blue { background: rgba(79, 195, 247, 0.12); }
.feature-icon.amber { background: rgba(255, 183, 77, 0.12); }
.feature-icon.flame { background: rgba(255, 112, 67, 0.12); }
.feature-icon.dark { background: rgba(2, 136, 209, 0.12); }
.feature-icon.purple { background: rgba(149, 117, 205, 0.12); }
.feature-icon.green { background: rgba(102, 187, 106, 0.12); }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 1rem;
}

/* ============================================
   Screenshots Gallery
   ============================================ */

.screenshots {
  padding: 100px 0;
  background: var(--bg-section);
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screenshot-item img {
  width: 240px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

.screenshot-item.watch img {
  width: 140px;
  border-radius: 32px;
}

/* ============================================
   Apple Watch Section
   ============================================ */

.watch-section {
  padding: 100px 0;
}

.watch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.watch-showcase {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.watch-showcase-item {
  width: 160px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #2a2a2a;
  background: #000;
}

.watch-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.watch-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.watch-features-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(79, 195, 247, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--water-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

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

.cta {
  padding: 100px 0;
  background: var(--gradient-water);
  text-align: center;
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--water-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--water-dark);
}

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

.site-footer {
  padding: 64px 0 32px;
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================
   Page Header (for sub-pages)
   ============================================ */

.page-header {
  padding: 140px 0 60px;
  background: var(--gradient-hero);
  text-align: center;
}

.page-header p {
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Content Sections (Privacy, Support)
   ============================================ */

.content-section {
  padding: 80px 0;
}

.content-section .content-body {
  max-width: 760px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p {
  margin-bottom: 16px;
}

.content-body ul {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-body a {
  color: var(--water-dark);
  text-decoration: underline;
}

/* ============================================
   Support Page
   ============================================ */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.support-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.support-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(79, 195, 247, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.support-card h3 {
  margin-bottom: 8px;
}

.support-card p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--water-dark);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 1rem;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .watch-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

  .hero-phones {
    margin-top: 40px;
  }

  .phone-mockup { width: 220px; }
  .phone-mockup.secondary { width: 180px; }

  .watch-showcase {
    order: -1;
  }

  .watch-features-list {
    max-width: 500px;
    margin: 24px auto 0;
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .phone-mockup { width: 180px; border-width: 6px; }
  .phone-mockup.secondary { width: 150px; margin-left: -30px; }
  .watch-mockup { width: 90px; }

  .screenshot-item img { width: 200px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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