/* WalkingMonitor Website Styles */

:root {
  --steps-orange: #FF4710;
  --steps-orange-dark: #E03A08;
  --steps-orange-light: #FF6E3D;
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-card: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --border-color: #D2D2D7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 120px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  width: 288px;
  height: 288px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(255, 71, 16, 0.25);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--steps-orange);
}

.hero-tagline {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--steps-orange);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 71, 16, 0.3);
}

.btn-primary:hover {
  background: var(--steps-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 71, 16, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #EBEBED;
  transform: translateY(-1px);
}

.btn-appstore {
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-appstore:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-appstore img {
  height: 48px;
  width: auto;
  display: block;
}

/* ---------- Features Section ---------- */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.section-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steps-orange);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--text-primary);
}

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

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 71, 16, 0.1);
  color: var(--steps-orange);
  margin-bottom: 18px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Screenshot Gallery ---------- */

.screenshots-section {
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.screenshot-gallery {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.screenshot-gallery::-webkit-scrollbar {
  height: 6px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.screenshot-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.screenshot-card img {
  width: auto;
  height: 560px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(0, 0, 0, 0.04);
  display: block;
}

.screenshot-card .caption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* ---------- Feature Rows with Screenshots ---------- */

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--border-color);
}

.feature-row .feature-text {
  flex: 1;
  min-width: 280px;
}

.feature-row .feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-row .feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-row .feature-shot {
  flex: 0 0 auto;
}

.feature-row .feature-shot img {
  width: auto;
  height: 480px;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(0, 0, 0, 0.03);
}

/* ---------- Widgets Section ---------- */

.widgets-section {
  background: var(--text-primary);
  color: white;
  padding: 100px 24px;
  text-align: center;
}

.widgets-section .section-label {
  color: var(--steps-orange-light);
}

.widgets-section .section-title {
  color: white;
}

.widget-showcase {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.widget-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.widget-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.widget-card p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.5;
}

.widget-card .widget-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

/* ---------- Privacy Highlight ---------- */

.privacy-highlight {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 24px;
}

.privacy-badge svg {
  width: 20px;
  height: 20px;
}

.privacy-highlight h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.privacy-highlight > p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* ---------- Download Section ---------- */

.download-section {
  background: var(--bg-card);
  padding: 100px 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.download-section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-section p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

/* ---------- Privacy Page ---------- */

.privacy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.privacy-page h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.privacy-page .last-updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}

.privacy-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.privacy-page p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-page ul {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-page ul li {
  margin-bottom: 8px;
}

.privacy-page .highlight-box {
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid #2E7D32;
}

.privacy-page .highlight-box p {
  color: #1B5E20;
  font-weight: 500;
  margin: 0;
}

/* ---------- Support Page ---------- */

.support-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.support-page h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.support-page > p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.support-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.support-card .email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 71, 16, 0.1);
  color: var(--steps-orange);
  font-size: 28px;
  margin-bottom: 20px;
}

.support-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .section-title {
    font-size: 30px;
  }

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

  .widget-showcase {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-icon {
    width: 216px;
    height: 216px;
  }

  .screenshot-card img {
    height: 400px;
    border-radius: 22px;
  }

  .feature-row {
    flex-direction: column !important;
    gap: 32px;
    padding: 48px 20px;
    text-align: center;
  }

  .feature-row .feature-shot img {
    height: 360px;
  }

  .feature-row .feature-text h3 {
    font-size: 24px;
  }

  .privacy-page {
    padding: 80px 20px 60px;
  }

  .privacy-page h1 {
    font-size: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: #1C1C1E;
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #6E6E73;
    --border-color: #2C2C2E;
  }

  .nav {
    background: rgba(10, 10, 10, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .widgets-section {
    background: #000;
  }

  .widget-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .privacy-page .highlight-box {
    background: rgba(46, 125, 50, 0.15);
    border-left-color: #4CAF50;
  }

  .privacy-page .highlight-box p {
    color: #A5D6A7;
  }
}
