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

:root {
  --bg: #FFFFFF;
  --bg-surface: #F7F7F9;
  --bg-footer: #F2F2F4;
  --text-primary: #0D0D1C;
  --text-secondary: #55556A;
  --accent: #C9A84C;
  --border: #E4E4EA;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-name {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ── Hero ── */
main {
  position: relative;
  overflow: hidden;
}

main::before,
main::after {
  display: none;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 89px - 80px);
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 420px;
}

.app-store-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.app-store-link:hover {
  opacity: 0.75;
}

.app-store-badge {
  height: 52px;
  width: auto;
  display: block;
}

/* ── Screenshot ── */
.hero-screenshot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.screenshot {
  width: 100%;
  max-width: 320px;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(13, 13, 28, 0.18));
}

/* ── Feature Section ── */
.feature {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.feature-screenshot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.feature-headline {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

/* The white bg variant with text-left / screenshot-right */
.feature--reverse {
  background-color: var(--bg);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Footer ── */
footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Tablet landscape / small desktop (≤ 1024px) ── */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 32px;
  }

  .hero {
    padding: 64px 32px 0;
    gap: 32px;
  }

  .screenshot {
    max-width: 280px;
  }

  .feature-inner {
    padding: 80px 32px;
    gap: 48px;
  }
}

/* ── Tablet portrait (≤ 768px) ── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 0;
    min-height: unset;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .description {
    max-width: 520px;
  }

  .hero-screenshot {
    justify-content: center;
    padding-bottom: 64px;
  }

  .screenshot {
    max-width: 300px;
  }

  .feature-inner {
    grid-template-columns: 1fr;
    padding: 72px 24px;
    gap: 48px;
    text-align: center;
  }

  .feature-content {
    align-items: center;
  }

  .feature-screenshot {
    order: -1;
  }

  .feature--reverse .feature-screenshot {
    order: -1;
  }

  footer {
    margin-top: 0;
  }

  .footer-inner {
    padding: 28px 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  header {
    padding: 18px 0;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .logo-name {
    font-size: 1.25rem;
  }

  .hero {
    padding: 40px 20px 0;
    gap: 32px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .headline {
    font-size: clamp(2.6rem, 11vw, 3.2rem);
  }

  .description {
    font-size: 0.975rem;
    max-width: 100%;
  }

  .app-store-badge {
    height: 44px;
  }

  .screenshot {
    max-width: 240px;
  }

  .feature-inner {
    padding: 56px 20px;
    gap: 36px;
  }

  .feature-headline {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .footer-inner {
    padding: 24px 20px;
  }

  .footer-links {
    gap: 16px;
  }
}
