:root {
  color-scheme: light;
  --bg: #f4efe6;
  --paper: rgba(255, 251, 245, 0.82);
  --ink: #1f2430;
  --muted: #5e655f;
  --accent: #ff6b35;
  --accent-deep: #d94d1a;
  --sand: #ffd8a8;
  --line: rgba(31, 36, 48, 0.08);
  --shadow: 0 22px 70px rgba(61, 31, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 168, 0.9), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 107, 53, 0.18), transparent 30%),
    linear-gradient(160deg, #fff7ee 0%, #f4efe6 45%, #ece6db 100%);
  color: var(--ink);
}

body::before,
.noise {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(31, 36, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 36, 48, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

.noise {
  opacity: 0.07;
  background-image: radial-gradient(circle, rgba(31, 36, 48, 0.6) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
  display: grid;
  gap: 24px;
}

.hero,
.panel,
.preview {
  position: relative;
  overflow: hidden;
}

.panel,
.preview {
  background: var(--paper);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero {
  padding: 38px clamp(22px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 240, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  border-radius: 34px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28) 0%, rgba(255, 107, 53, 0) 70%);
}

.eyebrow,
.section-tag,
.screen-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent-deep);
}

h1,
h2 {
  margin: 0;
  font-family: "Georgia", "Palatino Linotype", serif;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  margin-top: 12px;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.lede,
.panel p,
.screen-card p,
.status,
.noscript {
  line-height: 1.6;
  color: var(--muted);
}

.lede {
  max-width: 46rem;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8d4d 100%);
  color: white;
  box-shadow: 0 16px 30px rgba(255, 107, 53, 0.28);
}

.button-primary:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.status {
  margin: 16px 0 0;
  min-height: 24px;
}

.status[data-tone="ready"],
.status[data-tone="success"] {
  color: var(--accent-deep);
}

.preview {
  padding: 24px;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(100%, 360px);
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #20242f 0%, #11151e 100%);
  box-shadow: 0 28px 60px rgba(17, 21, 30, 0.26);
  animation: float-card 5.6s ease-in-out infinite;
}

.phone-top {
  width: 34%;
  height: 20px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #353b4a 0%, #232836 100%);
}

.phone-screen {
  min-height: 560px;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 168, 0.55), transparent 30%),
    linear-gradient(180deg, #fff8ef 0%, #f6ede2 100%);
}

.screen-head,
.icon-grid,
.details-grid {
  display: grid;
  gap: 14px;
}

.screen-head {
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  align-items: center;
}

.pill,
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.pill-accent,
.icon-chip {
  color: var(--accent-deep);
}

.screen-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 28px rgba(61, 31, 18, 0.08);
}

.screen-card h2 {
  margin-top: 8px;
}

.icon-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-grid .panel,
.limit-panel {
  padding: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 700ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 240ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 360ms;
}

.noscript {
  margin: 0 auto 32px;
  width: min(1120px, calc(100% - 32px));
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 860px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .hero {
    padding: 24px;
    border-radius: 28px;
  }

  h1 {
    max-width: none;
  }

  .phone-screen {
    min-height: 520px;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .phone-frame,
  .button {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}