@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&display=swap');
:root {
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --color-primary: #EBEBEB;
  --color-secondary: #FF0000;
  --color-accent: #FFEE00;
  --color-bg: #000000;
  --color-bg-alt: #0A0A0A;
  --color-bg-card: #111111;
  --color-text: #E8E8E8;
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #111111;
  --color-border: #2A2A2A;
  --color-shadow: #000000;
  --radius: 8px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-22: 5.5rem;
  --container-max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Exo 2', sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background: var(--color-bg);
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, h4 { line-height: var(--line-height-tight); font-weight: var(--font-weight-bold); color: var(--color-text); text-transform: uppercase; letter-spacing: 0.04em; }
h1 { font-size: var(--font-size-3xl); }
h2, .section-title { font-size: var(--font-size-2xl); margin-bottom: var(--space-8); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
p { margin-bottom: var(--space-4); color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--color-accent); }
strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; }
ul, ol { padding-left: 1.25rem; color: var(--color-text); }
.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: var(--container-max);
}
.section, .faq-section { padding: var(--space-22) 0 var(--space-12); }
.section:not(.hero):nth-child(odd) { background: var(--color-bg); }
.section:not(.hero):nth-child(even) { background: var(--color-bg-alt); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  overflow: visible;
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 500;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px var(--color-shadow);
  overflow: visible;
}
.nav-toggle-input:checked ~ .site-nav { display: block; }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { position: relative; }
.nav-dropdown {
  position: relative;
  overflow: visible;
}
.nav-link {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: #E8E8E8;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link:focus::after { transform: scaleX(1); }
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nav-dropdown-menu {
  display: none;
  position: static;
  box-shadow: none;
  border: none;
  padding-left: 1rem;
  list-style: none;
  margin: 0;
  background: var(--color-bg-card);
  overflow: visible;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
}
.hero {
  min-height: 50vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  color: #FFFFFF;
  overflow: visible;
}
.hero h1 { font-size: var(--font-size-2xl); word-break: break-word; }
.hero p { font-size: var(--font-size-base); color: inherit; }
.hero-inner, .hero-content, .hero-cols { width: 100%; }
.hero-tsw-wrap { text-align: center; max-width: 780px; margin: 0 auto; }
.hero-tsw-wrap h1 { color: var(--color-text); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.hero-tsw-wrap > p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-tsw-tabs { display: flex; justify-content: center; gap: 0.5rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0; margin-bottom: 0; flex-wrap: wrap; }
.hero-tsw-tab { padding: 0.6rem 1.1rem; color: var(--color-text-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hero-tsw-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.hero-tsw-panel { background: var(--color-bg-card); border: 1px solid var(--color-border); border-top: none; padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius); color: var(--color-text); }
.hero-tsw-panel p { color: var(--color-text); margin: 0; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 4px var(--color-shadow), 0 8px 16px var(--color-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px var(--color-shadow), 0 12px 20px var(--color-shadow); }
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-body,
.card > :not(img) {
  padding: 1rem 1.25rem;
}
.card h3, .card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.card p {
  margin: 0;
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}
.btn {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 2px 4px var(--color-shadow), 0 6px 12px var(--color-shadow);
}
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-bg-card);
  transform: translateY(-1px);
}
.site-footer {
  background: var(--color-bg-alt);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  align-items: center;
}
.footer-inner .btn-primary { color: var(--color-text-on-primary) !important; }
.footer-inner .btn-secondary { color: var(--color-primary) !important; }
.faq-section {
  background: var(--color-bg);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: 0.2s ease;
}
.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--color-text);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after { content: "−"; }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq-answer p {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-base);
}
input, textarea, select, label, button[type="submit"] {
  font: inherit;
  color: var(--color-text);
}
input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: inset 0 1px 2px var(--color-shadow);
}
input::placeholder, textarea::placeholder { color: var(--color-text-muted); }
input:focus, textarea:focus, select:focus, button:focus, .btn:focus, .nav-link:focus, .faq-question:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}
button[type="submit"] {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  cursor: pointer;
  transition: 0.2s ease;
}
button[type="submit"]:hover { filter: brightness(0.9); }
table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  color: var(--color-text);
}
th, td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
th { background: var(--color-bg-alt); }
tr:nth-child(even) { background: var(--color-bg-alt); }
tr:nth-child(odd) { background: var(--color-bg); }
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-4); }
.mt-4 { margin-top: var(--space-8); }
.hidden { display: none !important; }
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .nav-toggle-label { display: none !important; }
  .site-header .container { justify-content: center; gap: 0.75rem; }
  .site-nav {
    display: flex !important;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
    flex: 0 0 auto;
    justify-content: center;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    white-space: nowrap;
  }
  .nav-dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 9999;
    box-shadow: 0 8px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
    padding-left: 0;
  }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; text-align: left; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .container { max-width: 1140px; padding: 0 2rem; margin: 0 auto; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section, .faq-section { padding: var(--space-22) 0 var(--space-12); }
}
/* Phase 7 nav-link contrast fix (desktop only) */
@media (min-width: 768px) {
  .site-header .nav-list > li > .nav-link,
  .site-header .nav-list > li > .nav-dropdown-toggle {
    color: #1A1A1A !important;
  }
}

.hero .btn-secondary{color:var(--color-text-on-primary);border-color:var(--color-text-on-primary);}
