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

:root {
  --bg: #070b12;
  --bg-soft: #0d1524;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f3f6fb;
  --text-muted: #b4c0d6;
  --line: rgba(255, 255, 255, 0.16);
  --brand: #00a3ff;
  --brand-2: #00d28f;
  --accent: #ff6a00;
  --danger: #ff3d57;
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 163, 255, 0.16), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(0, 210, 143, 0.14), transparent 30%),
    radial-gradient(circle at 30% 80%, rgba(255, 106, 0, 0.12), transparent 35%),
    linear-gradient(180deg, #06090f 0%, #071427 50%, #06090f 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 18, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.02rem;
}

.logo-wrap img {
  width: 44px;
  height: 44px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.primary-nav a.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.07);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(6, 9, 15, 0.94) 18%, rgba(6, 9, 15, 0.68) 55%, rgba(6, 9, 15, 0.92) 100%);
}

@keyframes heroZoom {
  0% {
    transform: scale(1.07) translateY(0);
  }
  100% {
    transform: scale(1.13) translateY(-10px);
  }
}

.hero h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero p {
  max-width: 720px;
  color: #e4edfb;
  line-height: 1.75;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(95deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 163, 255, 0.4);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--brand-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 9px;
}

.section-head h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.05em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.08) 46%, transparent 60%);
  transform: translateX(-140%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.card:hover::before {
  transform: translateX(140%);
}

.card h3,
.card h4 {
  margin: 12px 0 8px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card p,
.card li {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.96rem;
}

.icon {
  width: 48px;
  height: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline {
  position: relative;
  margin-top: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2));
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.35);
}

.timeline-item h4 {
  margin: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;
}

.news-date {
  font-family: "Oswald", sans-serif;
  font-size: 1.7rem;
  color: var(--brand);
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  padding: 86px 0 40px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.75;
}

.policy h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  margin-top: 40px;
}

.policy h3 {
  margin-top: 26px;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.02rem;
}

.policy p,
.policy li {
  color: var(--text-muted);
  line-height: 1.75;
}

/* Long legal content blocks should always be visible to avoid blank pages */
.policy .container.card.reveal {
  opacity: 1;
  transform: none;
}

.site-footer {
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 26px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 26px;
  color: #9daccc;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Compact bottom frame for selected pages that need denser footer layout */
.compact-footer .site-footer {
  padding-top: 20px;
}

.compact-footer .footer-grid {
  gap: 12px;
  padding-bottom: 14px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.compact-footer .footer-grid section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

.compact-footer .footer-grid p,
.compact-footer .footer-grid a {
  font-size: 0.9rem;
  line-height: 1.55;
}

.compact-footer .footer-grid h4 {
  margin: 4px 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-footer .footer-meta {
  padding: 10px 0 14px;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 10px;
    right: 10px;
    border-radius: 14px;
    background: rgba(7, 11, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav.open {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .grid-3,
  .grid-2,
  .news-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    gap: 8px;
  }

  .compact-footer .footer-grid section {
    padding: 12px;
  }
}
