:root {
  color-scheme: dark;
  --ink: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.74);
  --dim: rgba(247, 242, 232, 0.56);
  --line: rgba(247, 242, 232, 0.18);
  --panel: rgba(6, 8, 11, 0.72);
  --panel-strong: rgba(6, 8, 11, 0.9);
  --gold: #dfc37f;
  --aqua: #64dce8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050607;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #050607;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background: url("../media/fallback-scene-01.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 18% 22%, rgba(223, 195, 127, 0.18), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(100, 220, 232, 0.13), transparent 26%);
}

body::selection {
  color: #050607;
  background: var(--aqua);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(247, 242, 232, 0.08);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.62));
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 242, 232, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94) url("../media/logo-am360.png") center / contain no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.brand-text {
  display: grid;
  gap: 0.04rem;
}

.brand-text strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 8, 11, 0.52);
}

.nav a,
.footer-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(247, 242, 232, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.page-hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading {
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  max-width: 10ch;
  margin: 0;
  color: #fffaf0;
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  width: min(680px, 100%);
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.credit-card {
  min-height: 220px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.credit-card h3,
.privacy-document h2,
.privacy-document h3 {
  margin: 0;
  color: #fffaf0;
  line-height: 1.2;
}

.credit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.credit-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.privacy-content-section {
  padding-top: 0;
}

.privacy-document {
  width: min(980px, 100%);
  padding: clamp(1.25rem, 4vw, 3rem);
  margin-inline: auto;
  background: var(--panel-strong);
}

.privacy-document h2 {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  color: var(--gold);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.privacy-document h2:first-child,
.privacy-document h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.privacy-document h3 {
  margin-top: 1.25rem;
  color: #fffaf0;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.privacy-document p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.privacy-document a,
.credit-card a {
  color: var(--aqua);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer {
  border-top: 1px solid rgba(247, 242, 232, 0.1);
  background: rgba(5, 6, 7, 0.76);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 0 1.4rem;
}

.footer strong {
  display: block;
  line-height: 1.2;
}

.footer p {
  margin: 0.25rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

@media (max-width: 860px) {
  .header {
    position: relative;
    backdrop-filter: none;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 0;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .page-hero {
    padding-top: 3rem;
  }

  .page-title {
    max-width: 11ch;
    font-size: clamp(2.65rem, 15vw, 4.8rem);
  }

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

  .credit-card {
    min-height: 0;
  }

  .panel {
    backdrop-filter: none;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 1.3rem, 1120px);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    gap: 0.2rem;
    padding: 0.25rem;
  }

  .nav a,
  .footer-link {
    min-height: 36px;
    font-size: 0.72rem;
  }

  .lead,
  .privacy-document p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .privacy-document {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
