/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
body {
  min-height: 100vh;
  background: #0A0E17;
  color: #F5F7FA;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: #00E5FF; text-decoration: none; }
a:hover { color: #FF3D00; }
ul[class], ol[class] { list-style: none; padding: 0; }
.container { width: min(1280px, 92%); margin-inline: auto; }

:root {
  --bg-deep: #0A0E17;
  --bg-card: #141A24;
  --bg-elevated: #1B2330;
  --cyan: #00E5FF;
  --red: #FF3D00;
  --silver: #C0C0C0;
  --text-light: #F5F7FA;
  --text-mid: #A0A8B4;
  --grad-blue: linear-gradient(135deg, #00E5FF, #6A5AFF);
  --grad-red: linear-gradient(135deg, #FF3D00, #FF8A00);
  --trans-blue: rgba(0, 229, 255, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --header-h: 76px;
  --transition: 0.3s ease;
  --shadow-cyan: 0 8px 30px rgba(0, 229, 255, 0.18);
  --shadow-red: 0 8px 30px rgba(255, 61, 0, 0.22);
  --skew-angle: -8deg;
}
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 61, 0, 0.55); color: #fff; }

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  transform: translateY(-200%);
  background: var(--cyan);
  color: #0A0E17;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ===== Header ===== */
.site-header__wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.25);
}
.site-header__inner {
  width: min(1360px, 94%);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-lockup__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #0A0E17;
  background: linear-gradient(135deg, #00E5FF 0%, #6A5AFF 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-lockup__text { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-lockup__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text-light); text-transform: uppercase; }
.brand-lockup__sub { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav__link:hover { color: var(--text-light); background: rgba(0, 229, 255, 0.12); }
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: var(--trans-blue);
  font-weight: 700;
}

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(192, 192, 192, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(0, 229, 255, 0.1); }
.nav-toggle__bar { width: 20px; height: 2px; background: var(--text-light); transition: transform 0.3s ease, opacity 0.3s ease; }

/* ===== Buttons ===== */
.btn {
  --bg: var(--cyan);
  --fg: #0A0E17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.btn--compact { padding: 10px 20px; font-size: 0.9rem; }
.btn--primary { background: linear-gradient(135deg, #FF3D00, #FF8A00); color: #fff; box-shadow: 0 4px 16px rgba(255, 61, 0, 0.28); }
.btn--primary:hover { box-shadow: var(--shadow-red); }
.btn--ghost { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.btn--ghost:hover { background: rgba(0, 229, 255, 0.1); }
.btn--lg { padding: 16px 38px; font-size: 1.1rem; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0A0E17 0%, #101722 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.25);
  clip-path: polygon(0 72px, 8% 40px, 100% 64px, 100% 100%, 0 100%);
  padding-top: 96px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF3D00, #00E5FF, #6A5AFF);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.brand-lockup--footer .brand-lockup__mark { width: 52px; height: 52px; }
.site-footer__trust { color: var(--text-mid); font-size: 1rem; max-width: 32ch; line-height: 1.6; }
.site-footer__info { display: flex; flex-direction: column; gap: 6px; color: var(--text-mid); font-size: 0.95rem; }
.site-footer__info p { margin: 0; }
.site-footer__contact::before { content: "●"; color: var(--cyan); margin-right: 8px; font-size: 0.7rem; vertical-align: 2px; }
.site-footer__hours::before { content: "◷"; color: var(--red); margin-right: 8px; font-weight: 700; }
.site-footer__legal { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav__link { color: var(--text-mid); font-size: 0.95rem; padding: 4px 0; transition: color 0.2s ease, text-shadow 0.2s ease; }
.footer-nav__link:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.5); }
.site-footer__icp { color: var(--text-mid); font-size: 0.85rem; transition: color 0.2s ease; }
.site-footer__icp:hover { color: var(--cyan); }
.site-footer__copyright { color: var(--text-mid); font-size: 0.88rem; }
.site-footer__copyright [data-year] { color: var(--cyan); font-weight: 600; }

/* ===== Progress / Data Strip ===== */
.data-strip { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.06); z-index: 4000; pointer-events: none; }
.data-strip__bar { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, #00E5FF, #6A5AFF, #FF3D00); box-shadow: 0 0 10px rgba(0, 229, 255, 0.6); transition: width 0.1s linear; }
@media (prefers-reduced-motion: reduce) { .data-strip__bar { transition: none; } }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0; color: var(--text-mid); font-size: 0.88rem; }
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "//"; color: var(--red); font-weight: 700; font-size: 0.8rem; }
.breadcrumb__link { color: var(--text-mid); transition: color 0.2s ease; }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__item[aria-current="page"] { color: var(--cyan); font-weight: 600; }

/* ===== Typography Helpers ===== */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 6px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 12px;
}
.section-heading h1, .section-heading h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.05; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.01em; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-heading p { margin-top: 12px; color: var(--text-mid); font-size: 1.05rem; max-width: 60ch; }

/* ===== Card ===== */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 26, 36, 0.96), rgba(20, 26, 36, 0.78));
  border: 1px solid rgba(192, 192, 192, 0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 229, 255, 0.08); }
.card--glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.18), transparent 50%), radial-gradient(circle at 80% 90%, rgba(255, 61, 0, 0.14), transparent 40%);
  z-index: 0;
  pointer-events: none;
}
.card--accent { border-top: 3px solid var(--red); }
.card > * { position: relative; z-index: 1; }

