:root {
  --wine: #770105;
  --wine-dark: #770001;
  --cream: #fdecd2;
  --navy: #0f2c3f;
  --red: #780002;
  --ink: #081b27;
  --paper: #fff6e8;
  --pixel: 4px;
  --shadow: 8px 8px 0 var(--navy);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy);
  background:
    linear-gradient(rgba(15, 44, 63, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 44, 63, .035) 1px, transparent 1px),
    var(--cream);
  background-size: 24px 24px;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

::selection { color: var(--cream); background: var(--wine); }

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

.skip-link {
  position: fixed;
  z-index: 999;
  inset: 12px 12px auto auto;
  padding: 8px 14px;
  color: var(--cream);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 42px;
  height: 36px;
  position: relative;
  display: inline-block;
  background: var(--wine);
  border: 4px solid var(--navy);
  box-shadow: 4px 4px 0 rgba(15, 44, 63, .2);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 8px;
  height: 8px;
  background: var(--navy);
}

.brand-mark::before { right: 4px; }
.brand-mark::after { left: 4px; }

.brand-mark i {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 8px;
  background: var(--cream);
}

.brand-mark i:first-child { right: 7px; }
.brand-mark i:last-child { left: 7px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: .92rem; font-weight: 700; position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 100%;
  bottom: -5px;
  height: 3px;
  background: var(--wine);
  transition: left .2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { left: 0; }

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  color: var(--cream);
  background: var(--wine);
  border: 4px solid var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.pixel-button:hover,
.pixel-button:focus-visible {
  background: var(--red);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--navy);
}

.pixel-button:focus-visible,
.model-chip:focus-visible,
summary:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px dashed var(--wine); outline-offset: 5px; }

.menu-button { display: none; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
  padding-block: 72px 105px;
}

.eyebrow,
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 5px 11px;
  color: var(--wine);
  border: 3px solid var(--wine);
  background: rgba(253, 236, 210, .7);
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 4px 4px 0 rgba(119, 1, 5, .18);
}

.status-pixel {
  width: 9px;
  height: 9px;
  background: var(--wine);
  animation: blink 1.4s steps(2, end) infinite;
}

@keyframes blink { 50% { opacity: .25; } }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 25px 0 23px;
  font-size: clamp(2.8rem, 6.2vw, 5.5rem);
  line-height: 1.17;
  letter-spacing: -.075em;
  font-weight: 950;
}

h1 span { color: var(--wine); text-shadow: 4px 4px 0 rgba(119, 1, 5, .12); }

.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  font-size: 1.08rem;
  line-height: 2;
}

.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pixel-button.primary { min-height: 54px; padding-inline: 32px; }
.text-link { color: var(--wine); font-weight: 900; border-bottom: 2px dashed currentColor; }
.text-link span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }

@keyframes bob { 50% { transform: translateY(4px); } }

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  font-size: .82rem;
  font-weight: 800;
}
.hero-badges span { color: var(--wine); }

.hero-art { position: relative; padding: 10px 10px 0 0; }
.art-frame {
  position: relative;
  background: var(--navy);
  border: 6px solid var(--navy);
  box-shadow: 13px 13px 0 var(--wine);
  isolation: isolate;
}
.art-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 5px, rgba(253, 236, 210, .05) 6px);
}
.art-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; }
.art-label {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: 18px;
  padding: 5px 10px;
  color: var(--cream);
  background: var(--wine);
  border: 3px solid var(--navy);
  font-family: "Courier New", monospace;
  font-size: .7rem;
  font-weight: 900;
  direction: ltr;
}

.signal-card {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 18px;
  min-width: 112px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow: 5px 5px 0 var(--wine);
  font-family: "Courier New", monospace;
  font-size: .7rem;
  line-height: 1.35;
}
.signal-card b { display: block; font-size: 1rem; }
.signal-card i { display: inline-block; width: 10px; height: 7px; background: var(--wine); margin-left: 2px; }
.floating-star { position: absolute; color: var(--wine); font-size: 2rem; animation: sparkle 2.2s steps(2, end) infinite; }
.star-one { top: -27px; left: -24px; }
.star-two { right: -35px; bottom: 50px; animation-delay: .8s; }
@keyframes sparkle { 50% { transform: scale(.65) rotate(45deg); opacity: .55; } }

