@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700&display=swap');

:root {
  --color-primary: #FFE000;
  --color-secondary: #39FF14;
  --color-accent: #39FF14;
  --color-bg: #0A0412;
  --color-bg-alt: #0B0A14;
  --color-bg-card: #14111e;
  --color-text: #E8E8E8;
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #111111;
  --color-border: #2A2540;
  --color-shadow: #000000;

  --radius: 12px;
  --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;

  --gap: 1rem;
  --section-padding: 2rem 0;
  --container-max: 1260px;
  --color-bg-card-soft: #1b1624;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; color: var(--color-primary); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto; /* ALWAYS center content at every breakpoint */
  padding: 0 1rem;
  box-sizing: border-box;
}

.section {
  padding: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.section + .section { padding-top: 2rem; }

.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-bg);
  min-height: 64px; /* DO NOT set a fixed height; content dictates height */
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.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;
}

/* Mobile nav panel (hidden by default) */
.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 rgba(0,0,0,0.18);
}
.nav-toggle-input:checked ~ .site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column; /* mobile default: vertical */
  gap: 0;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}
.nav-item { }

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  text-decoration: none;
  position: relative;
}
.nav-link:hover { color: var(--color-text); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown navigation */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; user-select: none; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.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;
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* Mobile dropdown adjustment */
@media (min-width: 768px) {
  .nav-dropdown-menu { position: absolute; }
}
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}

/* Desktop / Tablet nav layout overrides (per system prompt) */
@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left, nav-centered */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; display: flex; justify-content: center; align-items: center; }
  .nav-list { justify-content: center; flex-direction: row; flex-wrap: nowrap; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; }
  .nav-toggle-label { display: none !important; } /* hamburger hidden on tablet+ */
  .container { padding: 0 1.5rem; }
  /* ensure a consistent center alignment of items in header row */
  .site-header { border-bottom: 1px solid var(--color-border); }
}

/* Hero with dense, elevated card look */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #FFFFFF; /* HERO DARK BG rule: explicit white text in dark hero */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.hero-inner { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.hero-text { width: 100%; color: #FFFFFF; }
.hero-media { width: 100%; }
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 320px;
  display: block;
}
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 3rem; }
  .hero-text { flex: 1 1 55%; }
  .hero-media { flex: 1 1 40%; }
  .hero-img { max-height: 460px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
}

/* Hero headings and text rules inside hero */
.hero h1 { font-size: var(--font-size-2xl); margin: 0 0 0.25rem; color: #FFFFFF; }
.hero p { margin: 0; color: #F0F0F0; }

/* Card components (dense, elevated) */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25), 0 10px 15px rgba(0,0,0,0.25);
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-body { padding: 1rem 1.25rem; }
.card > :not(img) { padding: 1rem 1.25rem; } /* fallback for non-wrapper content */
.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; color: var(--color-text); }
.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }

/* Card grid layout: dense, auto-fill grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}
label { display: block; font-size: var(--font-size-xs); color: var(--color-text); margin-bottom: 0.25rem; }

button, input[type="submit"] {
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  transition: filter 0.2s ease, transform 0.2s ease;
}
button:hover, input[type="submit"]:hover { filter: brightness(0.95); }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

/* Primary / Secondary button styles (buttons on site) */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: 1px solid rgba(0,0,0,0.15);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-inner .btn-primary, .footer-inner .btn-secondary {
  color: var(--color-text-on-primary) !important;
}

/* FAQ accordion (CSS-only) */
.faq-section { padding: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 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;
  user-select: none;
}
.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); }

/* Hamburger nav behavior and accessibility extras (CSS-only) */
@media (min-width: 0px) {
  .nav-toggle-input:focus-visible + .nav-toggle-label { outline: 2px solid var(--color-primary); outline-offset: 2px; }
}

/* Table styling (WCAG/contrast: use var colors) */
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
tr:nth-child(odd) { background: var(--color-bg); }
tr:nth-child(even) { background: var(--color-bg-alt); }

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* RESPONSIVE REQUIREMENTS - MOBILE FIRST (≤767px) base rules already defined above */

/* Tablet (min-width: 768px) — tablet layout adjustments */
@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left, nav-centered handled in the base + overrides above */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-logo { align-items: center; }
  .nav-toggle-label { display: none; } /* ensure hamburger hidden on tablet+ (override if needed) */
  .site-nav { display: flex; align-items: center; justify-content: center; }
  .nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 1.5rem; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; }
  .hero { min-height: 60vh; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { flex: 1 1 55%; }
  .hero-media { flex: 1 1 40%; }
  .hero-img { max-height: 460px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section { padding: 2rem 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* Desktop (min-width: 1024px) — full-width large screens */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .section { padding: 4rem 0; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
}