:root {
  --bg: #08111f;
  --bg-elevated: #0e1a2e;
  --surface: #13233a;
  --surface-2: #182b46;
  --line: rgba(180, 210, 255, 0.12);
  --text: #eef3fb;
  --muted: #9eb0c9;
  --accent: #2f86ff;
  --accent-deep: #1a5fcc;
  --gold: #d8b15a;
  --danger: #e85a5a;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --nav-h: 72px;
  --max: 1140px;
  --font-display: "Sora", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 134, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(216, 177, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 40%, #06101c 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #7eb3ff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.65em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
  max-height: calc(var(--nav-h) - 16px);
  overflow: hidden;
}

.brand img {
  height: 44px;
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(47, 134, 255, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.65rem 1.05rem;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 134, 255, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(8, 17, 31, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.4rem;
  z-index: 999;
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: block;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-panel a {
  display: block;
  color: var(--text);
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.mobile-panel .mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mobile-panel .mobile-actions .btn {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.35) 0%, rgba(7, 16, 28, 0.72) 45%, rgba(7, 16, 28, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 16, 28, 0.85) 0%, rgba(7, 16, 28, 0.35) 55%, rgba(7, 16, 28, 0.55) 100%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3.5rem;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.hero-brand img {
  height: 42px;
  width: auto;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  margin-bottom: 0.7rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 38rem;
  color: #c5d3e8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(19, 35, 58, 0.35), transparent);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 42rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.prose {
  max-width: 48rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.grid-3 {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.category-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.category-item:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 134, 255, 0.45);
  box-shadow: var(--shadow);
}

.category-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #050b14;
  padding: 0.75rem;
}

.category-item .label {
  padding: 0.85rem 1rem 1.05rem;
}

.category-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.category-item p {
  margin: 0;
  font-size: 0.88rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 134, 255, 0.4);
  color: inherit;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050b14;
}

.article-card .body {
  padding: 1rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .meta {
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.article-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
  color: var(--text);
}

.article-card p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.feature-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050b14;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  object-fit: cover;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.94rem;
}

.promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.promo-row img {
  height: 52px;
  width: auto;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.brand-strip img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  filter: grayscale(0.2) brightness(1.05);
  opacity: 0.9;
  transition: opacity 0.2s, filter 0.2s;
}

.brand-strip img:hover {
  opacity: 1;
  filter: none;
}

/* Page chrome */
.page-hero {
  padding: 2.6rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(47, 134, 255, 0.08), transparent);
}

.page-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.article-main {
  background: rgba(19, 35, 58, 0.45);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.4rem 2rem;
}

.article-main img.cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050b14;
}

.article-main h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.article-main h3 {
  font-size: 1.05rem;
  margin-top: 1.15rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.side-box h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.side-box a {
  display: block;
  color: var(--muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.side-box a:last-child {
  border-bottom: 0;
}

.side-box a:hover {
  color: var(--accent);
}

.list-page {
  padding: 2.2rem 0 4rem;
}

.error-page {
  min-height: calc(100vh - var(--nav-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #060d18;
  padding: 2.6rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  display: block;
  padding: 0.28rem 0;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-desktop,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .brand img {
    height: 36px;
    max-height: 36px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    margin-bottom: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-main {
    padding: 1.1rem;
  }
}
