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

:root {
  /* COLOR PALETTE */
  --color-bg: #060609;           /* DARK BG (as per spec) */
  --color-bg-alt: #0a0b14;
  --color-bg-card: #0e0f1a;
  --color-primary: #00E5FF;       /* neon cyan */
  --color-secondary: #FF2D78;     /* hot pink */
  --color-accent: #39FF14;
  --color-text: #E8E8E8;           /* light text for dark bg */
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #111111; /* contrast on primary (light color) */
  --color-border: #1a1a2a;
  --color-shadow: rgba(0, 0, 0, 0.6);

  /* RADIUS & SPACING */
  --radius: 8px;
  --gap: 1rem;

  /* TYPOGRAPHY */
  --font-family: 'Barlow Condensed', ui-sans-serif, system-ui;
  --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;
  --font-weight-700: 800;

  /* UTILITIES (MAY be extended) */
  --container-max-mobile: 100%;
  --container-max-tablet: 960px;
  --container-max-desktop: 1200px;
}

html, body {
  height: 100%;
  overflow-x: hidden;            /* BASE: prevent horizontal scroll on mobile */
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

* { margin: 0; padding: 0; }

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

body {
  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);
}

/* LAYOUT STRUCTURE */
.container {
  width: 100%;
  margin: 0 auto;                 /* ALWAYS centered at every breakpoint */
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container { max-width: var(--container-max-tablet); }
}
@media (min-width: 1024px) {
  .container { max-width: var(--container-max-desktop); }
}

/* HEADER & NAV */
.site-header {
  position: sticky;
  top: 0;
  min-height: 64px;                 /* fixed min height, not a fixed height */
  width: 100%;
  overflow: visible;
  background: rgba(6, 6, 9, 0.85);
  backdrop-filter: saturate(1.2) blur(2px);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;               /* mobile padding; content centered vertically */
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;                   /* DO NOT set fixed height on the logo container */
  text-decoration: none;
}

.site-logo img {
  height: 44px;                         /* MANDATORY: logo height, width auto, max-width handled below */
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;              /* hide but keep for accessibility; DO NOT use display:none */
  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);
}

/* Hamburger bars – always white */
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff; /* ALWAYS use white for bars */
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Mobile nav (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 */
.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-xs);
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; text-decoration: none; color: var(--color-text); padding: 0.75rem 1rem; display: inline-block; }
.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); }

/* Tablet/Desktop: horizontal nav flow */
@media (min-width: 768px) {
  .nav-toggle-label { display: none !important; }

  .site-nav {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .nav-link {
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    position: absolute;
  }

  /* Ensure dropdown indent on mobile gets reset on desktop */
  .nav-dropdown-menu .nav-link { padding: 0.5rem 1rem; }
  @media (min-width: 1024px) {
    /* Desktop tweaks can go here if needed */
  }
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 2rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 60%), #060609;
  background-image: radial-gradient(circle at 20% -10%, rgba(0,229,255,0.25), transparent 40%), linear-gradient(135deg, #060609 0%, #09091a 60%);
}
.hero h1 {
  font-weight: 800;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.hero p {
  font-size: var(--font-size-lg);
  color: #fff;
  margin-top: 0.5rem;
}
.hero .cta {
  margin-top: 1rem;
  display: inline-block;
}

@media (max-width: 767px) {
  .hero { min-height: 60vh; padding: 2.5rem 1rem; }
  .hero h1 { font-size: calc(var(--font-size-hero) * 0.6); }
  .hero p { font-size: var(--font-size-base); }
}

/* CARD GRID & CARDS */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;            /* MANDATORY per spec */
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border-color: rgba(0, 0, 0, 0.0);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;               /* MANDATORY: rectangle images */
  object-fit: cover;
  display: block;                       /* ensures no gaps under image */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content {
  padding: 1rem;
}
.card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.card p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}
.card .tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #001018;
  background: var(--color-primary);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* SECTION & TITLE */
.section { padding: 2rem 0; }
.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.hr { height: 1px; background: var(--color-border); border: 0; margin: 1rem 0; }

/* FOOTER */
.site-footer {
  background: #0b0b14;
  padding: 2rem 0;
  color: var(--color-text);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.footer-inner .copyright { font-size: var(--font-size-xs); color: var(--color-text-muted); }

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

/* FORMS */
label { font-size: var(--font-size-xs); color: var(--color-text-muted); display: block; margin-bottom: 0.25rem; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: #0b0b14;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus,
textarea:focus,
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25); }

/* BUTTONS (BASE, PRIMARY, SECONDARY) */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-size-sm);
  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);
  filter: brightness(1.05);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
}
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover { background: rgba(0,229,255,0.08); }

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

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

/* RESPONSIVE: MOBILE FIRST BASELINE (≤767px) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .site-header .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .site-nav { width: 100%; } /* mobile panel will cover width when open */
  .nav-list { flex-direction: column; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .hero { min-height: 50vh; padding: 2.5rem 1rem; }
  .section { padding: 2rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: center; text-align: center; }
  .container { padding: 0 1rem; margin: 0 auto; }
  /* ensure the hamburger is visible on mobile */
  .nav-toggle-label { display: flex; }
}
 
@media (min-width: 768px) {
  /* TABLET: hamburger hidden; nav visible horizontally */
  .container { margin: 0 auto; }
  .nav-toggle-label { display: none; }  /* hide hamburger on tablet+ */
  .site-nav { display: flex; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 1.5rem; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; white-space: nowrap; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  /* Dropdown mobile behavior (desktop keeps hover, but ensure it stays visible in desktop flow) */
  .nav-dropdown-menu { position: absolute; left: 0; top: 100%; }
}
 
@media (min-width: 1024px) {
  /* DESKTOP tweaks */
  .container { max-width: var(--container-max-desktop); padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}