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

:root {
  --primary: #C4572A;
  --primary-light: #E8764A;
  --primary-dark: #9E4420;
  --bg: #F7F1EA;
  --bg-alt: #FFFFFF;
  --text: #1E2B1E;
  --text-muted: #5C6B52;
  --sage: #5C6B52;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
}

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

/* === Nav === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--primary);
  color: white;
}

/* === Hero === */
.hero {
  background: var(--bg);
  padding-bottom: 80px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 0;
  text-align: center;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(196, 87, 42, 0.15);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(196, 87, 42, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(196, 87, 42, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* === Steps === */
.steps {
  background: var(--bg-alt);
  padding: 80px 24px;
}

.steps h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  transition: transform 0.2s;
}

.step:hover {
  transform: translateY(-4px);
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

/* === Features === */
.features {
  padding: 80px 24px;
  background: var(--bg);
}

.features h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  background: var(--bg-alt);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(92, 107, 82, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* === Screenshots === */
.screenshots {
  background: var(--bg-alt);
  padding: 80px 24px;
}

.screenshots h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
}

.screenshots-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshot-placeholder {
  width: 220px;
  height: 440px;
  background: var(--bg);
  border-radius: 24px;
  border: 2px dashed rgba(92, 107, 82, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.screenshot-placeholder:hover {
  transform: translateY(-4px);
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.screenshot-inner {
  text-align: center;
  color: var(--text-muted);
}

.screenshot-inner p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.screenshot-inner span {
  font-size: 13px;
  opacity: 0.7;
}

.screenshots-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  opacity: 0.6;
}

.screenshots-hint code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* === Download === */
.download {
  background: var(--primary);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.download > p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-badge {
  transition: transform 0.2s;
  display: inline-block;
}

.store-badge:hover {
  transform: scale(1.05);
}

.download-web {
  font-size: 14px;
  opacity: 0.8;
}

.download-web a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

.download-web a:hover {
  opacity: 1;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.5;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 40px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .steps, .features, .download {
    padding: 60px 20px;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}
