:root {
  --font-primary: "Baskerville", "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
  --font-secondary: "IBM Plex Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #f9f7f2;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text: #1f1c19;
  --muted: #8a8177;
  --accent: #ff3c00;
  --accent-dark: #cc3000;
  --shadow: 0 24px 48px rgba(31, 28, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", var(--font-secondary);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 72px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

main {
  width: min(1160px, 100%);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.screens {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  margin-top: -4px;
}

.screen-row {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 24px);
  align-items: stretch;
}

.screen-row--reverse {
  flex-direction: column;
}

.screen-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.screen-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(31, 28, 25, 0.55);
}

.screen-text h3 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.screen-text p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  font-family: var(--font-secondary);
  color: var(--muted);
}

.screen-img {
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 64px rgba(31, 28, 25, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

@media (min-width: 960px) {
  .screen-row {
    flex-direction: row;
    align-items: center;
    gap: clamp(32px, 6vw, 64px);
  }

  .screen-row--reverse {
    flex-direction: row-reverse;
  }

  .screen-text {
    max-width: 420px;
  }
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  margin-bottom: 64px;
}

.hero-tile {
  width: clamp(220px, 26vw, 360px);
  height: auto;
  filter: drop-shadow(0 20px 48px rgba(31, 28, 25, 0.18));
}

.tagline {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw + 1.2rem, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tagline span,
.tagline strong {
  color: var(--accent);
}

.tagline-rotator {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 8ch;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
}

.tagline-word {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  opacity: 0;
  transform: translateY(12px);
  animation: rotateWords 12s infinite;
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.tagline-word:nth-child(2) {
  animation-delay: 3s;
}

.tagline-word:nth-child(3) {
  animation-delay: 6s;
}

.tagline-word:nth-child(4) {
  animation-delay: 9s;
}

.subheading {
  margin: 0;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff5e1a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 40px rgba(255, 60, 0, 0.28);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(255, 60, 0, 0.32);
}

.download-btn:active {
  transform: translateY(1px);
}

.feature-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 64px;
}

.feature-card {
  padding: clamp(24px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(31, 28, 25, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card h2 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.secondary {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.secondary-card {
  padding: clamp(22px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(31, 28, 25, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secondary-card h3 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.2rem;
}

.secondary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.secondary-link::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.secondary-link:hover::after {
  transform: translateX(4px);
}

.footer {
  margin-top: 64px;
  text-align: center;
  font-family: var(--font-secondary);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--accent-dark);
}

.download-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@keyframes rotateWords {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@media (max-width: 720px) {
  body {
    padding: 36px 16px 48px;
  }

  header {
    gap: 22px;
    margin-bottom: 48px;
  }

  .screen-row {
    gap: 20px;
  }

  .screen-img {
    height: clamp(240px, 60vw, 420px);
  }

  .tagline {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .feature-card {
    gap: 10px;
  }
}
