:root {
  --ink-strong: #171b2c;
  --ink-base: #343a52;
  --ink-soft: #666d86;
  --line: #d8dce8;
  --surface: #ffffff;
  --page: #f7f7f3;
  --page-alt: #fcfcfa;
  --brand: #3b4dff;
  --brand-deep: #2838b8;
  --shadow-soft: 0 10px 30px rgba(23, 27, 44, 0.05);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1040px;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Avenir Next", "Segoe UI", Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-base);
  font-family: var(--body-font);
  background: linear-gradient(180deg, var(--page-alt), var(--page));
}

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

a {
  color: inherit;
}

p,
li,
input,
textarea,
button {
  font-size: 1rem;
  line-height: 1.65;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.landing-page main {
  padding: 0 0 3rem;
}

.hero-section,
.contact-section,
.legal-main {
  position: relative;
}

.hero-section {
  width: 100vw;
  min-height: clamp(38rem, 88vh, 58rem);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #111423;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 35, 0.82) 0%, rgba(17, 20, 35, 0.64) 36%, rgba(17, 20, 35, 0.18) 68%, rgba(17, 20, 35, 0.12) 100%),
    linear-gradient(180deg, rgba(17, 20, 35, 0.18) 0%, rgba(17, 20, 35, 0.32) 100%);
  z-index: 1;
}

.hero-copy,
.hero-visual {
  grid-area: 1 / 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0;
  align-self: stretch;
}

.hero-overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: clamp(0.35rem, 1.2vw, 0.85rem);
  align-items: center;
  align-content: center;
  min-height: clamp(38rem, 88vh, 58rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.hero-copy-content,
.hero-icon-panel {
  display: flex;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 2rem);
}

.hero-copy-content {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-copy-content > * {
  max-width: 34rem;
}

.hero-store-row {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  padding: 0 2rem 0.5rem;
}

.app-store-badge {
  display: inline-flex;
  border-radius: 14px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-1px);
}

.app-store-badge img {
  width: min(315px, 100%);
  height: auto;
}

.hero-copy h1,
.section-heading h2,
.legal-header h1,
.contact-copy h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--display-font);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero-lede,
.section-heading > p,
.legal-header > p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.88);
}

.hero-points {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.hero-points p {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-icon-panel {
  align-items: center;
  justify-content: center;
}

.hero-icon-art {
  width: min(100%, 44rem);
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.22));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.back-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(59, 77, 255, 0.25);
  outline-offset: 3px;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-frame,
.contact-card,
.legal-section,
.legal-header {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-frame {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: clamp(38rem, 88vh, 58rem);
  margin: 0;
  padding: 0;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.form-hint {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-section {
  padding: 2rem 0 4rem;
}

.section-heading h2,
.legal-header h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.contact-card {
  padding: 1.75rem;
}

.contact-copy {
  background: var(--surface);
}

.contact-copy h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-copy p {
  margin: 1rem 0 0;
}

.contact-copy a {
  color: var(--brand-deep);
}

.contact-notes {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink-strong);
  font-family: inherit;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #136a49;
}

.form-status[data-state="error"] {
  color: #a12644;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin: 0;
  color: var(--ink-soft);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-copyright {
  margin: 0;
  color: var(--ink-soft);
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a,
.back-link {
  color: var(--ink-strong);
  text-decoration: none;
}

.footer-links a:hover,
.back-link:hover {
  color: var(--brand-deep);
}

.legal-page .site-shell {
  padding-top: 1.5rem;
}

.legal-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-header,
.legal-section {
  padding: 1.75rem;
}

.legal-header {
  margin-bottom: 1rem;
}

.legal-section + .legal-section {
  margin-top: 1rem;
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
  font-family: var(--display-font);
  font-size: 2rem;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 42rem;
  }

  .hero-frame {
    min-height: 42rem;
  }

  .hero-overlay {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .landing-page main {
    padding-top: 0;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .hero-copy {
    width: min(calc(100% - 1.25rem), var(--max-width));
    padding: 0;
  }

  .hero-overlay {
    grid-template-columns: 1fr;
    row-gap: 0.6rem;
    column-gap: 0;
    min-height: auto;
    padding: 1rem 0 1.25rem;
  }

  .hero-copy-content,
  .hero-icon-panel {
    min-height: auto;
  }

  .hero-copy-content > * {
    max-width: 100%;
  }

  .hero-icon-panel {
    order: 0;
    justify-content: center;
  }

  .hero-store-row {
    padding: 0 0.75rem 0;
  }

  .hero-icon-art {
    width: min(24rem, 82vw);
  }

  .section-heading h2,
  .legal-header h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-frame,
  .contact-card,
  .legal-header,
  .legal-section {
    border-radius: 20px;
  }

  .hero-frame,
  .hero-frame img {
    border-radius: 0;
  }

  .contact-card,
  .legal-header,
  .legal-section {
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 18rem;
  }

  .button {
    width: 100%;
  }

  .form-hint,
  .footer-brand,
  .footer-copyright,
  .footer-links a {
    font-size: 0.94rem;
  }

  .contact-notes {
    margin-top: 1.25rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero-section {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 17vw, 4rem);
  }

  .hero-copy {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero-lede,
  .section-heading > p,
  .legal-header > p {
    font-size: 1rem;
  }

  .hero-overlay {
    min-height: auto;
    row-gap: 0.5rem;
    column-gap: 0;
    padding: 0.75rem 0 1rem;
  }

  .hero-copy-content,
  .hero-icon-panel {
    padding: 0.75rem;
  }

  .hero-store-row {
    padding: 0 0.75rem 0;
  }

  .hero-points p {
    padding-left: 0.85rem;
  }

  .hero-frame {
    padding: 0;
    min-height: 22rem;
  }

  .hero-icon-art {
    width: min(18rem, 74vw);
  }
}
