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

:root {
  /* Typography scale */
  --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --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;

  /* Radius & shadows */
  --radius: 4px;

  /* Color palette (neon cyber, dark luxury) */
  --color-bg: #060609;       /* DARK BG */
  --color-bg-alt: #0b0e18;    /* alternate dark */
  --color-bg-card: #141723;    /* card surface (slightly lighter than page) */
  --color-primary: #00E5FF;    /* neon cyan */
  --color-secondary: #FF2D78;  /* hot pink accent */
  --color-accent: #FF2D78;

  /* Text colors (contrast) - DARK BG implies light text */
  --color-text: #EDEDED;
  --color-text-muted: #A0A4B0;
  --color-text-on-primary: #1A1A1A;

  --color-border: #2A2A3B;
  --color-shadow: rgba(0, 0, 0, 0.6);
  
  /* Layout helpers */
  --container-max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* RESPONSIVE REQUIREMENTS: prevent horizontal scroll on mobile */
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

* { box-sizing: border-box; }

/* Layout: containers and sections */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto; /* ALWAYS center content across breakpoints */
  padding: 0 1rem;
  box-sizing: border-box;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.5);
  /* NOTE: header uses the .container inside for content alignment */
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile base padding; visually compact header */
  justify-content: space-between; /* mobile default; will be overridden on tablet/desktop */
}

/* Brand/logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 44px;               /* MANDATORY: height 44px, width auto */
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  /* Note: height is fixed to prevent header overflow; max-height keeps it safe */
}

/* Navigation: hamburger toggle (mobile) */
.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; /* ALWAYS white per spec */
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none; /* mobile hidden by default; shown via checkbox */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 500;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav-item { list-style: none; }

/* Dropdown navigation (mega/secondary menus) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; color: var(--color-text); text-decoration: 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);
}
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem; /* indent under the toggle on mobile */
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: block;
  }
}

/* Desktop/tablet layout adjustments (nav on right, horizontal) */
@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left, nav-right */
  .site-header .container {
    justify-content: space-between;
  }
  .site-nav {
    display: flex;
    align-items: center;
    position: static;
    background: transparent;
    border: none;
    width: auto;
  }
  .nav-toggle-label {
    display: none; /* hide hamburger on tablet+ */
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  /* Tablet + alignment specifics */
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-link { font-size: var(--font-size-sm); }
}
@media (min-width: 768px) {
  /* Ensure items in desktop nav stay aligned and accessible */
  .nav-link { text-decoration: none; color: var(--color-text); }
}

/* Section density and alternating backgrounds */
.section {
  padding: 3.5rem 0;
  background: var(--color-bg);
}
.section:nth-child(even) {
  background: var(--color-bg-alt);
}
.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

/* Hero section */
.hero {
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 60%), 
              radial-gradient(circle at 20% 0%, rgba(0,229,255,0.15), transparent 40%), 
              var(--color-bg);
  color: #fff;
  position: relative;
}
.hero-inner { width: 100%; max-width: 1100px; padding: 0 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 {
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  margin: 0;
  color: #fff;
}
.hero p { color: #EEE; margin: 0; }
.hero-cta { display: inline-block; padding: 0.75rem 1.25rem; border-radius: var(--radius); background: var(--color-primary); color: var(--color-text-on-primary); text-decoration: none; font-weight: var(--font-weight-bold); transition: filter 0.2s ease; border: 1px solid rgba(0,0,0,0.2); }
.hero-cta:hover { filter: brightness(0.95); }

/* Hero variant helpers (optional stacked banner inside hero) */
.hero-inner--reverse { display: flex; align-items: center; gap: 3rem; flex-direction: row-reverse; }
.hero-text { flex: 1 1 50%; }
.hero-media { flex: 1 1 45%; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 480px; display: block; }
.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .hero-inner--reverse { flex-direction: column; }
  .hero-media { width: 100%; }
}

/* Card components */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.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; }
.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 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Form elements */
label { display: block; margin-bottom: 0.25rem; color: var(--color-text); }
input,
textarea,
select {
  width: 100%;
  background: #111522;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: #7a8599; }
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
}
button[type="submit"] {
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: var(--font-weight-bold);
  transition: filter 0.2s ease;
}
button[type="submit"]:hover { filter: brightness(0.95); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }

/* FAQ accordion (CSS-only) */
.faq-section { padding: 3.5rem 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: "−"; transform: rotate(0.25turn); }
.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); }

/* Hero text-card exception rule (if used) */
.hero-text-card { color: var(--color-text); }

/* Sections adjusted for density and responsiveness by media queries below */

/* RESPONSIVE REQUIREMENTS - Mobile first (≤ 767px) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .container { width: 100%; padding: 0 1rem; }
  .site-header .container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; } /* logo, hamburger, nav vertically centered */
  .site-nav { display: none; width: 100%; }
  .nav-list { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .hero { min-height: 50vh; padding: 2rem 1rem; }
  .hero { text-wrap: balance; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  table { display: block; overflow-x: auto; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-inner--reverse { flex-direction: column; }
  .hero-text, .hero-media { flex: 0 0 auto; width: 100%; }
  .hero-img { width: 100%; }
  .site-logo img { height: 44px; max-height: 52px; width: auto; }
}

/* RESPONSIVE REQUIREMENTS - Tablet (min-width: 768px) */
@media (min-width: 768px) {
  /* Tablet: logo-left, nav-right; nav visible; horizontal nav; spacing tweaks */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-nav { display: flex; align-items: center; }
  .nav-toggle-label { display: none; }
  .nav-list { flex-direction: row !important; justify-content: flex-end; align-items: center; gap: 1.5rem; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  /* HINT: keep .nav-list horizontal on tablet+ as required; ensure margin auto behavior keeps items on right */
}

/* RESPONSIVE REQUIREMENTS - Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .site-header { /* already sticky; kept consistent */ }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}