@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap");

:root {
  --bg: #f3f6fb;
  --bg-deep: #0a1628;
  --surface: #ffffff;
  --ink: #0e1c2f;
  --ink-soft: #51657d;
  --brand: #1d6ef5;
  --brand-2: #0ea5c6;
  --gold: #d4a017;
  --line: #d7e0ec;
  --nav-h: 70px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(14, 28, 47, 0.1);
  --max: 1160px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Outfit", "Be Vietnam Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(29, 110, 245, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(14, 165, 198, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3fa 0%, var(--bg) 28%, #f7f9fc 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.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;
  text-decoration: none;
  max-width: min(48vw, 220px);
}

.brand img {
  height: 36px;
  width: auto;
  max-height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f4f7fb;
  font-size: 1.15rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  color: rgba(244, 247, 251, 0.88);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 110, 245, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid rgba(29, 110, 245, 0.35);
}

.btn-outline:hover {
  background: rgba(29, 110, 245, 0.08);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  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;
  top: var(--nav-h);
  right: 0;
  left: 0;
  background: #0d1b30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel a {
  display: block;
  color: #eef3fa;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.mobile-panel .auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-panel .auth-row .btn {
  width: 100%;
}

main {
  padding-top: var(--nav-h);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 18, 34, 0.88) 0%, rgba(10, 28, 52, 0.72) 48%, rgba(8, 18, 34, 0.55) 100%),
    url("banner.3dd2.webp") center / cover no-repeat,
    var(--bg-deep);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd4ff;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 36rem;
  color: rgba(238, 243, 250, 0.88);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: floatY 5.5s ease-in-out infinite;
}

.hero-visual img {
  width: min(100%, 380px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.section-link {
  font-weight: 700;
  white-space: nowrap;
}

.intro-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.intro-block h2 {
  font-family: var(--display);
  margin: 0 0 0.85rem;
  font-size: 1.7rem;
}

.intro-block p {
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.intro-media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(29, 110, 245, 0.18), transparent 60%),
    #0b1728;
  border-radius: 16px;
  min-height: 280px;
  padding: 1.2rem;
}

.intro-media img {
  width: min(100%, 280px);
}

.prose {
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.01em;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1728;
  text-decoration: none;
  color: #fff;
  min-height: 180px;
  display: flex;
  align-items: end;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.16);
}

.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 22, 40, 0.22);
  text-decoration: none;
}

.cat-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 30%;
  padding: 1rem 1rem 2.4rem;
  transition: transform 0.35s;
}

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item span {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(5, 12, 24, 0.92));
  font-weight: 700;
  font-size: 0.98rem;
}

/* Cards / articles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(14, 28, 47, 0.05);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  background: #0b1728;
  overflow: hidden;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.6rem;
  transition: transform 0.35s;
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.article-card .body {
  padding: 1rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.tag {
  display: inline-flex;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(29, 110, 245, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.article-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--brand);
}

.article-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

.meta {
  font-size: 0.8rem;
  color: #7a8ea5;
}

/* Brand strip */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.brand-strip img {
  max-height: 42px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(0.15);
  opacity: 0.9;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Page hero (inner) */
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.8rem;
  box-shadow: 0 8px 24px rgba(14, 28, 47, 0.04);
}

.article-cover {
  border-radius: 14px;
  overflow: hidden;
  background: #0b1728;
  margin-bottom: 1.2rem;
}

.article-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto;
  padding: 1rem;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sidebar-box h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-family: var(--display);
}

.related-list {
  display: grid;
  gap: 0.75rem;
}

.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.related-item:hover {
  text-decoration: none;
}

.related-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #0b1728;
  border-radius: 10px;
  padding: 0.25rem;
}

.related-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Content page */
.content-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.6rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(14, 28, 47, 0.04);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  margin: 0 0 0.5rem;
}

.error-page p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 auto 1.4rem;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(238, 243, 250, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-family: var(--display);
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(238, 243, 250, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: center;
  background: linear-gradient(120deg, #0b1728, #12325a);
  color: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
}

.promo-banner h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.45rem;
}

.promo-banner p {
  margin: 0 0 1rem;
  color: rgba(238, 243, 250, 0.85);
}

.promo-banner img {
  justify-self: end;
  max-height: 110px;
  width: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .intro-block,
  .article-layout,
  .footer-grid,
  .promo-banner {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-banner img {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-actions .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 2.4rem 0 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(100%, 260px);
  }

  .section {
    padding: 3rem 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .brand img {
    height: 32px;
  }
}

@media (max-width: 520px) {
  .cat-grid,
  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-main,
  .content-shell {
    padding: 1.1rem;
  }
}
