/* AVcesar-inspired cinematic theme for Bytemio + standardized header/footer. */

/* ---------- header / footer (standard layout) ---------- */
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #4f9dff;
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 60;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-header {
  background: #0b0c0e;
  border-bottom: 1px solid #262a31;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.site-header .logo {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f4f8;
  text-decoration: none;
}
.site-header .logo span { color: #4f9dff; }
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header .nav > a { color: #c9cfd9; text-decoration: none; }
.site-header .nav > a:hover { color: #4f9dff; }
.site-header .dropdown { position: relative; }
.site-header .dropdown summary {
  cursor: pointer;
  list-style: none;
  color: #c9cfd9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-header .dropdown summary::-webkit-details-marker { display: none; }
.site-header .dropdown summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.site-header .dropdown[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.site-header .dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  min-width: 220px;
  background: #14161a;
  border: 1px solid #262a31;
  border-radius: 10px;
  padding: 0.5rem;
  display: grid;
  gap: 0.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.site-header .dropdown-menu a {
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  color: #c9cfd9;
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
}
.site-header .dropdown-menu a:hover { background: #1c1f25; color: #fff; }

.site-footer {
  background: #0b0c0e;
  border-top: 1px solid #262a31;
  color: #c9cfd9;
  padding-top: 3rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f2f4f8;
  margin: 0 0 0.8rem;
}
.footer-logo span { color: #4f9dff; }
.site-footer p { color: #8b93a1; font-size: 0.9rem; }
.site-footer h3 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f9dff;
  margin: 0 0 0.9rem;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a { color: #8b93a1; text-decoration: none; font-size: 0.9rem; }
.site-footer li a:hover { color: #f2f4f8; }
.footer-bottom {
  border-top: 1px solid #262a31;
  padding: 1.1rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.78rem; color: #6d7480; }

/* ---------- main ---------- */
main {
  --t-bg: #0b0c0e;
  --t-surface: #14161a;
  --t-ink: #f2f4f8;
  --t-text: #c9cfd9;
  --t-muted: #8b93a1;
  --t-accent: #4f9dff;
  --t-line: #262a31;
  --t-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-mono: Consolas, "Courier New", monospace;
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--t-sans);
}

main .container { width: min(100% - 40px, 1180px); margin-inline: auto; }

main h1, main h2, main h3, main h4 {
  font-family: var(--t-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t-ink);
  line-height: 1.1;
}

main .eyebrow,
main .hero-kicker,
main .cat-code,
main .guide-meta,
main .value-num,
main .mono {
  font-family: var(--t-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-muted);
}
main .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
main .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--t-accent); display: inline-block; }

/* hero */
main .hero { background: #000; }
main .hero-photo { filter: saturate(0.9) contrast(1.02); }
main .hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 46%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 60%);
}
main .hero-inner { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem); }
main .hero-kicker { color: var(--t-accent); }
main .hero-kicker .dot { background: var(--t-accent); }
main .hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.4rem); font-weight: 300; color: #fff; max-width: 19ch; }
main .hero h1 span { color: #fff; border-bottom: 3px solid var(--t-accent); }
main .hero-lede { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; max-width: 56ch; }
main .hero-actions { margin-bottom: 2.4rem; }
main .btn,
main .hero .btn {
  border-radius: 1px;
  background: var(--t-accent);
  border: 1px solid var(--t-accent);
  color: #06121f;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
}
main .hero .btn-ghost,
main .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
main .hero-stats b { font-family: var(--t-sans); font-weight: 300; color: #fff; }
main .hero-stats span { color: rgba(255, 255, 255, 0.6); }

main .float-card {
  background: var(--t-surface);
  border: 1px solid var(--t-line);
  color: var(--t-text);
  border-radius: 2px;
  box-shadow: none;
}
main .float-card .eyebrow { color: var(--t-accent); }
main .float-card .text-link { color: var(--t-accent); }

/* sections */
main .section { padding: clamp(3rem, 6vw, 4.8rem) 0; }
main .section-tint { background: var(--t-surface); }
main .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
main .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
main .section-sub { color: var(--t-muted); max-width: 46ch; }
main .text-link { color: var(--t-accent); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }

/* category tiles */
main .cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--t-line); border: 1px solid var(--t-line); }
main .cat-tile { background: var(--t-bg); padding: 1.3rem 1.2rem 1.4rem; border-radius: 0; border: 0; }
main .cat-tile:hover { background: var(--t-surface); transform: none; box-shadow: none; }
main .cat-code { color: var(--t-accent); display: block; margin-bottom: 0.6rem; }
main .cat-name { font-family: var(--t-sans); font-size: 1rem; color: var(--t-ink); }
main .cat-sub { color: var(--t-muted); font-size: 0.8rem; }
main .cat-count { color: var(--t-muted); font-family: var(--t-mono); font-size: 0.68rem; }

/* cards */
main .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
main .guide-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
main .guide-card:hover { transform: none; box-shadow: none; }
main .guide-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1d22; }
main .guide-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s ease, transform 0.5s ease; }
main .guide-card:hover .guide-media img { opacity: 1; transform: scale(1.03); }
main .guide-body { padding: 1rem 0 0; }
main .guide-body .eyebrow { color: var(--t-accent); }
main .guide-title { font-size: 1.24rem; font-weight: 600; }
main .guide-title a { color: var(--t-ink); text-decoration: none; }
main .guide-title a:hover { color: var(--t-accent); }
main .guide-excerpt { color: var(--t-muted); font-size: 0.9rem; }
main .guide-meta { border-top: 1px solid var(--t-line); padding-top: 0.7rem; color: var(--t-muted); }
main .guide-meta .go { color: var(--t-accent); }

/* values */
main .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--t-line); border: 1px solid var(--t-line); }
main .value { background: var(--t-bg); border: 0; border-radius: 0; padding: 1.6rem 1.5rem; }
main .value-num { color: var(--t-accent); }
main .value h3 { color: var(--t-ink); font-size: 1.12rem; }
main .value p { color: var(--t-muted); }

/* pages + article */
main .page-head h1 { color: var(--t-ink); font-weight: 600; }
main .kicker { color: var(--t-accent); font-family: var(--t-mono); }
main .lede { color: var(--t-muted); }
main .article-head h1 { color: var(--t-ink); }
main .article-head .eyebrow { color: var(--t-accent); }
main .prose { color: var(--t-text); }
main .prose h2, main .prose h3 { color: var(--t-ink); }
main .prose a { color: var(--t-accent); }
main .prose strong { color: var(--t-ink); }
main .prose blockquote { border-left: 3px solid var(--t-accent); margin-left: 0; padding-left: 1.2rem; color: var(--t-muted); }
main .article-figure figcaption { color: var(--t-muted); }
main .article-side .side-card,
main .article-side > div { background: var(--t-surface); border-color: var(--t-line); }
main .faq details { border-top: 1px solid var(--t-line); }
main .faq summary { color: var(--t-ink); }
main .related h2 { color: var(--t-ink); }
main .breadcrumb a { color: var(--t-accent); }

@media (max-width: 960px) {
  main .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  main .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  main .cat-tiles { grid-template-columns: 1fr; }
  main .card-grid { grid-template-columns: 1fr; }
  main .hero h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
