/* Star Trek Fleet Command — startrek.energydriveco.com
   deep navy + neon green CTAs; colored feature glows
*/

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Exo2-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Exo2-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Exo2-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/SourceSans3-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/SourceSans3-Bold.woff2") format("woff2");
}

:root {
  --bg: #050810;
  --bg-panel: #0a1428;
  --bg-elev: #0d1a30;
  --border: #1e3a5f;
  --text: #eef4ff;
  --text-muted: #8fa3c0;
  --green: #00e676;
  --green-hi: #3dff9a;
  --blue-glow: #2b8cff;
  --orange-glow: #ff8a3d;
  --purple-glow: #b44dff;
  --focus: #3dff9a;
  --font-d: "Exo 2", sans-serif;
  --font-b: "Source Sans 3", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
  --ease: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-hi);
  text-decoration: none;
}
a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--green);
  color: #041208;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.85), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-desktop a {
  color: var(--text);
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-desktop a:hover {
  color: var(--green-hi);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #041208 !important;
  background: var(--green);
  border: 1px solid var(--green-hi);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.4);
  cursor: pointer;
  transition: filter var(--ease), box-shadow var(--ease);
}
.btn-play:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.55);
}
.btn-play--lg {
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.btn-menu .icon-close {
  display: none;
}
.btn-menu[aria-expanded="true"] .icon-open {
  display: none;
}
.btn-menu[aria-expanded="true"] .icon-close {
  display: block;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .btn-menu {
    display: none;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--ease);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
}
.nav-drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.nav-mobile {
  display: flex;
  flex-direction: column;
}
.nav-mobile a {
  display: block;
  padding: 0.9rem 0.5rem;
  color: var(--text);
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
body.nav-open {
  overflow: hidden;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.is-ready {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 16, 0.94) 0%,
    rgba(5, 8, 16, 0.75) 40%,
    rgba(5, 8, 16, 0.3) 72%,
    rgba(5, 8, 16, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  max-width: 38rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 80, 160, 0.5);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.875rem;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.platforms {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.hero-perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-perks svg {
  color: var(--green);
  flex-shrink: 0;
}

/* officers */
.section {
  padding: 5rem 0;
}

.section-officers {
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(43, 140, 255, 0.08), transparent 60%),
    var(--bg);
}

.off-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .off-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.off-copy h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin-bottom: 1rem;
  color: #fff;
}

.off-copy p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.off-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.off-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.off-list svg {
  color: var(--green);
}

.off-panel {
  background: rgba(10, 20, 40, 0.9);
  border: 1px solid rgba(43, 140, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.08),
    0 0 40px rgba(43, 140, 255, 0.15),
    inset 0 0 50px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .off-panel {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 1.5rem;
  }
}

.off-featured {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #060c18;
  border: 1px solid var(--border);
}
.off-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.off-rarity {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--orange-glow);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.off-stats h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.off-blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.stat-row strong {
  color: var(--text);
}

.xp-track {
  height: 6px;
  background: #1a2a44;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #148f4a, var(--green));
  transition: width 0.35s ease;
}

.attr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.attr-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 0.55rem 0.4rem;
  text-align: center;
}
.attr-box span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-d);
}
.attr-box strong {
  font-size: 1.1rem;
  color: var(--green-hi);
}

.off-skills {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.off-skills li {
  margin-bottom: 0.4rem;
}
.off-skills strong {
  color: var(--blue-glow);
  display: block;
  font-family: var(--font-d);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.off-portraits {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.off-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #060c18;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.off-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.off-thumb.is-active,
.off-thumb:hover {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.4);
}

.off-view-all {
  grid-column: 1 / -1;
  justify-self: start;
}

/* features */
.section-features {
  background: linear-gradient(180deg, #060b14 0%, #0a1220 100%);
  text-align: center;
}

.section-features h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.4rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  text-align: left;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .feat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feat-card {
  background: rgba(10, 20, 40, 0.85);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.feat-card--blue {
  box-shadow: 0 0 0 1px rgba(43, 140, 255, 0.15);
}
.feat-card--blue:hover {
  border-color: var(--blue-glow);
  box-shadow: 0 0 28px rgba(43, 140, 255, 0.35);
}
.feat-card--orange {
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.12);
}
.feat-card--orange:hover {
  border-color: var(--orange-glow);
  box-shadow: 0 0 28px rgba(255, 138, 61, 0.3);
}
.feat-card--green {
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.12);
}
.feat-card--green:hover {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.3);
}
.feat-card--purple {
  box-shadow: 0 0 0 1px rgba(180, 77, 255, 0.12);
}
.feat-card--purple:hover {
  border-color: var(--purple-glow);
  box-shadow: 0 0 28px rgba(180, 77, 255, 0.3);
}

.feat-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-card-body {
  padding: 1.1rem 1.15rem 1.35rem;
}
.feat-card-body h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.feat-card--blue h3 svg {
  color: var(--blue-glow);
}
.feat-card--orange h3 svg {
  color: var(--orange-glow);
}
.feat-card--green h3 svg {
  color: var(--green);
}
.feat-card--purple h3 svg {
  color: var(--purple-glow);
}
.feat-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* final */
.final-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.final-cta-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.final-cta-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: scale(1.08);
}
.final-cta-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.55) 0%,
    rgba(5, 8, 16, 0.4) 45%,
    rgba(5, 8, 16, 0.78) 100%
  );
}
.final-cta-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
}
.final-cta h2 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  color: #fff;
  margin-bottom: 0.65rem;
}
.final-sub {
  font-family: var(--font-d);
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ec8ff;
  margin-bottom: 1.75rem;
}

.site-footer {
  background: #03060c;
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-d);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a:hover {
  color: var(--green-hi);
}
.footer-meta {
  color: #7487a0;
  font-size: 0.8rem;
  max-width: 50rem;
  line-height: 1.55;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 40rem;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-video {
    display: none !important;
  }
  .final-cta-media img {
    transform: none !important;
  }
}
