@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: #070b14;
  --bg-2: #0d1424;
  --surface: #121a2c;
  --surface-2: #182338;
  --line: rgba(125, 168, 255, 0.16);
  --text: #edf3ff;
  --muted: #93a4c3;
  --accent: #3d8bfd;
  --accent-2: #1f6fe6;
  --accent-soft: rgba(61, 139, 253, 0.14);
  --gold: #d4b15a;
  --danger: #ef5b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --nav-h: 72px;
  --max: 1140px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 139, 253, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(212, 177, 90, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, #08101c 100%);
  line-height: 1.7;
  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: #7eb4ff;
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  max-height: calc(var(--nav-h) - 16px);
}

.brand img {
  height: 44px;
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 1.15rem;
}

.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;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  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(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 111, 230, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(125, 168, 255, 0.4);
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  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, 13, 24, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
  z-index: 999;
}

.mobile-panel.open {
  display: block;
  animation: drop 0.25s ease;
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-panel nav {
  display: grid;
  gap: 0.35rem;
}

.mobile-panel a {
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-auth {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  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, 11, 20, 0.35) 0%, rgba(7, 11, 20, 0.72) 48%, rgba(7, 11, 20, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.75), transparent 55%);
}

.hero-content {
  padding: 4.5rem 0 3.5rem;
  max-width: 680px;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  background: linear-gradient(180deg, #fff 20%, #9ec3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 680px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.55), rgba(18, 26, 44, 0.2));
  border-block: 1px solid var(--line);
}

.prose {
  color: #c7d3ea;
  max-width: 72ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  color: var(--text);
  margin: 1.8rem 0 0.7rem;
}

.prose a.ext {
  color: #8fbbff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-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;
}

.cat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 139, 253, 0.45);
}

.cat-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(61, 139, 253, 0.18), transparent 65%), #0a101c;
  padding: 0.75rem;
}

.cat-item span {
  display: block;
  padding: 0.85rem 1rem 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.article-card {
  background: var(--surface);
  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(-4px);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a101c;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.05);
}

.article-card .body {
  padding: 1rem 1.05rem 1.2rem;
}

.article-card .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.article-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
  font-family: var(--display);
}

.article-card h3 a {
  color: var(--text);
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Intro / split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.split-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.split-visual img {
  width: 100%;
  display: block;
}

.phone-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(61, 139, 253, 0.2), transparent 55%),
    linear-gradient(160deg, #10182a, #0a1220);
}

.phone-wrap img {
  width: min(280px, 70%);
  height: auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-family: var(--display);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* Page hero small */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(61, 139, 253, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(18, 26, 44, 0.65), transparent);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0.4rem 0 0.7rem;
  line-height: 1.25;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  background: #0a101c;
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.side-box h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.side-list a {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.side-list a:hover {
  color: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.tag {
  font-size: 0.78rem;
  color: #b9cdf0;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

/* Category showcase */
.cat-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.cat-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.cat-block img {
  width: 140px;
  height: 120px;
  object-fit: contain;
  background: #0a101c;
  border-radius: 10px;
}

.cat-block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.cat-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  max-width: 420px;
  margin: 0.8rem auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060a12;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.8rem;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-family: var(--display);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  color: #7383a3;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.2rem;
}

.brand-strip img {
  height: 28px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.2);
}

.promo-banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}

.promo-banner img {
  width: 100%;
  height: auto;
}

.list-page .article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.list-page .article-card .thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 150px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.motion-fade {
  animation: fadeUp 0.7s ease both;
}

.motion-delay-1 { animation-delay: 0.12s; }
.motion-delay-2 { animation-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .cat-grid,
  .card-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .article-layout,
  .footer-grid,
  .cat-showcase {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

  .list-page .article-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-desktop,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 36px;
    max-height: 36px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .cat-grid,
  .card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .cat-block {
    grid-template-columns: 100px 1fr;
  }

  .cat-block img {
    width: 100px;
    height: 90px;
  }

  .section {
    padding: 3rem 0;
  }
}
