/* Galaxy Gladiators — our robotics journey. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-bg: #fcfaff;
  --color-surface: #fff;
  --color-text-primary: #21132f;
  --color-text-secondary: #62596b;
  --color-text-muted: #766b80;
  --color-brand: #6630b3;
  --color-border: #e9e0f1;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; background: var(--color-bg); }
body { color: var(--color-text-primary); font-family: var(--font-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--color-brand); text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #894dde; outline-offset: 4px; border-radius: 3px; }
section[id] { scroll-margin-top: 100px; }
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.5rem; }
.skip-link { position: absolute; top: -80px; left: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--color-brand); color: #fff; }
.skip-link:focus { top: 1rem; }
.top-banner { padding: 0.55rem 1rem; text-align: center; font-size: 0.75rem; color: #dfd2ee; background: #21112f; }
.top-banner strong { color: #fff; }
.top-banner a { color: #d7b6ff; margin-left: 0.75rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fffffffa; border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding-block: 0.5rem; }
.brand-identity { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-emblem { display: block; flex-shrink: 0; width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #000; }
.brand-name { display: block; font-size: 1.05rem; font-weight: 800; color: var(--color-text-primary); line-height: 1.3; }
.brand-tag { font-size: 0.6875rem; color: var(--color-text-muted); }
.main-nav { display: flex; list-style: none; gap: 0.25rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 0.75rem; color: var(--color-text-secondary); text-decoration: none; font-size: 0.8125rem; font-weight: 600; border-radius: 6px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: #f4ecff; color: var(--color-brand); }
.nav-btn, .btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.25rem; border-radius: 7px; border: 1px solid var(--color-brand); font: 700 0.875rem var(--font-sans); text-decoration: none; background: var(--color-brand); color: #fff; transition: background-color 0.15s; }
.nav-btn { flex-shrink: 0; font-size: 0.8125rem; }
.nav-btn:hover, .btn-primary:hover { background: #49217f; }
.btn-secondary { color: var(--color-text-primary); border-color: #d9cde4; background: #fff; }
.btn-secondary:hover { background: #f4ecff; }
.hero { padding: 4.5rem 0; background: radial-gradient(ellipse at 90% 30%, #eee0fc 0%, transparent 60%), #fff; border-bottom: 1px solid var(--color-border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 3rem; }
.league-badge { display: inline-block; color: var(--color-brand); background: #f4edff; border: 1px solid #e3d3f8; border-radius: 30px; padding: 0.4rem 0.8rem; font-size: 0.6875rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.35rem, 4.3vw, 3.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.045em; margin-bottom: 1.5rem; }
.hero-title span { color: var(--color-brand); }
.hero-description { font-size: 1.0625rem; color: var(--color-text-secondary); line-height: 1.8; max-width: 540px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-season-note { margin-top: 2rem; color: var(--color-text-muted); font-size: 0.75rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a565f0; margin-right: 0.4rem; }
.team-feature { overflow: hidden; border: 1px solid #392545; border-radius: 16px; background: #000; box-shadow: 0 16px 45px #31124818; }
.team-feature img { display: block; width: 100%; height: auto; }
.team-feature figcaption { border-top: 1px solid #32213f; padding: 1rem 1.25rem; color: #eee6fa; font-size: 0.875rem; }
.team-feature figcaption > span:last-child { display: block; margin-top: 0.25rem; color: #bdaacc; font-size: 0.75rem; }
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--color-border); }
.section-head { max-width: 710px; margin-bottom: 2.5rem; }
.section-eyebrow { display: block; color: var(--color-brand); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.section-heading { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.25; font-weight: 800; margin-bottom: 0.8rem; }
.section-intro { font-size: 1rem; color: var(--color-text-secondary); line-height: 1.8; }
.roadmap-summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem; border: 1px solid #e4d3fa; border-radius: 10px; background: #f5edff; margin-bottom: 2rem; }
.roadmap-summary strong { font-size: 1.125rem; }
.journey-logs { display: grid; gap: 1.5rem; }
.journey-log { padding: 2rem; background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-brand); border-radius: 10px; scroll-margin-top: 145px; }
.journey-log time { color: var(--color-brand); font: 0.75rem var(--font-mono); }
.journey-log h3 { margin: 0.75rem 0; font-size: 1.5rem; line-height: 1.4; overflow-wrap: anywhere; }
.log-story { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.85; }
.log-author { font-size: 0.75rem; color: var(--color-brand); margin-bottom: 1rem; }
.logs-status { color: var(--color-text-secondary); font-size: 0.9375rem; margin-bottom: 1rem; }
.roadmap-summary { margin-top: 2rem; }
#retryLogs { cursor: pointer; }
.roadmap-summary p { color: var(--color-text-secondary); font-size: 0.8125rem; }
.milestones-stream { display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.milestones-stream::before { content: ''; position: absolute; top: 1rem; bottom: 1rem; left: 21px; width: 1px; background: #d7c6e8; }
.milestone-entry { display: flex; gap: 1.5rem; position: relative; }
.milestone-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #d3b6ec; border-radius: 50%; color: var(--color-brand); background: var(--color-bg); font: 0.8125rem var(--font-mono); z-index: 1; }
.milestone-content { flex: 1; min-width: 0; padding: 1.5rem 1.75rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.milestone-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; color: var(--color-brand); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stage-status { padding: 0.15rem 0.55rem; border-radius: 20px; background: #f2ebfa; color: #63339b; font-size: 0.6875rem; text-transform: none; letter-spacing: 0; }
.milestone-title { font-size: 1.125rem; line-height: 1.4; margin-bottom: 0.5rem; }
.milestone-text { color: var(--color-text-secondary); font-size: 0.9375rem; }
#roster { background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.team-card { padding: 1.75rem 1.25rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fcfaff; }
.avatar-badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; color: #6630b3; background: #ece0fa; font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; }
.team-card:nth-child(2) .avatar-badge { background: #f1e1ef; color: #863977; }
.team-card:nth-child(3) .avatar-badge { background: #e4e3fa; color: #5147a6; }
.team-card:nth-child(4) .avatar-badge { background: #e8d9f4; color: #62358a; }
.team-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.team-card p { font-size: 0.75rem; color: var(--color-text-muted); }
.placeholder-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-placeholder-card { min-height: 225px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; border: 1px dashed #ccbadf; border-radius: 12px; color: #a78abb; text-align: center; background: #f5f0fa; }
.gallery-placeholder-card svg { margin-bottom: 1rem; }
.gallery-placeholder-card strong { color: #5e4a6f; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.gallery-placeholder-card span { color: var(--color-text-muted); font-size: 0.75rem; }
.nrl-section { background: #f4eef9; }
.nrl-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.nrl-overview-card { padding: 1.75rem; background: #fff; border: 1px solid #e5dcee; border-radius: 12px; }
.card-number { font: 0.6875rem var(--font-mono); color: var(--color-brand); letter-spacing: 0.05em; }
.nrl-overview-card h3 { margin: 1rem 0 0.65rem; font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.02em; }
.nrl-overview-card p { color: var(--color-text-secondary); font-size: 0.875rem; }
.source-note { margin-top: 1.25rem; font-size: 0.75rem; color: var(--color-text-secondary); }
.site-footer { padding: 3rem 0 1.5rem; background: #21112f; font-size: 0.8125rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid #443050; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: #d9c9e8; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: 0.75rem; color: #b4a3c4; }
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; }
  .header-inner nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .main-nav { justify-content: center; }
  section[id] { scroll-margin-top: 145px; }
  .hero-grid { gap: 2rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-grid, .nrl-overview-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
  .section { padding: 3rem 0; }
  .team-feature { max-width: 400px; width: 100%; justify-self: center; }
  .roadmap-summary { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .placeholder-gallery-grid { grid-template-columns: 1fr; }
  .gallery-placeholder-card { min-height: 190px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .header-inner { gap: 0.5rem; }
  .brand-identity { gap: 0.5rem; min-width: 0; }
  .brand-emblem { width: 44px; height: 44px; }
  .brand-name { font-size: 0.875rem; }
  .brand-tag { font-size: 0.625rem; }
  .nav-btn { display: none; }
  .main-nav { justify-content: flex-start; }
  .nav-link { padding-inline: 0.6rem; }
  .milestone-entry { gap: 0.75rem; }
  .milestone-content { padding: 1rem; }
  .milestone-title { font-size: 1rem; }
  .milestone-text { font-size: 0.875rem; }
  .team-grid { gap: 0.75rem; }
  .team-card { padding: 1.25rem 1rem; }
  .team-card h3 { font-size: 0.875rem; }
  .hero-title { font-size: clamp(2rem, 8.7vw, 2.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
