:root {
  color-scheme: light dark;
  --color-primary: #f15a29;
  --color-primary-dark: #c14922;
  --color-bg: #fff8f3;
  --color-bg-alt: #ffffff;
  --color-text: #1f2933;
  --color-muted: #52606d;
  --color-border: rgba(31, 41, 51, 0.1);
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.hero {
  padding: 6rem 0 5rem;
}

.hero__content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem);
  margin-bottom: 1rem;
}

.hero__text p {
  max-width: 32rem;
  color: var(--color-muted);
}

.hero__image {
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.15);
}

.section {
  padding: 4rem 0;
  background: var(--color-bg);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 1rem 1.5rem;
}

.feature-icon {
  font-size: 1.75rem;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter input[type='email'] {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
}

.cta,
.button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta,
.button--primary {
  background: linear-gradient(135deg, var(--color-primary), #ff8a4c);
  color: white;
  box-shadow: 0 12px 24px rgba(241, 90, 41, 0.3);
}

.button--secondary {
  background: #e4e7eb;
  color: var(--color-text);
}

.cta:hover,
.cta:focus,
.button--primary:hover,
.button--primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(241, 90, 41, 0.35);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
}

.modal {
  border: none;
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  max-width: 420px;
  width: min(92vw, 420px);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal__content {
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.modal input[type='email'] {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  font-size: 1rem;
}

.newsletter__status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.newsletter__status--visible {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

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