/* ===== Pattern Layer ===== */
.pattern-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
}
.pattern-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.pattern-orb--cyan { width: 340px; height: 340px; background: rgba(0, 229, 255, 0.5); }
.pattern-orb--red { width: 280px; height: 280px; background: rgba(255, 61, 0, 0.45); }

/* ===== Data Panel & Score ===== */
.stage-score { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.stage-score__digit { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, #F5F7FA 30%, #00E5FF 80%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stage-score__suffix { font-size: 0.9rem; color: var(--text-mid); letter-spacing: 0.12em; text-transform: uppercase; }
.stage-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.stage-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.6); animation: pulse-ring 1.8s infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 61, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 0, 0); }
}

/* ===== Tab System ===== */
.tab-shell { margin-top: 24px; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid rgba(192, 192, 192, 0.18); padding-bottom: 0; }
[role="tab"] {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--text-mid);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
[role="tab"][aria-selected="true"] { color: var(--cyan); background: rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.35); }
[role="tab"]:hover { color: var(--text-light); }
[role="tabpanel"] { padding-top: 28px; }

/* ===== Reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Image Placeholder Base ===== */
.image-placeholder { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(20, 26, 36, 0.8), rgba(10, 14, 23, 0.9)); display: flex; align-items: center; justify-content: center; min-height: 220px; }
.image-placeholder::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(115deg, transparent 20%, rgba(0, 229, 255, 0.08) 40%, transparent 60%); background-size: 200% 100%; animation: sheen 4s ease-in-out infinite; }
.image-placeholder--wide { aspect-ratio: 16 / 8; }
.image-placeholder--tall { aspect-ratio: 4 / 5; }
.image-placeholder--square { aspect-ratio: 1 / 1; }
.image-placeholder__label { position: relative; z-index: 1; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mid); }
@keyframes sheen { 0%, 100% { background-position: 200% 0; } 50% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .image-placeholder::before { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-header__inner { gap: 16px; }
  .site-nav__link { padding: 8px 10px; font-size: 0.86rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
    transform: translateY(-160%);
    transition: transform 0.32s ease;
    z-index: -1;
  }
  .site-header[data-open="true"] .site-nav { transform: translateY(0); }
  .site-nav__list { flex-direction: column; padding: 20px 24px 28px; gap: 4px; }
  .site-nav__link { display: block; padding: 12px 16px; font-size: 1rem; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
  .site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .site-header[data-open="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { margin-inline-start: auto; }
  .site-footer { clip-path: polygon(0 40px, 15% 20px, 100% 36px, 100% 100%, 0 100%); padding-top: 72px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .brand-lockup__name { font-size: 1.12rem; }
}

@media (max-width: 480px) {
  .container { width: 100%; padding-inline: 16px; }
  .site-header__inner { width: 100%; padding-inline: 16px; }
  .header-cta__btn { padding: 8px 14px; font-size: 0.8rem; clip-path: none; border-radius: var(--radius-pill); }
  .card { padding: 22px; }
}
