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

:root {
  /* Brand and mood colors */
  --color-bg: #04080F;
  --color-bg-alt: #0A1020;
  --color-bg-card: #111924;
  --color-text: #EDEFF4;
  --color-text-muted: #A0A6B8;
  --color-text-on-primary: #1A1A1A;
  --color-border: rgba(255, 255, 255, 0.25);
  --color-shadow: rgba(0, 0, 0, 0.5);

  --color-primary: #2B7FFF;      /* electric blue */
  --color-secondary: #3AD0C9;    /* teal accent */
  --color-accent: #C0C8D8;        /* silver accent */

  --radius: 12px;

  /* Typography scale (as per system spec) */
  --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-ghost: 300;
}

/* 3. CSS reset/base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* 4. Typography */
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--color-text); font-family: Montserrat, sans-serif; }
h1 { font-size: var(--font-size-3xl); font-weight: 900; line-height: var(--line-height-tight); }
h2 { font-size: var(--font-size-2xl); font-weight: 800; }
h3 { font-size: var(--font-size-xl); font-weight: 700; }
p { font-size: var(--font-size-base); color: var(--color-text); margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease, text-decoration .2s ease; }
a:hover { text-decoration: underline; }
strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; }

/* Lists */
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin: 0.25rem 0; }

/* 5. Layout utilities & sections */
.container {
  width: 100%;
  margin: 0 auto;               /* crucial: always centered */
  padding: 0 1rem;
  box-sizing: border-box;
}
.section { padding: 2rem 0; }

/* 6. Classes you MUST style (brand components) */

/* Header & logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(4, 8, 15, 0.92);
  backdrop-filter: saturate(1.2) blur(2px);
}
.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 img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* Hamburger nav (mobile) - required structure */
.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;
}
.site-nav {
  display: none;
  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-toggle-input:checked ~ .site-nav {
  display: block;
}

/* Nav list - must use plain .nav-list selector for all responsive overrides */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.nav-item { /* wrapper for each item if needed */ }

/* Dropdown nav (CSS only) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.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;
  }
}

/* Hero */
.hero {
  width: 100%;
  min-height: 50vh; /* base height; grows on larger screens */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(43,127,255,0.75), rgba(2,4,8,0.95) 60%), radial-gradient(circle at 20% 0%, rgba(0,0,0,0.25), transparent 40%);
  color: #fff;
}
.hero h1 { font-size: var(--font-size-hero); font-weight: 900; margin: 0 0 1rem; }
.hero p { margin: 0 0 1rem; }

/* Hero extra specialized layout (per requirement) */
.hero-big-title { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 1.5rem; text-transform: uppercase; color: #fff; }
.hero-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-subtitle { flex: 1 1 300px; font-size: 1.1rem; color: #fff; }
.hero-cta { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* Card grid & cards (casino-inspired) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column; /* required: vertical layout with image on top */
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(43,127,255,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(43,127,255,0.28);
}
.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-content { padding: 1rem; color: var(--color-text); }

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

/* Primary CTA */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 0;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* Secondary button (outline) */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-secondary:hover { transform: translateY(-1px); }

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

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

/* 7. Forms */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  outline: none;
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(43,127,255,.15); }
label { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin: 0.25rem 0 0.25rem; }

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

/* 9. 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 !important; }

/* 10. Responsive requirements - mobile-first base (≤ 767px) */

/* Base/mobile (≤767px) rules are already in effect by default. Implemented here explicitly for clarity: */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { width: 100%; padding: 0 1rem; margin: 0 auto; }
  .site-header .container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; /* logo + hamburger + nav vertically centered */ }
  .site-logo img { height: 40px; max-width: 140px; width: auto; object-fit: contain; display: block; }
  /* Hamburger nav defaults for mobile (visible) - the label is visible on mobile, hide on tablet+ in the subsequent breakpoint */
  .nav-toggle-label { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; width: 100%; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; margin: 0; }
  .nav-link { 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; }
  .hero { min-height: 50vh; padding: 2rem 1rem; }
  .hero-big-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
  .hero { text-align: left; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .btn { width: max-content; }
}

/* Tablet (min-width: 768px) - NAV LAYOUT (logo-left, nav-centered) */
@media (min-width: 768px) {
  /* Center logo + nav block horizontally, but keep logo left-ish per spec */
  .container { margin: 0 auto; }
  .site-header .container { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; }
  /* Hamburger hidden on tablet+ */
  .nav-toggle-label { display: none !important; }
  .site-nav { display: flex; align-items: center; position: static; background: transparent; border: none; box-shadow: none; flex: 1; }
  .site-nav > .nav-list { display: flex; flex-direction: row !important; align-items: center; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
  /* Ensure the nav is centered in the header row */
  .nav-list { justify-content: center; }
  /* Logo sizing adjustments for tablet */
  .site-logo img { height: 44px; max-width: 160px; width: auto; object-fit: contain; display: block; }
  /* Dropdown in tablet/desktop: keep hover/focus open behavior */
  .nav-dropdown-menu { min-width: 200px; }
  .hero { min-height: 60vh; }
  .hero-big-title { font-size: clamp(3rem, 8vw, 7rem); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  /* Ensure consistent centering of content in the container when wide */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
}

/* Desktop (min-width: 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; }
  .container { margin: 0 auto; }
  .hero-big-title { font-size: clamp(3rem, 8vw, 7rem); }
  /* Optional: keep 1st column look in grid */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}