.model-ticker {
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
  border-block: 5px solid var(--wine);
  direction: ltr;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding-block: 13px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: .95rem;
  font-weight: 900;
  animation: ticker 28s linear infinite;
}
.ticker-track span { margin-inline: 30px; }
.ticker-track i { color: #c84745; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.features,
.journey,
.faq { padding-block: 110px; }

.section-heading { max-width: 660px; margin-bottom: 48px; }
.section-heading h2,
.play-copy h2,
.cost-copy h2,
.final-cta h2 {
  margin: 17px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.3;
  letter-spacing: -.055em;
}
.section-heading p { max-width: 620px; color: rgba(15, 44, 63, .79); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.feature-card {
  min-height: 280px;
  position: relative;
  padding: 32px;
  border: 5px solid var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card.featured { color: var(--cream); background: var(--wine); }
.feature-card h3 { margin: 25px 0 9px; font-size: 1.42rem; }
.feature-card p { max-width: 490px; margin-bottom: 0; opacity: .85; }
.card-number {
  position: absolute;
  top: 25px;
  left: 25px;
  font-family: "Courier New", monospace;
  font-weight: 900;
  opacity: .42;
}
.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--navy);
  border: 4px solid currentColor;
  box-shadow: 5px 5px 0 rgba(15, 44, 63, .22);
  font-family: "Courier New", monospace;
  font-weight: 900;
}
.featured .feature-icon { color: var(--wine); background: var(--cream); }
.feature-icon.camera::before { content: ""; width: 23px; height: 17px; border: 4px solid var(--cream); box-shadow: -7px -8px 0 -4px var(--cream); }
.feature-icon.chat::before { content: ""; width: 28px; height: 22px; border: 4px solid var(--cream); }
.feature-icon.coin { border-radius: 50%; color: var(--cream); }
.mini-models { position: absolute; left: 30px; bottom: 28px; display: flex; direction: ltr; }
.mini-models span {
  width: 35px; height: 35px; display: grid; place-items: center;
  margin-left: -6px; color: var(--navy); background: var(--cream); border: 3px solid var(--navy); font-size: .7rem; font-weight: 900;
}

.playground-wrap {
  color: var(--cream);
  background-color: var(--navy);
  background-image: radial-gradient(rgba(253, 236, 210, .16) 1px, transparent 1px);
  background-size: 18px 18px;
  border-block: 7px solid var(--wine);
}
.playground { min-height: 650px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; padding-block: 90px; }
.chapter.light { color: var(--cream); border-color: var(--cream); background: rgba(253, 236, 210, .08); box-shadow: 4px 4px 0 rgba(253, 236, 210, .15); }
.play-copy p { color: rgba(253, 236, 210, .78); }
.model-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.model-chip {
  padding: 8px 13px;
  color: var(--cream);
  border: 3px solid var(--cream);
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
}
.model-chip:hover,
.model-chip.active { color: var(--navy); background: var(--cream); box-shadow: 4px 4px 0 var(--wine); }
.demo-note { margin-top: 18px; font-size: .77rem; }

.chat-window { border: 6px solid var(--cream); background: var(--cream); box-shadow: 13px 13px 0 var(--wine); }
.window-bar {
  min-height: 45px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
  background: var(--wine);
  font-family: "Courier New", monospace;
  font-size: .72rem;
  font-weight: 900;
  direction: ltr;
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 10px; height: 10px; background: var(--cream); border: 2px solid var(--navy); }
.online { display: flex; align-items: center; gap: 6px; direction: rtl; }
.online i { width: 8px; height: 8px; background: #f6cb6b; }
.chat-body { min-height: 390px; padding: 30px 25px; color: var(--navy); background: var(--paper); }
.message { width: fit-content; max-width: 86%; padding: 14px 17px; margin-bottom: 22px; border: 4px solid var(--navy); font-size: .88rem; line-height: 1.9; }
.user-message { margin-right: auto; color: var(--cream); background: var(--navy); box-shadow: 5px 5px 0 rgba(15, 44, 63, .18); }
.bot-message { display: flex; align-items: flex-start; gap: 13px; background: var(--cream); box-shadow: 5px 5px 0 var(--wine); }
.bot-avatar { flex: 0 0 auto; position: relative; width: 31px; height: 27px; background: var(--wine); border: 3px solid var(--navy); }
.bot-avatar i { position: absolute; top: 8px; width: 5px; height: 6px; background: var(--cream); }
.bot-avatar i:first-child { right: 5px; }
.bot-avatar i:last-child { left: 5px; }
.bot-message p { margin-bottom: 11px; }
.response-meta { padding-top: 8px; border-top: 2px dashed rgba(15, 44, 63, .3); font-size: .72rem; line-height: 1.75; }
.response-meta span,
.response-meta b { display: block; }
.response-meta em { font-style: normal; font-weight: 900; }
.chat-input { margin: 10px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: rgba(15, 44, 63, .55); border: 4px solid var(--navy); background: #fffaf1; font-size: .8rem; }
.chat-input b { width: 27px; height: 27px; display: grid; place-items: center; color: var(--cream); background: var(--wine); }

.quest-line {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: quest;
}
.quest-line li { position: relative; padding: 0 25px; text-align: center; }
.quest-line li:not(:last-child)::after {
  content: "········";
  position: absolute;
  top: 23px;
  left: -46px;
  color: var(--wine);
  font-family: monospace;
  font-size: 1.45rem;
  letter-spacing: 2px;
}
.quest-icon {
  width: 63px; height: 63px; display: grid; place-items: center; margin: 0 auto 22px;
  color: var(--cream); background: var(--wine); border: 5px solid var(--navy); box-shadow: 7px 7px 0 rgba(15, 44, 63, .2); font-family: monospace; font-size: 1.25rem; font-weight: 900;
}
.quest-line h3 { font-size: 1.25rem; margin-bottom: 7px; }
.quest-line p { max-width: 280px; margin-inline: auto; font-size: .9rem; opacity: .78; }

.cost-section { padding-bottom: 115px; }
.cost-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
  align-items: center;
  padding: 60px;
  color: var(--cream);
  background: var(--wine);
  border: 7px solid var(--navy);
  box-shadow: 14px 14px 0 var(--navy);
}
.cost-copy p { color: rgba(253, 236, 210, .82); }
.cost-copy ul { list-style: none; padding: 0; margin: 25px 0 0; }
.cost-copy li { margin: 8px 0; }
.cost-copy li span { margin-left: 8px; color: var(--cream); font-weight: 900; }
.receipt {
  position: relative;
  padding: 28px 28px 22px;
  color: var(--navy);
  background: var(--cream);
  box-shadow: 9px 9px 0 var(--navy);
  font-family: "Courier New", monospace;
}
.receipt::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -10px; height: 12px;
  background: linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0 / 18px 18px, linear-gradient(45deg, transparent 50%, var(--cream) 50%) 9px 0 / 18px 18px;
}
.receipt-head,
.receipt-row { display: flex; justify-content: space-between; gap: 15px; }
.receipt-head { padding-bottom: 17px; margin-bottom: 18px; border-bottom: 4px solid var(--navy); font-size: .8rem; font-weight: 900; direction: ltr; }
.receipt-row { margin-block: 10px; font-size: .78rem; }
.paid { color: var(--wine); }
.receipt-dash { margin: 20px 0 15px; border-top: 3px dashed var(--navy); }
.receipt-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.receipt-total strong { color: var(--wine); font-size: 1.32rem; direction: rtl; }
.receipt-total small { display: block; font-size: .65rem; }
.barcode { height: 38px; margin-top: 25px; background: repeating-linear-gradient(90deg, var(--navy) 0 3px, transparent 3px 6px, var(--navy) 6px 8px, transparent 8px 12px); }

.faq { padding-top: 20px; }
.faq-list { max-width: 880px; }
.faq details { margin-bottom: 14px; border: 4px solid var(--navy); background: var(--paper); box-shadow: 5px 5px 0 rgba(15, 44, 63, .2); }
.faq summary { list-style: none; min-height: 68px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; font-weight: 900; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: monospace; font-size: 1.5rem; color: var(--wine); transition: transform .2s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 20px 19px; margin: 0; max-width: 750px; color: rgba(15, 44, 63, .78); }

.final-cta {
  margin-top: 15px;
  padding: 70px 30px;
  color: var(--cream);
  background: var(--navy);
  border: 7px solid var(--wine);
  box-shadow: 12px 12px 0 var(--wine);
  text-align: center;
}
.final-cta .chapter { margin-inline: auto; }
.final-cta p { max-width: 560px; margin: 0 auto 28px; color: rgba(253, 236, 210, .78); }
.pixel-button.cream { color: var(--wine); background: var(--cream); border-color: var(--cream); box-shadow: 5px 5px 0 var(--wine); }
.pixel-button.cream:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--wine); }
.cta-stars { color: #c84745; margin-bottom: 15px; }

.site-footer { min-height: 180px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; margin-top: 80px; border-top: 4px solid var(--navy); }
.site-footer p { margin: 0; text-align: center; font-size: .85rem; }
.site-footer > a:last-child { justify-self: end; color: var(--wine); font-size: .82rem; font-weight: 900; }

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

@media (max-width: 900px) {
  .site-header { min-height: 76px; }
  .menu-button { display: inline-flex; gap: 8px; order: -1; min-height: 38px; padding: 5px 11px; box-shadow: 3px 3px 0 var(--navy); }
  .menu-icon { width: 14px; height: 10px; border-block: 3px solid currentColor; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 67px;
    right: 0;
    left: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    color: var(--cream);
    background: var(--navy);
    border: 4px solid var(--wine);
    box-shadow: 7px 7px 0 var(--wine);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 10px; }
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 55px; }
  .hero-copy { order: 1; }
  .hero-art { max-width: 620px; margin-inline: auto; }
  .playground { grid-template-columns: 1fr; gap: 50px; }
  .cost-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-shell,
  .site-header { width: min(100% - 26px, 1180px); }
  body { font-size: 15px; background-size: 18px 18px; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 37px; height: 32px; }
  .hero { min-height: auto; padding-block: 46px 82px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-badges { display: grid; }
  .art-frame { box-shadow: 8px 8px 0 var(--wine); border-width: 4px; }
  .floating-star { display: none; }
  .features, .journey, .faq { padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 270px; padding: 26px; }
  .feature-card h3 { padding-left: 35px; }
  .mini-models { position: static; margin-top: 22px; }
  .playground { padding-block: 75px; }
  .chat-window { border-width: 4px; box-shadow: 8px 8px 0 var(--wine); }
  .chat-body { min-height: 360px; padding: 25px 15px; }
  .message { max-width: 94%; }
  .quest-line { grid-template-columns: 1fr; gap: 55px; }
  .quest-line li:not(:last-child)::after { content: "···"; top: auto; bottom: -43px; left: 50%; transform: rotate(90deg); }
  .cost-panel { gap: 40px; padding: 35px 22px; border-width: 5px; box-shadow: 8px 8px 0 var(--navy); }
  .receipt { padding-inline: 18px; }
  .receipt-total { align-items: flex-start; flex-direction: column; }
  .final-cta { padding: 55px 18px; box-shadow: 7px 7px 0 var(--wine); }
  .site-footer { grid-template-columns: 1fr; padding-block: 45px; text-align: center; }
  .footer-brand, .site-footer > a:last-child { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
