:root {
  --bg: #06102f;
  --bg-soft: #0c1741;
  --panel: rgba(10, 22, 64, 0.78);
  --panel-strong: #0f1c50;
  --panel-light: rgba(222, 231, 255, 0.1);
  --text: #eef3ff;
  --muted: #a6b3da;
  --line: rgba(177, 196, 255, 0.18);
  --brand: #3c6cff;
  --brand-2: #87a8ff;
  --brand-3: #dfe8ff;
  --accent: #152760;
  --success: #5ed4a8;
  --warning: #ffd27d;
  --shadow: 0 28px 80px rgba(2, 8, 28, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(60, 108, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #071131 0%, #091538 40%, #06102f 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(130deg, transparent 0%, rgba(86, 118, 255, 0.08) 49.5%, transparent 50%),
    linear-gradient(130deg, transparent 0%, rgba(86, 118, 255, 0.04) 49.5%, transparent 50%);
  background-size: 780px 780px, 980px 980px;
  background-position: -180px -220px, 50% 0;
  opacity: 0.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 30, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.97rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.button,
.ghost-button,
.store-button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button,
.nav-cta {
  color: #05102f;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  box-shadow: 0 18px 40px rgba(60, 108, 255, 0.35);
}

.button:hover,
.ghost-button:hover,
.store-button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.store-button {
  min-width: 190px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.store-button strong {
  display: block;
  font-size: 1rem;
}

.store-button span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.page-hero,
.page-section {
  padding: 44px 0;
}

.hero-grid,
.split-layout,
.contact-layout,
.download-layout {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  min-height: calc(100vh - 86px);
  padding: 40px 0 56px;
  align-items: center;
}

.hero-copy,
.hero-media,
.panel,
.legal-panel,
.info-card,
.story-card,
.principle-card,
.step-card,
.form-card,
.contact-card,
.requirements-card,
.faq-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
}

.hero-media {
  overflow: hidden;
  min-height: 540px;
  position: relative;
}

.hero-media img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.media-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(6, 16, 47, 0.9));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(135, 168, 255, 0.12);
  color: var(--brand-3);
  border: 1px solid rgba(170, 192, 255, 0.18);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero h1,
.section-title,
.legal-panel h1,
.legal-panel h2,
.about-h5 h1,
.about-h5 h2 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 11ch;
}

.lead,
.section-intro,
.legal-meta,
.about-h5 p,
.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.stat-row,
.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-row {
  margin-top: 30px;
}

.stat {
  flex: 1 1 170px;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 1.48rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.floating-note {
  position: absolute;
  right: 26px;
  bottom: 24px;
  max-width: 320px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(223, 232, 255, 0.18);
  background: rgba(8, 18, 52, 0.8);
  backdrop-filter: blur(12px);
}

.floating-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

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

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

.info-card,
.story-card,
.principle-card,
.step-card,
.requirements-card,
.faq-card,
.contact-card {
  padding: 24px;
}

.card-kicker,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(60, 108, 255, 0.18);
  color: var(--brand-3);
  font-weight: 700;
  margin-bottom: 14px;
}

.info-card h3,
.story-card h3,
.principle-card h3,
.step-card h3,
.requirements-card h3,
.contact-card h3,
.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.info-card p,
.story-card p,
.principle-card p,
.step-card p,
.requirements-card p,
.contact-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.split-layout,
.download-layout {
  grid-template-columns: 1fr 1fr;
}

.contact-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 49, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.band {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(12, 23, 65, 0.95), rgba(18, 36, 94, 0.7));
  box-shadow: var(--shadow);
}

.band strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.band p,
.band li {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.band ul,
.legal-panel ul,
.legal-panel ol,
.about-h5 ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-wrap {
  padding: 52px 0 70px;
}

.legal-panel {
  padding: 34px;
}

.legal-panel + .legal-panel {
  margin-top: 22px;
}

.legal-meta {
  margin-top: 14px;
}

.legal-highlight {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

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

.form-card {
  padding: 32px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(185, 200, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.field textarea {
  min-height: 152px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(135, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(135, 168, 255, 0.14);
}

.checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.form-feedback.success {
  display: block;
  background: rgba(94, 212, 168, 0.12);
  border-color: rgba(94, 212, 168, 0.28);
  color: #cffff1;
}

.form-feedback.error {
  display: block;
  background: rgba(255, 96, 96, 0.12);
  border-color: rgba(255, 96, 96, 0.28);
  color: #ffd0d0;
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.footer-meta {
  max-width: 460px;
}

.footer-meta p,
.footer-links a,
.footer-links span {
  color: var(--muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

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

.about-h5 {
  padding: 22px 18px 40px;
}

.about-h5 .mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.about-h5 .mobile-brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.about-h5 .mobile-hero-image {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  margin: 24px 0;
}

.about-h5 .mobile-hero-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-h5 .mobile-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .contact-layout,
  .download-layout,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero-media,
  .media-card {
    min-height: 420px;
  }

  .page-hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-wrap {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(4, 10, 30, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .nav-wrap {
    display: flex;
  }

  .nav-links,
  .footer-links,
  .form-grid,
  .grid-2,
  .grid-3,
  .legal-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: flex;
    gap: 12px;
  }

  .header-inner {
    min-height: 78px;
  }

  .hero-copy,
  .legal-panel,
  .form-card {
    padding: 26px;
  }

  .page-section,
  .page-hero {
    padding: 30px 0;
  }

  .floating-note {
    position: static;
    margin: 18px;
  }
}
