:root {
  --bg: #05070b;
  --panel: rgba(9, 15, 24, 0.86);
  --panel-strong: rgba(13, 22, 34, 0.95);
  --line: rgba(130, 205, 255, 0.22);
  --line-strong: rgba(122, 224, 255, 0.5);
  --text: #eef6ff;
  --muted: #9fb1c3;
  --cyan: #35dfff;
  --blue: #2f8cff;
  --gold: #f6c85f;
  --danger: #ff5f73;
  --success: #51f0a5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.3), var(--bg) 76%),
    radial-gradient(circle at 18% 12%, rgba(44, 140, 255, 0.24), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(246, 200, 95, 0.12), transparent 20%),
    #05070b;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(4, 7, 12, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-link,
.main-nav {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  color: var(--cyan);
}

.main-nav .nav-cta {
  color: #06101a;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-section {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: flex;
  align-items: center;
  padding: clamp(90px, 14vw, 170px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("/images/ace-of-athena-hero.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.52) 52%, rgba(5, 7, 11, 0.75)),
    linear-gradient(180deg, rgba(5, 7, 11, 0.1), var(--bg));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.9);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

.hero-copy,
.page-hero p,
.split-section p,
.download-panel p,
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #a6f6ff);
  box-shadow: 0 12px 38px rgba(53, 223, 255, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn:hover {
  transform: translateY(-1px);
}

.status-strip,
.section-shell,
.final-cta,
.auth-grid,
.download-panel {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -48px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.status-strip > div {
  min-height: 92px;
  padding: 22px;
  background: rgba(8, 15, 24, 0.94);
}

.status-strip strong,
.status-strip small {
  display: block;
}

.status-strip strong {
  margin-bottom: 8px;
  text-transform: uppercase;
}

.status-strip small {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
}

.section-shell {
  padding: clamp(62px, 9vw, 110px) 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.operator-art {
  justify-self: center;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.7));
}

.feature-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.feature-list span {
  padding: 10px 12px;
  color: var(--cyan);
  background: rgba(53, 223, 255, 0.08);
  border: 1px solid rgba(53, 223, 255, 0.25);
  font-weight: 700;
}

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

.gear-grid,
.news-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gear-card,
.news-card,
.step-grid article,
.auth-panel,
.register-aside,
.download-panel,
.requirements {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gear-card,
.news-card,
.step-grid article {
  min-height: 190px;
  padding: 24px;
}

.gear-card span,
.news-card span,
.step-grid span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gear-card p,
.news-card p,
.step-grid p {
  color: var(--muted);
  line-height: 1.6;
}

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

.final-cta {
  margin-bottom: 80px;
  padding: clamp(38px, 7vw, 70px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(53, 223, 255, 0.14), rgba(246, 200, 95, 0.08)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.final-cta .hero-actions {
  justify-content: center;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(62px, 10vw, 110px) 0 36px;
}

.page-hero.compact h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.auth-grid,
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 90px;
}

.auth-panel,
.register-aside,
.download-panel > div {
  padding: clamp(24px, 4vw, 38px);
}

.auth-panel label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(3, 7, 12, 0.9);
  border: 1px solid var(--line);
  outline: none;
}

.auth-panel input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 223, 255, 0.14);
}

.auth-panel .btn {
  width: 100%;
  margin-top: 22px;
}

.auth-message {
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid;
  line-height: 1.5;
}

.auth-error {
  color: #ffdbe1;
  background: rgba(255, 95, 115, 0.14);
  border-color: rgba(255, 95, 115, 0.48);
}

.auth-success {
  color: #d9ffec;
  background: rgba(81, 240, 165, 0.14);
  border-color: rgba(81, 240, 165, 0.48);
}

.register-aside {
  background:
    linear-gradient(180deg, rgba(53, 223, 255, 0.08), transparent 55%),
    var(--panel);
}

.aside-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 18px;
}

.register-aside li,
.requirements li {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.text-link {
  color: var(--cyan);
  font-weight: 900;
}

.download-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  background:
    linear-gradient(135deg, rgba(53, 223, 255, 0.12), rgba(246, 200, 95, 0.08)),
    var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.requirements {
  box-shadow: none;
  background: rgba(4, 8, 14, 0.54);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 12, 0.9);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .status-strip,
  .split-section,
  .auth-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .hero-section {
    min-height: 680px;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.42), rgba(5, 7, 11, 0.97) 68%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.58));
  }

  .hero-actions,
  .final-cta .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .gear-grid,
  .news-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }
}
