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

:root {
  /* COLOR PALETTE */
  --color-bg: #04080F;
  --color-bg-alt: #0A1622;
  --color-bg-card: #0C1A2A;
  --color-primary: #2B7FFF;
  --color-primary-rgb: 43, 127, 255;
  --color-secondary: #8AA3D6;
  --color-accent: #C0C8D8;

  --color-text: #FFFFFF;
  --color-text-on-primary: #1A1A1A;
  --color-text-muted: #6080AA;
  --color-border: rgba(43, 127, 255, 0.6);
  --color-shadow: rgba(0, 0, 0, 0.4);

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

  --radius: 8px;
}

/* 3. CSS reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
  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;
}

/* 5. Layout utilities */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: 2rem 0;
}
.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(2, 16, 38, 0.95), rgba(6, 14, 28, 0.95)), var(--color-bg);
  color: #fff;
}
.hero-big-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--color-bg-card);
  overflow: hidden;
  color: var(--color-text);
  box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(var(--color-primary-rgb), 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;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}
.card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(0.95);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 0 0 rgba(0,0,0,0); /* reset if used with var shadows elsewhere */
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero p {
  font-size: var(--font-size-base);
  color: #FFFFFF;
}
.footer {
  background: var(--color-bg-alt);
  padding: 2rem 0;
}
.site-footer { background: #0b1220; padding: 2rem 0; color: #DDE6F7; }

/* 6. Class names you MUST style (site elements) */
/* site-header and logo/nav basics */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(4,8,15,0.95);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  margin: 0 auto;
}
.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-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: 0.2s ease;
}
.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: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.nav-item { /* marker for items */ }
.nav-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.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: rgba(255,255,255,0.05);
}

/* 7. Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  transition: border 0.2s ease;
}
label { display: block; margin-bottom: 0.25rem; font-weight: 600; font-size: var(--font-size-xs); color: var(--color-text); }
button[type="submit"] {
  cursor: pointer;
  border: 0;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-weight-bold);
  transition: filter 0.2s ease;
}
button[type="submit"]:hover {
  filter: brightness(0.95);
}

/* 8. Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
th {
  text-align: left;
  font-weight: 700;
}
td { vertical-align: top; }

/* 9. Utility classes */
.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; }

/* 10. Responsive : mobile-first base rules (≤767px) are already in this file by default */

/* HERO EXTRA LAYOUT STYLES (as required) */
.hero:before,
.hero:after {
  content: "";
  display: block;
}
.hero-big-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}
.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;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .hero-sub-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-big-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  /* Mobile specific: ensure nav stays accessible via hamburger */
  .site-nav { display: none; }
  .nav-toggle-label { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .hero { padding: 3rem 1rem; min-height: 50vh; }
}
@media (min-width: 768px) { /* Tablet layout rules (HAMBURGER hidden, nav centered) */
  /* NAV LAYOUT - logo-left nav-centered */
  .site-header .container { justify-content: flex-start; }
  .site-nav { display: flex; flex: 1; justify-content: center; align-items: center; }
  .nav-list { justify-content: center; }
  .nav-toggle-label { display: none; }
  .site-nav { position: static; background: transparent; box-shadow: none; border-top: 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); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .hero { min-height: 60vh; padding: 3rem 1rem; }
  .hero-big-title { font-size: var(--font-size-3xl); }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0; }
  .nav-dropdown-menu { position: absolute; left: 0; }
}
@media (min-width: 1024px) { /* Desktop adjustments */
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; padding: 4rem 1rem; }
  .hero-big-title { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .section-title { font-size: var(--font-size-2xl); }
  .site-footer { padding: 2.5rem 0; }
}