:root {
  --bg: #fff8ec;
  --paper: #fffaf2;
  --paper-2: #f8efdf;
  --ink: #172843;
  --muted: #5d6680;
  --line: #ded4c3;
  --coral: #ff6a5c;
  --coral-dark: #e9564d;
  --mint: #8ea789;
  --gold: #f5b84b;
  --lcd: #aeb5a2;
  --shadow: 0 22px 60px rgba(25, 42, 69, .12);
  --pixel-shadow: 6px 6px 0 rgba(23, 40, 67, .12);
  --radius: 28px;
  --mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(255, 248, 236, .90), rgba(255, 248, 236, .90)),
    linear-gradient(90deg, rgba(23, 40, 67, .055) 1px, transparent 1px),
    linear-gradient(rgba(23, 40, 67, .055) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(23, 40, 67, .22) 1px, transparent 1px);
  background-size: 11px 11px;
  z-index: -1;
}

.site-header,
.site-footer,
.section-shell,
.section-card,
.feature-grid,
.how,
.faq {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.brand.small { font-size: 1.8rem; }

.pixel-heart {
  width: 18px;
  height: 18px;
  background: var(--coral);
  clip-path: polygon(50% 92%, 8% 50%, 8% 20%, 32% 20%, 50% 36%, 68% 20%, 92% 20%, 92% 50%);
  image-rendering: pixelated;
  transform: translateY(-2px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 800;
  color: var(--ink);
}

.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--coral);
  transition: width .2s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 900;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-cta,
.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(255, 106, 92, .25);
}

.button.secondary {
  background: rgba(255,255,255,.45);
  border-color: var(--ink);
  color: var(--ink);
}

.nav-cta:hover,
.button:hover { transform: translateY(-2px); }
.button.primary:hover { background: var(--coral-dark); }

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 14px;
}

.section-shell,
.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, .78);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  min-height: 630px;
  padding: clamp(28px, 5vw, 64px);
  border: none;
  background: linear-gradient(135deg, rgba(255,250,242,.55), rgba(255,248,236,.22));
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--coral);
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.dot {
  width: 12px;
  height: 12px;
  background: var(--coral);
  box-shadow: 8px 0 0 rgba(255,106,92,.25), 16px 0 0 rgba(255,106,92,.1);
}

h1, h2, h3 { margin: 0; }
h1,
.section-heading h2,
.why h2,
.product-detail h2,
.showcase h2,
.cta h2 {
  font-family: var(--mono);
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  max-width: 720px;
}
h1 span { color: var(--coral); }
.lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  font-weight: 650;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
  color: var(--muted);
  font-weight: 850;
}
.mini-badges li { display: inline-flex; align-items: center; gap: 9px; }
.mini-badges span { color: var(--ink); font-family: var(--mono); }

