@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap");

:root {
  --bg: #070e18;
  --bg-soft: #0c1624;
  --surface: #121e30;
  --surface-2: #182840;
  --line: rgba(180, 210, 255, 0.12);
  --text: #eef3fb;
  --muted: #9aadc6;
  --accent: #2aa8ff;
  --accent-deep: #1377c7;
  --gold: #e6b23a;
  --gold-deep: #c48f1d;
  --ok: #3ecf8e;
  --danger: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --nav-h: 72px;
  --max: 1120px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 168, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(230, 178, 58, 0.1), transparent 50%),
    linear-gradient(180deg, #08111d 0%, var(--bg) 40%, #050a12 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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: #7cc9ff;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--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(--nav-h);
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 14, 24, 0.86);
  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: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  height: 36px;
  width: auto;
  max-height: 36px;
  max-width: min(148px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(42, 168, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1203;
  box-shadow: 0 8px 24px rgba(230, 178, 58, 0.25);
}

.btn-primary:hover {
  color: #1a1203;
}

.btn-ghost {
  background: rgba(42, 168, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(42, 168, 255, 0.28);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(42, 168, 255, 0.2);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
}

.desktop-auth {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-open .icon-menu {
  display: none;
}

.menu-toggle.is-open .icon-close {
  display: block;
}

.menu-toggle .label-close {
  display: none;
}

.menu-toggle.is-open .label-open {
  display: none;
}

.menu-toggle.is-open .label-close {
  display: inline;
}

.mobile-panel {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(100%, 320px);
  height: calc(100vh - var(--nav-h));
  background: rgba(10, 18, 30, 0.98);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 999;
  padding: 1.25rem;
  overflow-y: auto;
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-panel a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.mobile-auth {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.menu-overlay {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 998;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

main {
  padding-top: var(--nav-h);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  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 top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 14, 24, 0.35) 0%, rgba(7, 14, 24, 0.55) 40%, rgba(7, 14, 24, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 14, 24, 0.75) 0%, rgba(7, 14, 24, 0.25) 55%, rgba(7, 14, 24, 0.55) 100%);
}

.hero-content {
  padding: 4.5rem 0 3.2rem;
  max-width: 640px;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #fff 20%, #8fd4ff 70%, #e6b23a 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: 1.02rem;
  max-width: 52ch;
  color: #c5d4e8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: fadeup 0.7s ease both;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.55), rgba(18, 30, 48, 0.15));
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.prose {
  max-width: 70ch;
}

.prose h2,
.prose h3 {
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.45rem;
  list-style: disc;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.cat-item {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}

.cat-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  transition: transform 0.45s ease;
}

.cat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 10, 18, 0.92) 100%);
}

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item span {
  position: relative;
  padding: 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

/* Cards / articles */
.card-grid {
  display: grid;
  gap: 1rem;
}

.article-card {
  display: grid;
  gap: 0.85rem;
  background: transparent;
}

.article-card .thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.article-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-card .tag {
  color: var(--accent);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Brand / intro split */
.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(42, 168, 255, 0.2), transparent 50%), var(--surface);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.split-visual img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
}

.feature-list svg {
  width: 22px;
  height: 22px;
  color: var(--ok);
  margin-top: 2px;
}

/* Brands strip */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 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;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 30, 48, 0.65);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  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.1rem 1.1rem;
  color: var(--muted);
}

/* Page hero compact */
.page-hero {
  padding: 2.6rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(42, 168, 255, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(18, 30, 48, 0.55), transparent);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Article layout */
.article-layout {
  display: grid;
  gap: 2rem;
  padding: 2.2rem 0 4rem;
}

.article-cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 1rem 0 1.4rem;
  aspect-ratio: 16 / 8;
  background: var(--surface);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.sidebar-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  background: rgba(18, 30, 48, 0.7);
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.sidebar-box a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
}

.sidebar-box a:last-child {
  border-bottom: 0;
}

/* Category detail tiles */
.tile-grid {
  display: grid;
  gap: 1rem;
}

.tile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 30, 48, 0.55);
}

.tile img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #05080f;
  border-radius: 14px;
  padding: 0.35rem;
}

.tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tile p {
  margin: 0;
  font-size: 0.9rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--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.6rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050a12;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 0.28rem 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.promo-banner {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}

.promo-banner img {
  width: min(100%, 420px);
  height: auto;
}

.cta-band {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(230, 178, 58, 0.28);
  background:
    linear-gradient(120deg, rgba(230, 178, 58, 0.12), rgba(42, 168, 255, 0.08)),
    var(--surface);
}

.cta-band h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
}

/* Responsive */
@media (min-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-strip {
    grid-template-columns: repeat(8, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }

  .desktop-auth {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-panel,
  .menu-overlay {
    display: none !important;
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .hero-content {
    padding-bottom: 4rem;
  }
}

@media (max-width: 979px) {
  .brand-text {
    display: none;
  }
}
