@font-face {
  font-family: "PapyrusWeb";
  src: url("assets/fonts/papyrus.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #070203;
  --bg-soft: #130508;
  --panel: rgba(28, 8, 12, 0.72);
  --panel-strong: rgba(34, 10, 15, 0.9);
  --line: rgba(255, 197, 197, 0.22);
  --ink: #fceaea;
  --muted: #d7b4b4;
  --accent: #ff5d66;
  --accent-soft: #ffcfd2;
  --radius: 24px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Papyrus", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0.01em;
  line-height: 1.5;
  background:
    radial-gradient(1100px 640px at 12% -10%, rgba(255, 62, 88, 0.26), transparent 70%),
    radial-gradient(900px 540px at 90% 10%, rgba(187, 20, 41, 0.2), transparent 70%),
    linear-gradient(180deg, #120407 0%, var(--bg) 70%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -6% -10% auto -10%;
  height: min(90vh, 760px);
  background:
    linear-gradient(180deg, rgba(14, 3, 7, 0.25), rgba(8, 2, 3, 0.92) 75%),
    url("assets/images/hero-launch.jpg") center 12% / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: -2;
  animation: ambient-pan 24s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/images/spiral.png") center center / 780px no-repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  font-family: "PapyrusWeb", "Papyrus", "Iowan Old Style", serif;
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  color: var(--accent-soft);
  letter-spacing: 0.03em;
}

.brand-mark-the {
  font-size: calc(0.58em + 2pt);
  letter-spacing: 0.08em;
}

.brand-mark-main {
  font-size: 1em;
}

.site-nav {
  margin-left: auto;
  margin-right: 0;
  display: flex;
  gap: 6px;
}

.site-nav a {
  font-family: "Papyrus", "Iowan Old Style", serif;
  text-decoration: none;
  font-size: 0.9rem;
  color: #f0d0d0;
  padding: 0.58rem 0.72rem 0.34rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 197, 0.14);
  background: rgba(255, 234, 234, 0.03);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 221, 221, 0.05);
}

.badge-link {
  display: inline-flex;
  transition: transform 180ms ease, filter 180ms ease;
}

.badge-link:hover,
.badge-link:focus-visible {
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.34));
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 88px auto;
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 34px;
  align-items: center;
  margin-top: clamp(44px, 7vw, 82px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.77rem;
}

#story .eyebrow,
#download .eyebrow {
  margin-bottom: 20px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: "PapyrusWeb", "Papyrus", "Iowan Old Style", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  color: #fff4f4;
}

h2 {
  font-size: clamp(1.38rem, 3.2vw, 2.35rem);
  color: #ffe0e0;
}

h3 {
  font-size: clamp(1.14rem, 2.3vw, 1.34rem);
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1;
  color: #f2d7d7;
  padding: 0.74rem 0.9rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 197, 0.24);
  background: rgba(255, 221, 221, 0.04);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
  color: #fff1f1;
  border-color: rgba(255, 205, 205, 0.46);
  background: rgba(255, 221, 221, 0.1);
  transform: translateY(-1px);
}

.hero-social-link svg {
  width: 1.02rem;
  height: 1.02rem;
  position: relative;
  top: -1pt;
}

.hero-meta {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta li {
  padding: 0.56rem 0.78rem 0.34rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 221, 221, 0.06);
  font-size: 0.86rem;
  color: #f4cece;
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.phone-frame {
  position: relative;
  margin-inline: auto;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 220, 0.3);
  box-shadow: var(--shadow);
  background: #100306;
  width: min(100%, 560px);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center 16%;
}

.section-header {
  margin-bottom: 20px;
}

.section-header .supporting {
  margin-top: 10px;
  color: var(--muted);
}

.story {
  padding: 26px 26px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

blockquote {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 128, 140, 0.09);
  border-radius: 0 14px 14px 0;
  color: #ffe5e5;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.teaser-grid {
  --teaser-card-size: clamp(88px, 27vw, 260px);
  display: grid;
  grid-template-columns: repeat(3, var(--teaser-card-size));
  justify-content: center;
  gap: clamp(8px, 1.3vw, 14px);
  align-items: stretch;
}

.teaser {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 200, 0.34);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.34) 84%),
    var(--img) center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 90% at 16% 14%, rgba(255, 188, 188, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(16, 2, 5, 0), rgba(16, 2, 5, 0.42));
}

.teaser h3 {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  z-index: 1;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  line-height: 1.18;
}

.teaser:hover,
.teaser:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 214, 0.6);
  filter: saturate(1.14);
}

.cta {
  text-align: center;
  padding: clamp(26px, 6vw, 42px) clamp(26px, 6vw, 42px) clamp(36px, 7vw, 54px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 215, 0.36);
  background:
    linear-gradient(135deg, rgba(95, 9, 20, 0.56), rgba(32, 5, 9, 0.9)),
    url("assets/images/hero-launch.jpg") center 12% / cover no-repeat;
  box-shadow: var(--shadow);
}

.cta p {
  margin: 12px auto 0;
  max-width: 56ch;
  color: #f5d2d2;
}

.cta .badge-link {
  margin-top: 18px;
}

.faq {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #ffe4e4;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 1rem 1rem;
}

summary .question-label {
  position: relative;
  top: 1pt;
}

summary::before {
  content: "▸";
  position: relative;
  top: 2pt;
  line-height: 1;
}

details[open] summary::before {
  content: "▾";
}

details[open] summary {
  padding-bottom: 0.65rem;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem 2.2rem;
  color: var(--muted);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  color: #d0a8a8;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(1rem + 2pt);
  height: calc(1rem + 2pt);
  line-height: 1;
  color: #d9b3b3;
  position: relative;
  top: calc(-2px - 1pt);
}

.social-link:hover,
.social-link:focus-visible {
  color: #f0d0d0;
}

.social-link svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 6px;
  }

  .site-footer p:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer p:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer p:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .site-footer p:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambient-pan {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-16px);
  }
}

@media (max-width: 980px) {
  .site-nav {
    margin-left: auto;
  }

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

  .phone-frame {
    max-width: 480px;
  }

  .steps,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: hidden;
    padding-bottom: 2px;
    gap: 4px;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.48rem 0.4rem 0.28rem;
  }

  .brand-mark {
    border-right: 0;
    padding-right: 0;
  }

  .section {
    margin: 62px auto;
  }

  .story {
    padding: 20px;
  }

  .steps,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .teaser h3 {
    left: 7px;
    right: 7px;
    bottom: 7px;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