.hero-visual {
  position: relative;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 3% 12% 12%;
  border: 2px dashed rgba(23, 40, 67, .16);
  background:
    linear-gradient(90deg, rgba(255,106,92,.18) 8px, transparent 8px) 0 0 / 42px 42px,
    linear-gradient(rgba(142,167,137,.18) 8px, transparent 8px) 0 0 / 42px 42px;
  z-index: -1;
}
.hero-visual img {
  border-radius: 24px;
  filter: drop-shadow(0 28px 38px rgba(23, 40, 67, .15));
}
.hero-status {
  position: absolute;
  right: 3%;
  bottom: 7%;
  width: min(210px, 42%);
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lcd);
  box-shadow: var(--pixel-shadow);
  font-family: var(--mono);
  font-weight: 900;
}
.hero-status span,
.hero-status strong {
  display: block;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-status span { font-size: .72rem; opacity: .75; }
.hero-status strong { margin-top: 4px; font-size: 1.25rem; }
.hero-status i {
  display: block;
  height: 10px;
  margin-top: 10px;
  background:
    linear-gradient(90deg, var(--ink) 0 18%, transparent 18% 24%, var(--ink) 24% 46%, transparent 46% 52%, var(--ink) 52% 74%, transparent 74%);
}

.product-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-strip article {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 2px solid rgba(23, 40, 67, .12);
  border-radius: 18px;
  background: rgba(255, 250, 242, .82);
  box-shadow: 0 12px 26px rgba(23, 40, 67, .06);
  overflow: hidden;
}
.product-strip article::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  background: var(--coral);
  box-shadow: -14px -14px 0 rgba(142, 167, 137, .55);
  opacity: .75;
}
.product-strip span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--coral);
  font-family: var(--mono);
  font-weight: 900;
}
.product-strip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
}
.product-strip p {
  max-width: 220px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.feature-card {
  position: relative;
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, .86);
  box-shadow: 0 12px 30px rgba(23, 40, 67, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  box-shadow: 18px 0 0 rgba(255, 106, 92, .65), 0 18px 0 rgba(142, 167, 137, .65);
  opacity: .75;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 40, 67, .28);
  box-shadow: 0 18px 36px rgba(23, 40, 67, .11);
}
.feature-card h2 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 18px 0 10px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}
.feature-icon {
  height: 54px;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-weight: 900;
}
.screen-icon span {
  width: 34px;
  height: 24px;
  background: var(--lcd);
  border: 2px solid var(--ink);
  box-shadow: inset 0 -6px 0 rgba(23,40,67,.08);
}
.buttons-icon { gap: 6px; }
.buttons-icon i { width: 16px; height: 16px; border-radius: 50%; background: #2b3036; box-shadow: inset 0 -3px 0 rgba(255,255,255,.18); }
.sound-icon, .print-icon { font-size: 1.4rem; }

.section-card {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
}
.why,
.product-detail,
.showcase {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.media-frame img,
.product-detail-image img,
.showcase-image img,
.wide-image img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(23,40,67,.09);
}
.product-detail-image { position: relative; }
.product-detail-image img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
}
.image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 2px solid rgba(23, 40, 67, .72);
  border-radius: 14px;
  background: rgba(255, 250, 242, .88);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--pixel-shadow);
}
.why h2,
.product-detail h2,
.showcase h2,
.section-heading h2,
.cta h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
.reason-list { display: grid; gap: 24px; margin-top: 30px; }
.reason-list article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.star { color: var(--coral); font-size: 2rem; line-height: 1; font-family: var(--mono); }
.reason-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.reason-list p { margin: 0; color: var(--muted); line-height: 1.65; font-weight: 650; }

.how,
.faq { padding-block: 72px 20px; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-heading p:not(.eyebrow) { margin: 18px auto 0; color: var(--muted); line-height: 1.7; font-weight: 650; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,250,242,.78);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 900;
}
.step h3 { font-size: 1.22rem; }
.step p { color: var(--muted); line-height: 1.6; font-weight: 650; }
.wide-image { margin-top: 24px; }

.product-detail { grid-template-columns: .78fr 1.22fr; }
.product-detail-copy p,
.showcase-copy p,
.cta p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}
.product-meter {
  margin-top: 24px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lcd);
  box-shadow: var(--pixel-shadow);
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
}
.product-meter span {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
}
.product-meter i {
  display: block;
  height: 14px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) var(--value), transparent var(--value)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(23, 40, 67, .26) 12px 14px);
}
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tech-list span {
  border: 2px solid rgba(23,40,67,.14);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: .9rem;
}

.specs { margin-top: 28px; padding: 46px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.spec::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 6px;
  height: 100%;
  background: var(--coral);
}
.spec strong { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 1.1rem; }
.spec span { color: var(--muted); font-weight: 650; line-height: 1.5; }

