:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-soft: #f1ebdf;
  --line: rgba(33, 29, 24, 0.1);
  --text: #1f1b17;
  --muted: #6c645d;
  --accent: #395845;
  --accent-soft: #dfe8df;
  --hero-red: #a93f3a;
  --hero-red-deep: #8b2f2b;
  --shadow: 0 20px 50px rgba(31, 27, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f4ec 0%, #f2ede3 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
.brand-text,
.site-footer p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.site-header,
.page-shell,
.site-footer,
.legal-shell,
.hero-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav a,
.footer-links a,
.back-link {
  text-decoration: none;
  color: var(--muted);
}

.hero-band {
  width: 100%;
  background: linear-gradient(135deg, var(--hero-red) 0%, var(--hero-red-deep) 100%);
  padding: 24px 0 34px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  color: #fff9f7;
  padding: 12px 0;
}

.hero h1,
.section-copy h2,
.section-heading h2,
.contact-panel h2,
.legal-shell h1,
.hero-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 {
  max-width: 9.5ch;
  font-size: clamp(2.5rem, 5.8vw, 4.6rem);
}

.hero-text,
.section-copy p,
.feature-card p,
.contact-panel p,
.legal-shell p,
.legal-shell li {
  line-height: 1.65;
  font-size: 0.95rem;
}

.hero-text {
  max-width: 34rem;
  color: rgba(255, 245, 242, 0.88);
  margin-top: 18px;
}

.eyebrow,
.feature-index,
.screen-name {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: rgba(255, 234, 229, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-light {
  background: #fff8f6;
  border-color: transparent;
  color: var(--hero-red-deep);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff3f1;
}

.page-shell {
  padding: 20px 0 56px;
}

.feature-grid,
.split-section,
.screens-section,
.contact-panel,
.legal-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-visual,
.placeholder-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-phone,
.phone-placeholder {
  width: min(270px, 100%);
  aspect-ratio: 9 / 18;
  padding: 14px;
  border-radius: 32px;
  background: #111;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.16);
}

.hero-phone-live {
  width: min(300px, 100%);
  transform: rotate(-4deg);
}

.hero-phone-live img {
  width: 100%;
  height: calc(100% - 0px);
  object-fit: cover;
  border-radius: 22px;
}

.phone-top {
  width: 42%;
  height: 22px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.placeholder-body {
  height: calc(100% - 36px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #f5f5f3 0%, #eceae5 100%),
    repeating-linear-gradient(
      180deg,
      rgba(31, 27, 23, 0.06) 0,
      rgba(31, 27, 23, 0.06) 1px,
      transparent 1px,
      transparent 72px
    );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #2a2622;
}

.placeholder-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.58;
}

.placeholder-title {
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 700;
}

.offset-card {
  margin-top: 56px;
}

.feature-grid,
.screens-section,
.contact-panel {
  padding: 28px;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 18px;
}

.section-copy h2,
.section-heading h2,
.contact-panel h2,
.legal-shell h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-copy p,
.contact-panel p,
.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.screen-card {
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(57, 88, 69, 0.35);
  background: linear-gradient(180deg, rgba(223, 232, 223, 0.72) 0%, rgba(255, 253, 248, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.screen-card strong {
  font-size: 1rem;
}

.screen-card-wide {
  grid-column: span 2;
}

.contact-panel p {
  max-width: 38rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 28px;
}

.site-footer p {
  margin: 0;
  font-size: 0.98rem;
}

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

.legal-shell {
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 28px;
}

.legal-shell h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .hero-shell,
  .split-section,
  .feature-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .screen-card-wide {
    grid-column: span 1;
  }

  .offset-card {
    margin-top: 0;
  }

  .hero-phone-live {
    transform: none;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-band {
    padding: 16px 0 26px;
  }

  .feature-grid,
  .split-section,
  .screens-section,
  .contact-panel,
  .legal-shell {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .hero-phone,
  .phone-placeholder {
    width: min(280px, 100%);
  }

  .placeholder-row {
    flex-direction: column;
  }
}
