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

:root {
  /* TYPOGRAPHY SCALE */
  --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 PALETTE (DARK THEME WITH NEON ACCENTS) */
  --color-bg: #060609;
  --color-bg-alt: #0a0a12;
  --color-bg-card: #0e111a;
  --color-border: #1f1f28;
  --color-shadow: rgba(0, 0, 0, 0.55);

  --color-primary: #00E5FF;   /* electric cyan */
  --color-secondary: #00C853; /* emerald green */
  --color-accent: #FF2D78;     /* hot pink */

  /* TEXT */
  --color-text: #E8E8E8;
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #111111; /* primary is bright; use dark text on primary */

  --radius: 12px;

  /* UTILS */
  --max-width: 1200px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden; /* MOBILE-FOCUSED: prevent horizontal scroll */
}

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

.container {
  width: 100%;
  margin: 0 auto; /* MUST: centered at all breakpoints */
  padding: 0 1rem;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 64px; /* NOT a fixed height */
  overflow: visible; /* DO NOT clip logo */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(1.2) blur(2px);
}

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

/* LOGO */
.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 (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 for bars */
  border-radius: 2px;
  transition: 0.2s ease;
}

/* NAV (RIGHT SIDE) */
.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;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {}

/* NAV LINKS */
.nav-link {
  font-size: var(--font-size-xs); /* mobile: xs; tablet/desktop overridden in media query */
  color: var(--color-text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  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);
}

/* HERO */
.hero {
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,0,0,0.9));
  background-color: #0b0b10;
}
.hero {
  background-image: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,0,0,0.9)),
                    radial-gradient( circle at 20% -20%, rgba(0,229,255,0.25), transparent 40% );
}
.hero h1 {
  font-size: var(--font-size-hero);
  color: #fff;
  line-height: var(--line-height-tight);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.hero p {
  font-size: var(--font-size-base);
  color: #F7F7F7;
  margin: 0 0 1rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

/* CARDS & GRID */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.34);
}
.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 .card-content { padding: 1rem; }
.card-title {
  font-size: var(--font-size-lg);
  margin: 0 0 0.25rem;
  color: var(--color-text);
}
.card p { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }

/* GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* FORMS */
label { display: block; font-size: var(--font-size-sm); color: var(--color-text); margin-bottom: 0.25rem; }
input, textarea, select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); }

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

/* FOOTER */
.site-footer {
  background: #0b0b12;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner a { color: var(--color-text); text-decoration: none; }

/* UTILITIES */
.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; }

/* 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); }

/* RESPONSIVE REQUIREMENTS */
/* Base styles: mobile-first (≤767px) - implemented above */

/* Tablet (≥768px) — all-centered layout rules and tablet nav behavior */
@media (min-width: 768px) {
  /* CENTERED CONTAINER ACROSS BREAKPOINTS */
  .site-header .container {
    justify-content: center;
    gap: 2rem;
  }
  /* NAV LAYOUT ON TABLET: show nav inline, horizontal */
  .nav-toggle-label { display: none; }

  .site-nav {
    display: flex; /* mobile hidden -> shown on tablet+; desktop will override if needed */
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: center;
  }
  .site-nav .nav-list {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
  }
  .nav-link {
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
  }
  /* Dropdown behavior on tablet/desktop remains absolute when hovered/focused */
  .nav-dropdown-menu {
    position: absolute;
  }
  .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; }
  /* Dropdown mobile adjustments (still mobile-first look overridden here) */
  .nav-dropdown-menu { padding: 0.5rem 0; }
  .nav-dropdown-menu .nav-link { padding: 0.5rem 1.25rem; }
  .nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  /* Ensure container margin auto remains in play */
  :root { --max-width: 960px; } /* visually aligns with tablet width if needed (not strictly required) */
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .nav-link { font-size: var(--font-size-sm); }
  .site-nav { position: static; }
  /* NAV: ensure horizontal distribution on desktop stays centered as per all-centered rules */
  .card-grid { gap: 1.25rem; }
}

/* Wide desktops (≥1280px) */
@media (min-width: 1280px) {
  .container { max-width: 1400px; }
  .hero { min-height: 80vh; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .section { padding: 4rem 0; }
  .footer-inner { gap: 2rem; }
}