@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
  /* Color palette (HEX only) */
  --color-bg: #040810;            /* dark near-black */
  --color-bg-alt: #0a0f1a;         /* dark alternative section bg (kept dark for contrast) */
  --color-bg-card: #0b111d;         /* card background (dark) */
  --color-primary: #00E5C8;         /* bioluminescent teal */
  --color-accent: #E040FB;          /* magenta accent */
  --color-text: #E8E8E8;             /* light text on dark bg */
  --color-text-muted: #A0A0A0;       /* muted text on dark bg */
  --color-text-on-primary: #1A1A1A;  /* text on primary buttons (bright white) */
  --color-border: #1a2a36;           /* border color */
  --color-shadow: rgba(0,0,0,.5);

  --radius: 12px;

  /* Typography scales */
  --font-family-body: Lato, Arial, sans-serif;
  --font-family-heading: "Playfair Display", Georgia, 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;
}

/* Global resets and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
html, body {
  overflow-x: hidden;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto; /* IMPORTANT: centers content at every breakpoint */
  box-sizing: border-box;
}
body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Typography usage */
h1 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin: 0 0 0.5rem;
  color: inherit;
}
h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  color: inherit;
  margin: 0 0 0.5rem;
}
h3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  margin: 0 0 0.5rem;
}
h4 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  margin: 0;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; }

/* Layout sections and sections density */
.section {
  padding: 4.5rem 0;
  position: relative;
}
.section-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  margin: 0 0 1rem;
}
.section + .section { /* spacing between sections if used sequentially */ }

/* Header and navigation (desktop/tablet/mobile) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  width: 100%;
  background: var(--color-bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}

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

/* Mobile nav toggle (checkbox) */
.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: transform 0.2s ease;
}

/* Desktop/tablet nav panel (hidden on mobile) */
.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-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.nav-item { }
.nav-link {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  text-decoration: underline;
  color: var(--color-text);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  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;
  }
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: none;
  }
}

/* Hamburger visibility and mobile nav toggle behavior */
@media (min-width: 768px) {
  .nav-toggle-label { display: none !important; }
  .site-nav {
    display: flex !important;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list { gap: 1.5rem; }
  .nav-link { font-size: var(--font-size-sm); }
  /* NAV LAYOUT: logo-left, nav-right on tablet/desktop */
  .site-header .container {
    justify-content: space-between;
  }
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
  /* Ensure dropdown behaves on desktop */
  .nav-dropdown-menu { min-width: 200px; }
}
@media (min-width: 768px) {
  /* ensure nav items are horizontal on tablet/desktop even under the base rule */
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; }
}
@media (min-width: 1024px) {
  /* tablet+ adjustments if necessary further (already handled above) */
  .nav-link { font-size: var(--font-size-sm); }
}

/* Hero section (full-bleed, cinematic) */
.hero {
  min-height: 50vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF; /* HERO TEXT RULE: dark bg => white text on hero */
  background: linear-gradient(135deg, #040810 0%, #00161f 60%, #040810 100%);
}
.hero-content { text-align: center; }
.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem; margin-top: 0.5rem;
}
.hero-stat { text-align: center; min-width: 80px; }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.hero-stat span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 767px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stat strong { font-size: 1.5rem; }
}
.hero .badge {
  display:inline-block;
  padding:.25rem .5rem;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color:#fff;
  font-size: var(--font-size-xs);
}

/* Card grid and cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 26px rgba(0, 229, 200, 0.25);
}
.card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.card > :not(img) {
  padding: 1rem 1.25rem;
}
.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; }

/* Card content text colors and readability on dark card bg */
.card p { color: var(--color-text-muted); margin: 0; line-height: var(--line-height-base); }

/* Card image top rounding (top corners) */
.card > img { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn + .btn { margin-left: .5rem; }

/* Footer */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-copy {
  font-size: var(--font-size-xs);
  opacity: 0.9;
}

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

/* Forms */
label { display: block; font-size: var(--font-size-sm); margin-bottom: .25rem; color: var(--color-text); }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #0f1620;
  color: var(--color-text);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
}
textarea { min-height: 120px; resize: vertical; }

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

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none; }

/* Media queries for responsive behavior (mobile-first) */
@media (min-width: 768px) {
  /* Tablet adjustments (logo left, nav right) */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-header .container { padding: 0.5rem 1.5rem; }
  .section { padding: 4.5rem 0; }
  .hero { min-height: 60vh; padding: 3rem 1rem; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .card-grid { gap: 2rem; }
  .card { max-width: 100%; }
}
@media (min-width: 1024px) {
  .container { max-width: 1200px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}
@media (min-width: 1280px) {
  .container { max-width: 1320px; }
  /* Wide cinematic visuals */
  .section { padding: 4.5rem 0; }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}