:root {
  --bg: #0a1628;
  --bg-2: #0f1f36;
  --surface: #132339;
  --surface-2: #1a2d47;
  --line: rgba(140, 190, 230, 0.16);
  --text: #e7eef8;
  --muted: #9bb0c9;
  --accent: #2bb3ff;
  --accent-2: #1a8fd6;
  --gold: #d4a84b;
  --gold-soft: #f0d089;
  --ok: #3ecf8e;
  --danger: #ef6b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --max: 1180px;
  --font-display: "Sora", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 179, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 168, 75, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, #07101d 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

ul,
ol {
  padding-left: 1.2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  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: #041018;
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(8, 16, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.brand img {
  height: 52px;
  width: auto;
  max-height: calc(var(--header-h) - 16px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.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;
}

.nav-desktop a {
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(43, 179, 255, 0.12);
}

.header-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: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
}

.btn-primary:hover {
  color: #041018;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8872f);
  color: #1a1205;
}

.btn-gold:hover {
  color: #1a1205;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(43, 179, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(100%, 320px);
  height: calc(100vh - var(--header-h));
  background: rgba(10, 18, 32, 0.98);
  border-left: 1px solid var(--line);
  padding: 1.25rem;
  z-index: 999;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  visibility: hidden;
}

.mobile-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-panel a {
  color: var(--text);
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-panel a.active {
  background: rgba(43, 179, 255, 0.15);
  color: var(--accent);
}

.mobile-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.menu-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

body.menu-open .mobile-panel {
  visibility: visible;
}

main {
  padding-top: calc(var(--header-h) + 1.25rem);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: calc(100vh - var(--header-h) - 1.25rem);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 28, 0.92) 0%, rgba(7, 14, 28, 0.72) 42%, rgba(7, 14, 28, 0.35) 100%),
    url("banner.3dd2.webp") center / cover no-repeat;
  z-index: 0;
  animation: heroShift 18s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  max-width: 680px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #fff, var(--accent), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--text);
  max-width: 34ch;
}

.hero p {
  font-size: 1.05rem;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@keyframes heroShift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: riseIn 0.7s ease both;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

/* Sections */
.section {
  padding: 4.2rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  max-width: 42ch;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.intro-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.intro-visual img {
  width: min(100%, 360px);
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 180px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-item:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 179, 255, 0.45);
}

.category-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(43, 179, 255, 0.15), transparent 65%), #050b14;
  padding: 0.75rem;
}

.category-item span {
  display: block;
  padding: 0.85rem 1rem 1rem;
  color: var(--text);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.article-card {
  background: linear-gradient(180deg, var(--surface), rgba(19, 35, 57, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050b14;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.05);
}

.article-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.article-card .meta {
  display: flex;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.brand-strip img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem;
  filter: grayscale(0.2);
  opacity: 0.9;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 35, 57, 0.7);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.cta-band {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(43, 179, 255, 0.14), rgba(212, 168, 75, 0.1)),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
}

/* Page utilities */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  opacity: 0.5;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

.prose {
  background: rgba(19, 35, 57, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.7rem;
}

.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.prose img.cover {
  width: 100%;
  border-radius: 12px;
  margin: 0.5rem 0 1.2rem;
  object-fit: cover;
  max-height: 420px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.side-box h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.side-list a {
  color: var(--text);
  font-size: 0.92rem;
}

.side-list a:hover {
  color: var(--accent);
}

.list-page .card-grid {
  margin-top: 0.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.feature-item h3 {
  font-size: 1.05rem;
}

.feature-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(43, 179, 255, 0.1);
  color: var(--text);
}

td {
  color: var(--muted);
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  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);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 20, 0.9);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.ext-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .intro-grid,
  .content-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .brand-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 14, 28, 0.55) 0%, rgba(7, 14, 28, 0.92) 78%),
      url("banner.3dd2.webp") center / cover no-repeat;
  }

  .hero-inner {
    max-width: 100%;
    padding: 2.2rem 0 2.8rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    height: 44px;
    max-height: calc(var(--header-h) - 14px);
  }

  .category-grid,
  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .prose {
    padding: 1.15rem 1rem 1.3rem;
  }
}
