/* ==========================================================
   vkquake.com - main stylesheet
   Simple and easy to edit. All font sizes are in px.
   Change the colours in :root to re-theme the whole site.
   ========================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ==========================================================
   EASY EDIT: FONT SIZES
   Change a size here and it changes everywhere on the site.
   Desktop sizes are first, mobile sizes are in the block below.
   ========================================================== */
:root {
  --size-hero-h1: 36px;     /* big title at the top of the homepage */
  --size-page-h1: 40px;     /* title on blog posts and other pages */
  --size-h2: 34px;          /* section titles */
  --size-h3: 21px;          /* card titles */
  --size-body: 17px;        /* normal text */
  --size-hero-text: 19px;   /* paragraph under the hero title */
}
@media (max-width: 640px) {
  :root {
    --size-hero-h1: 30px;   /* hero title on phones */
    --size-page-h1: 30px;
    --size-h2: 28px;
    --size-body: 16px;
    --size-hero-text: 17px;
  }
}

/* ---------- Colours ---------- */
:root {
  --primary: #A81C2E;      /* Vulkan red - buttons, links */
  --primary-dark: #861523;
  --secondary: #2B3440;    /* slate - dark bands, footer */
  --accent: #0F7F86;       /* slipgate teal - highlights */
  --bg: #F3F4F2;           /* page background */
  --card: #FFFFFF;         /* cards and panels */
  --text: #1F242B;         /* main text */
  --muted: #5A636E;        /* secondary text */
  --border: #DADDE1;
  --success: #1E8E4E;
  --warning: #B7791F;
  --error: #C0352B;
  --radius: 10px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: var(--size-body);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Poppins", Arial, sans-serif; font-weight: 600; line-height: 1.25; margin: 0 0 14px; color: var(--text); }
h1 { font-size: var(--size-page-h1); font-weight: 700; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: 17px; }
p { margin: 0 0 16px; }
code, kbd, pre { font-family: "JetBrains Mono", Consolas, monospace; font-size: 15px; }
code { background: #E9EBEE; padding: 2px 6px; border-radius: 4px; }
kbd { background: var(--card); border: 1px solid var(--border); border-bottom-width: 2px; padding: 1px 7px; border-radius: 4px; }
pre { background: #20262E; color: #E6E8EB; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; line-height: 1.6; }
pre code { background: none; padding: 0; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 80px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 2px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 15px; }

/* ---------- Header (sticky, no buttons) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; object-fit: contain; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a { color: var(--text); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 16px; cursor: pointer; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.tagline { color: var(--accent); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.hero h1 { font-size: var(--size-hero-h1); }
.hero-desc { font-size: var(--size-hero-text); color: var(--muted); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 5px 14px; font-size: 14px; color: var(--muted); }
.chip strong { color: var(--text); }
.hero-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #2B3440; }
.version-line { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--muted); margin-top: 12px; }
.stars { color: #D99A1E; letter-spacing: 2px; }

/* ---------- Trust bar ---------- */
.trust { background: var(--secondary); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: "Poppins", sans-serif; font-size: 20px; }
.trust-item span { font-size: 14px; color: #C3CAD3; }

/* ---------- Generic grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section-alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; }
.quote { border-left: 4px solid var(--accent); padding: 18px 22px; background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 10px; }
.quote p { font-size: 18px; }
.quote cite { font-style: normal; color: var(--muted); font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.facts li span { color: var(--muted); }

/* Features */
.feature .icon { width: 46px; height: 46px; border-radius: 10px; background: #F6E6E8; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #EEF0F2; font-weight: 600; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--success); font-weight: 600; }
.no { color: var(--error); font-weight: 600; }
.part { color: var(--warning); font-weight: 600; }

/* Download box */
.download-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.download-main { padding: 34px; background: var(--secondary); color: #fff; }
.download-main h3 { color: #fff; font-size: 26px; }
.download-main p { color: #C3CAD3; }
.download-main .facts li { border-color: rgba(255,255,255,.14); }
.download-main .facts li span { color: #C3CAD3; }
.download-files { padding: 30px 34px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.file-row:last-of-type { border-bottom: 0; }
.file-row strong { display: block; font-size: 16px; }
.file-row span { color: var(--muted); font-size: 14px; }
.hash { font-family: "JetBrains Mono", monospace; font-size: 13px; word-break: break-all; background: #EEF0F2; padding: 10px 12px; border-radius: 6px; margin-top: 8px; }
.badge-ok { display: inline-block; background: #E3F3E9; color: var(--success); font-weight: 600; font-size: 14px; padding: 3px 10px; border-radius: 20px; }

/* Install tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { background: var(--card); border: 1px solid var(--border); padding: 10px 20px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--text); font-family: inherit; }
.tab[aria-selected="true"] { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.tab-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.tab-panel[hidden] { display: none; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 10px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.note { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: 8px; padding: 14px 18px; font-size: 16px; }

/* How it works */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: f; list-style: none; padding: 0; margin: 0; }
.flow li { counter-increment: f; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; }
.flow li::before { content: "Step " counter(f); display: block; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.flow h3 { font-size: 17px; }
.flow p { font-size: 15px; color: var(--muted); margin: 0; }

/* Pros & cons */
.pros, .cons { border-top: 4px solid var(--success); }
.cons { border-top-color: var(--error); }
.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--border); font-size: 16px; }
.pc-list li:last-child { border-bottom: 0; }
.pros .pc-list li::before { content: "+"; position: absolute; left: 4px; color: var(--success); font-weight: 700; font-size: 20px; line-height: 1.2; }
.cons .pc-list li::before { content: "\2212"; position: absolute; left: 4px; color: var(--error); font-weight: 700; font-size: 20px; line-height: 1.2; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; border: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Skeleton loading (shown until an image loads) */
.skeleton { background: linear-gradient(90deg, #E4E6E9 0%, #EEF0F2 50%, #E4E6E9 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.loaded { animation: none; background: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Reviews */
.review .stars { font-size: 16px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.review-head strong { display: block; font-size: 16px; }
.review-head span { font-size: 14px; color: var(--muted); }
.verified { color: var(--success); font-size: 13px; font-weight: 600; }
.review p { font-size: 16px; }

/* FAQ */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.faq-cat { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 16px; }
.faq-cat svg { width: 26px; height: 26px; color: var(--primary); }
details { background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; font-size: 16px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; color: var(--primary); }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 18px 16px; color: var(--muted); font-size: 16px; }

/* Blog cards */
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.post-card h3 { font-size: 19px; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .meta { font-size: 14px; color: var(--muted); }

/* Contact */
.map-box { min-height: 260px; border-radius: var(--radius); border: 1px dashed #B9BEC5; background: repeating-linear-gradient(45deg, #EEF0F2, #EEF0F2 12px, #F6F7F8 12px, #F6F7F8 24px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; text-align: center; padding: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-list strong { display: block; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------- Page header & breadcrumb ---------- */
.page-head { padding: 54px 0 30px; }
.page-head h1 { font-size: var(--size-page-h1); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 28px; margin-top: 42px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose table { font-size: 16px; }
.prose .table-wrap { margin: 10px 0 24px; }

/* ---------- Article (blog post) ---------- */
.article-head { padding: 46px 0 28px; }
.article-head .cat { display: inline-block; background: #E1F0F1; color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.article-head h1 { font-size: var(--size-page-h1); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 15px; }
.article-meta .avatar { width: 38px; height: 38px; font-size: 14px; }
.author-line { display: flex; align-items: center; gap: 10px; }
.author-line strong { color: var(--text); }
.featured { margin: 0 0 40px; }
.featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.article-body figure { margin: 30px 0; }
.article-body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.article-body figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; text-align: center; }
.toc { position: sticky; top: 94px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.toc h2 { font-size: 17px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text); }
.toc .dl { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; }
.author-box { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 40px 0; }
.author-box .avatar { width: 58px; height: 58px; font-size: 18px; }
.author-box p { font-size: 16px; color: var(--muted); margin: 0; }
.related { padding: 60px 0; border-top: 1px solid var(--border); background: var(--card); }

/* ---------- Footer (no social icons) ---------- */
.site-footer { background: var(--secondary); color: #C3CAD3; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C3CAD3; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 6px; border: 1px solid #4A5563; background: #343E4B; color: #fff; font-size: 15px; font-family: inherit; }
.newsletter button { padding: 11px 16px; border-radius: 6px; border: 0; background: var(--primary); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; }
.newsletter-msg { font-size: 14px; color: #9FD8B5; margin-top: 8px; min-height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Scroll reveal (single, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .skeleton { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .download-box, .article-layout { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .grid-3, .grid-2, .faq-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .section { padding: 56px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .flow, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .file-row { flex-direction: column; align-items: flex-start; }
}