.screen-story {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}
.screen-device {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(23, 40, 67, .06) 1px, transparent 1px),
    linear-gradient(rgba(23, 40, 67, .06) 1px, transparent 1px),
    var(--paper-2);
  background-size: 22px 22px;
}
.lcd-screen {
  width: min(360px, 82vw);
  aspect-ratio: 1.15;
  padding: 18px 20px 20px;
  border: 18px solid var(--ink);
  border-radius: 28px;
  background: var(--lcd);
  box-shadow: 14px 14px 0 rgba(255, 106, 92, .24), 0 24px 40px rgba(23, 40, 67, .16);
}
.lcd-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 3px solid rgba(23, 40, 67, .74);
}
.lcd-icons span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}
.pixel-stage {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  min-height: 210px;
  padding-top: 10px;
}
.pixel-creature {
  display: grid;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  gap: 0;
  width: min(220px, 68vw);
  aspect-ratio: var(--cols, 20) / var(--rows, 16);
  align-self: end;
}
.pixel-creature span {
  display: block;
  aspect-ratio: 1;
}
.pixel-creature .on {
  background: var(--ink);
  box-shadow: inset -1px -1px 0 rgba(255, 250, 242, .12);
}
.pixel-creature .tone {
  background:
    linear-gradient(45deg, var(--ink) 0 38%, transparent 38% 62%, var(--ink) 62%);
  opacity: .86;
}
.pixel-ground {
  width: min(260px, 76vw);
  height: 24px;
  margin-top: 6px;
  background:
    radial-gradient(var(--ink) 1.4px, transparent 1.6px) 0 0 / 8px 8px,
    linear-gradient(var(--ink), var(--ink)) left 11px / 100% 2px no-repeat;
  opacity: .72;
}
.screen-copy h2 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: 0;
}
.screen-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}
.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.mood-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.mood-row button.active {
  background: var(--coral);
  color: #fff;
}

.showcase { grid-template-columns: .75fr 1.25fr; overflow: hidden; }
.showcase-image {
  max-height: 420px;
  overflow: hidden;
  border-radius: 20px;
}
.showcase-image img { transform: translateY(-10%); }

.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,250,242,.82);
  padding: 20px 22px;
}
summary { cursor: pointer; font-weight: 900; font-size: 1.08rem; }
details p { color: var(--muted); line-height: 1.7; font-weight: 650; }

.cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  padding: 30px;
}
.pixel-pet pre {
  margin: 0;
  font-family: var(--mono);
  font-weight: 900;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.cta p { margin: 8px 0 0; }
.signup { display: flex; gap: 10px; }
.signup input {
  width: min(260px, 44vw);
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font-weight: 800;
  outline: none;
}
.signup input:focus { border-color: var(--coral); }
.sr-only { position: absolute; left: -9999px; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.site-footer a:hover { color: var(--coral); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-cta { width: 100%; }
  .hero,
  .why,
  .product-detail,
  .screen-story,
  .showcase { grid-template-columns: 1fr; }
  .feature-grid,
  .steps,
  .spec-grid,
  .product-strip { grid-template-columns: repeat(2, 1fr); }
  .cta, .site-footer { grid-template-columns: 1fr; text-align: center; }
  .signup, .site-footer nav { justify-content: center; }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section-shell,
  .section-card,
  .feature-grid,
  .how,
  .faq { width: min(100% - 24px, 1180px); }
  .brand { font-size: 2rem; }
  .hero { padding: 24px; min-height: unset; }
  h1 { font-size: clamp(2.7rem, 16vw, 4rem); }
  .feature-grid,
  .steps,
  .spec-grid,
  .product-strip { grid-template-columns: 1fr; }
  .product-strip { width: min(100% - 24px, 1180px); }
  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }
  .image-caption {
    position: static;
    margin-top: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .specs { padding: 24px; }
  .screen-device { min-height: 320px; }
  .lcd-screen { padding: 20px; border-width: 12px; }
  .signup { flex-direction: column; }
  .signup input, .signup .button { width: 100%; }
}
