:root {
  --bg: #0b1622;
  --bg-soft: #122233;
  --bg-card: #152a3d;
  --surface: #1a3348;
  --line: rgba(120, 190, 220, 0.18);
  --text: #e8f2f8;
  --muted: #9bb4c6;
  --brand: #2ec4ff;
  --brand-deep: #0f8fc4;
  --accent: #f0c75e;
  --ok: #3dd68c;
  --danger: #ff6b7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1180px;
  --nav-h: 72px;
  --font-display: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", 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(46, 196, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 199, 94, 0.12), transparent 50%),
    linear-gradient(180deg, #08131d 0%, var(--bg) 40%, #0a1824 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  overflow: visible;
  background: rgba(8, 19, 29, 0.92);
  backdrop-filter: blur(14px);
  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;
  flex-shrink: 0;
  max-width: min(200px, 48vw);
  max-height: calc(var(--nav-h) - 16px);
  overflow: hidden;
}

.brand img {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 1.05rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(46, 196, 255, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #041018;
}

.btn-primary:hover {
  color: #041018;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(8, 19, 29, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  z-index: 999;
}

.mobile-panel.open {
  display: block;
  animation: slideDown 0.25s ease;
}

.mobile-panel a {
  display: block;
  padding: 0.85rem 0.75rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: 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;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 29, 0.92) 0%, rgba(8, 19, 29, 0.55) 48%, rgba(8, 19, 29, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 19, 29, 0.2) 0%, rgba(8, 19, 29, 0.88) 100%);
}

.hero-content {
  padding: 4.5rem 0 3.2rem;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0;
  max-width: 48ch;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.intro-grid,
.two-col,
.faq-grid {
  display: grid;
  gap: 1.5rem;
}

.intro-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-grid,
.card-grid,
.brand-row {
  display: grid;
  gap: 1rem;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  min-height: 220px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 255, 0.45);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 30%, rgba(46, 196, 255, 0.16), transparent 60%), #0a1420;
  padding: 1rem;
}

.category-card .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 20, 0.92));
}

.category-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.category-card p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: linear-gradient(180deg, rgba(26, 51, 72, 0.85), rgba(18, 34, 51, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 199, 94, 0.4);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a1420;
}

.article-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.tag {
  color: var(--brand);
  font-weight: 700;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--brand);
}

.article-card .body p {
  flex: 1;
  font-size: 0.92rem;
}

.read-more {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-row {
  grid-template-columns: repeat(4, 1fr);
}

.brand-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.brand-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.faq-grid {
  grid-template-columns: 1fr 1fr;
}

.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.94rem;
}

.page-hero {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  padding: 2rem 0 4rem;
}

.prose {
  background: rgba(18, 34, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose img {
  border-radius: 12px;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
}

.sidebar .widget {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  border-bottom: 1px solid var(--line);
}

.side-list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.side-list a:hover {
  color: var(--brand);
}

.list-page .card-grid {
  margin-top: 1.5rem;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(46, 196, 255, 0.14), rgba(240, 199, 94, 0.08)),
    var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  max-width: 54ch;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #07121b;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.promo-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.promo-strip img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.note-box {
  border-left: 3px solid var(--brand);
  background: rgba(46, 196, 255, 0.08);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.2rem 0;
}

.note-box p {
  margin: 0;
  color: var(--text);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: riseIn 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

@media (max-width: 980px) {
  .intro-grid,
  .article-layout,
  .promo-strip,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-row {
    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: 34px;
  }

  .category-grid,
  .card-grid,
  .brand-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 3.4rem 0 2.4rem;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
