@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm_plex_sans/IBMPlexSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm_plex_sans/IBMPlexSans-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm_plex_sans/IBMPlexSans-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm_plex_sans/IBMPlexSans-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("assets/fonts/ibm_plex_sans/IBMPlexSans-Bold.ttf") format("truetype");
}

:root {
  color-scheme: dark;

  --apollo-navy: #172038;
  --apollo-deep-blue: #253a5e;
  --apollo-steel: #3c5e8b;
  --apollo-sky: #73bed3;
  --apollo-ice: #a4dddb;
  --apollo-leaf: #75a743;
  --apollo-gold: #de9e41;
  --apollo-honey: #e8c170;
  --apollo-crimson: #752438;
  --apollo-red: #a53030;
  --apollo-orange: #cf573c;
  --apollo-black: #090a14;
  --apollo-charcoal: #10141f;
  --apollo-dark-gray: #151d28;
  --apollo-gunmetal: #202e37;
  --apollo-slate: #394a50;
  --apollo-silver: #819796;
  --apollo-ash: #a8b5b2;
  --apollo-mist: #d9deda;
  --apollo-white: #ebede9;

  --bg: var(--apollo-black);
  --panel: var(--apollo-charcoal);
  --panel-strong: var(--apollo-gunmetal);
  --text: var(--apollo-white);
  --muted: var(--apollo-ash);
  --soft: var(--apollo-silver);
  --line: var(--apollo-slate);
  --red: var(--apollo-red);
  --amber: var(--apollo-gold);
  --sky: var(--apollo-sky);
  --green: var(--apollo-leaf);
  --max: 1040px;
  --page-gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(165, 48, 48, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--apollo-navy) 0%, var(--apollo-charcoal) 42rem);
  color: var(--text);
  font-family:
    "IBM Plex Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 650;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 48px;
  min-height: 68vh;
  padding: 72px 0 64px;
}

.hero-copy {
  container-type: inline-size;
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 12vw, 6.75rem);
  margin: 0;
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: 2.8rem;
  overflow-wrap: normal;
  white-space: nowrap;
}

@supports (font-size: 1cqw) {
  .hero h1 {
    font-size: clamp(2.35rem, 15cqw, 6.25rem);
  }
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  max-width: 760px;
}

.store-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background: var(--red);
  color: var(--apollo-white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.hero-visual {
  align-items: center;
  background:
    linear-gradient(140deg, rgba(165, 48, 48, 0.3), rgba(79, 143, 186, 0.2)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 320px;
}

.hero-visual img {
  border-radius: 28px;
  max-width: 74%;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.34));
}

.content-section,
.legal-section {
  background: rgba(24, 26, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 24px;
  overflow-wrap: anywhere;
}

.feature-band {
  margin-bottom: 54px;
  margin-top: 54px;
}

.section-heading {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

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

.feature-card {
  background: var(--apollo-charcoal);
  border: 1px solid rgba(217, 222, 218, 0.14);
  border-radius: 8px;
  min-width: 0;
  padding: 20px;
}

.feature-card img,
.feature-icon-text {
  align-items: center;
  background: rgba(235, 237, 233, 0.08);
  border: 1px solid rgba(217, 222, 218, 0.14);
  border-radius: 8px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px;
  width: 52px;
}

.feature-icon-text {
  color: var(--apollo-honey);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.feature-card p,
.mode-card p,
.legal-section p {
  color: var(--muted);
}

.satire-notice {
  background:
    linear-gradient(135deg, rgba(222, 158, 65, 0.15), rgba(117, 36, 56, 0.18)),
    rgba(24, 26, 31, 0.82);
  border: 1px solid rgba(222, 158, 65, 0.36);
  border-radius: 8px;
  margin-bottom: 18px;
  max-width: none;
  overflow-wrap: anywhere;
  padding: 24px;
  width: 100%;
}

.satire-notice h2 {
  color: var(--apollo-honey);
}

.satire-notice p {
  color: var(--muted);
}

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

.mode-card {
  background: rgba(235, 237, 233, 0.06);
  border: 1px solid rgba(217, 222, 218, 0.12);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}

.page {
  padding: 56px 0 32px;
}

.compact-page {
  min-height: 60vh;
}

.page-header {
  margin-bottom: 28px;
  max-width: 820px;
}

.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 18px;
}

.legal-section {
  max-width: 860px;
}

.personal-message {
  background:
    linear-gradient(135deg, rgba(223, 132, 165, 0.45), rgba(198, 81, 151, 0.28)),
    rgba(65, 29, 49, 0.96);
  border: 1px solid rgba(235, 237, 233, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  margin-bottom: 18px;
  max-width: 860px;
  padding: 24px;
  overflow-wrap: anywhere;
}

.personal-message p {
  color: rgba(235, 237, 233, 0.9);
}

.personal-mail-button {
  align-items: center;
  background: rgba(235, 237, 233, 0.15);
  border: 1px solid rgba(235, 237, 233, 0.18);
  border-radius: 8px;
  color: var(--apollo-white);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.personal-mail-button:hover,
.personal-mail-button:focus-visible {
  background: rgba(235, 237, 233, 0.22);
  outline: 2px solid var(--apollo-white);
  outline-offset: 3px;
}

.license-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.license-item {
  background: rgba(24, 26, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 24px;
  overflow-wrap: anywhere;
}

.license-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.text-link {
  color: var(--sky);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.updated {
  color: var(--soft);
  font-size: 0.95rem;
  margin-top: 18px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-start;
  margin-top: 64px;
  padding: 24px 0 36px;
}

.trademark-note {
  flex: 1 1 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 10px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 10px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    margin-inline: calc(var(--page-gutter) * -1);
    max-width: calc(100% + (var(--page-gutter) * 2));
    overflow-x: auto;
    padding: 0 var(--page-gutter) 8px;
    scroll-padding-inline: var(--page-gutter);
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.9rem;
    padding-inline: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 28px 0 34px;
  }

  .lead {
    font-size: 1.06rem;
  }

  .hero-visual {
    min-height: 190px;
  }

  .hero-visual img {
    max-width: 148px;
  }

  .content-section,
  .satire-notice,
  .personal-message,
  .license-item,
  .legal-section {
    padding: 20px;
  }

  .feature-band {
    margin-bottom: 42px;
    margin-top: 42px;
  }

  .feature-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 42px;
  }
}

@media (max-width: 380px) {
  .store-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .personal-mail-button,
  .site-nav a,
  .site-footer a {
    transition: background-color 160ms ease, border-color 160ms ease,
      color 160ms ease, filter 160ms ease;
  }
}
