/* QuickPanel landing — dark, minimalist, brand #336699 + #7f7f7f + silver aluminium. */

:root {
  --bg:        #14171b;
  --bg-alt:    #1b1f24;
  --bg-deep:   #0e1013;
  --text:      #e8eaed;
  --muted:     #9a9ea3;
  --faint:     #6f7378;
  --gray:      #7f7f7f;
  --brand:     #336699;
  --brand-lt:  #5a8fc7;
  --brand-dk:  #284f73;
  --line:      rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --maxw:      1120px;
  --radius:    12px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: 9px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-primary:hover { background: var(--brand-lt); }
.btn-primary:active { transform: scale(.98); }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--brand-lt); font-size: 15px; padding: 13px 8px;
}
.btn-ghost:hover { color: #9cc1e6; }

/* ── Header ── */
#site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 28px;
  background: linear-gradient(180deg, #eef0f2 0%, #dadee2 55%, #cdd2d7 100%);
  border-bottom: 1px solid rgba(0,0,0,0.14);
  transition: box-shadow .2s;
}
#site-header.scrolled { box-shadow: 0 3px 16px rgba(0,0,0,0.30); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }

.header-end { display: flex; align-items: center; gap: 16px; }
#site-nav { display: flex; align-items: center; gap: 26px; }
#site-nav > a { color: #4a4f55; font-size: 14px; transition: color .15s; }
#site-nav > a:hover, #site-nav > a.active { color: #1c1f22; }
.nav-cta { color: #fff !important; }

/* ── Language switch ── */
.lang-switch { position: relative; }
#lang-btn {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.45); border: 1px solid rgba(0,0,0,0.18); color: #4a4f55;
  font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
#lang-btn:hover { color: #1c1f22; border-color: rgba(0,0,0,0.32); background: rgba(255,255,255,0.7); }
#lang-btn span, #lang-btn .lang-caret { display: none; }
.flag {
  width: 22px; height: 16px; flex: 0 0 auto; display: block; object-fit: cover;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}
#lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  list-style: none; margin: 0; padding: 6px;
  background: #ffffff; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px; min-width: 150px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang-switch.open #lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#lang-menu a {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 7px;
  font-size: 14px; color: #4a4f55; transition: background .12s, color .12s;
}
#lang-menu a:hover { background: rgba(0,0,0,0.05); color: #1c1f22; }
#lang-menu a.active { color: var(--brand); }

/* ── Layout helpers ── */
.band-inner, .hero-inner, .cta-inner, .footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
}
.band { background: var(--bg-alt); }
#how {
  background:
    radial-gradient(ellipse at 88% 15%, rgba(51,102,153,0.16) 0%, transparent 52%),
    var(--bg-alt);
}
#gallery {
  background:
    radial-gradient(ellipse at 12% 85%, rgba(51,102,153,0.14) 0%, transparent 52%),
    var(--bg-alt);
}
section { padding: 76px 0; }
.eyebrow {
  font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 30px;
}
.section-lead { color: var(--muted); margin: -18px 0 36px; max-width: 540px; }

/* ── Hero ── */
#hero { position: relative; overflow: hidden; padding: 86px 0 80px; }
.hero-glow {
  position: absolute; right: -120px; top: -120px;
  width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, rgba(51,102,153,0.30) 0%, rgba(51,102,153,0) 68%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center;
}
.hero-copy h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; }
.hero-copy .lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  margin: 20px 0 32px; max-width: 420px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-shot { display: flex; justify-content: center; }
.hero-shot img, .hero-shot .shot-svg {
  width: 100%; max-width: 480px; border-radius: var(--radius);
}

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-ico, .why-ico { display: block; width: 30px; height: 30px; color: var(--brand-lt); margin-bottom: 14px; }
.why-ico { color: #9aa6b0; }
.step h3, .why-card h3 { font-size: 18px; margin-bottom: 7px; }
.step p, .why-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ── Why grid ── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
#why .why-card { background: var(--bg-alt); }
#why {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(51,102,153,0.14) 0%, transparent 52%),
    var(--bg);
}

/* ── Gallery slider ── */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 4px; }
.gal-slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; margin: 0; }
.gal-slide img, .gal-slide .tile-svg {
  width: 100%; height: 220px; border-radius: var(--radius); object-fit: cover; display: block;
}
.tile-svg { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tile-hole { width: 16px; height: 16px; border-radius: 50%; }
.tile-slot { width: 34px; height: 12px; border-radius: 3px; }

.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,23,27,0.72); border: 1px solid var(--line); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .15s, border-color .15s;
}
.gal-nav:hover { background: var(--brand); border-color: var(--brand); }
.gal-nav svg { width: 22px; height: 22px; }
.gal-nav[hidden] { display: none; }
.gal-prev { left: -10px; }
.gal-next { right: -10px; }
.gal-slide img { cursor: zoom-in; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,10,12,0.94); padding: 40px;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; cursor: pointer; border-radius: 50%;
  transition: background .15s, border-color .15s;
}
.lb-close:hover, .lb-nav:hover { background: var(--brand); border-color: var(--brand); }
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-nav[hidden] { display: none; }
@media (max-width: 480px) {
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

/* ── Final CTA ── */
#cta {
  text-align: center; padding: 90px 0;
  position: relative;
  background:
    radial-gradient(ellipse 28% 60% at 80% 50%, rgba(51,102,153,0.24) 0%, transparent 100%),
    var(--bg);
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 38% 70% at 80% 50%, rgba(51,102,153,0.48) 0%, transparent 100%);
  opacity: 0;
  pointer-events: none;
}

.cta-inner h2 { font-size: clamp(26px, 3.5vw, 36px); }
.cta-inner p { color: var(--muted); font-size: 17px; margin: 14px 0 30px; }

/* ── Footer ── */
#site-footer {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(51,102,153,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(51,102,153,0.10) 0%, transparent 50%),
    var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  padding-top: 48px; padding-bottom: 32px;
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: var(--faint); font-size: 14px; margin: 0; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-h { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 6px; }
.footer-contact a { color: var(--muted); font-size: 15px; transition: color .15s; }
.footer-contact a:hover { color: var(--brand-lt); }
.footer-company p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.footer-company p.footer-h { color: var(--text); font-size: 13px; margin: 0 0 6px; }
.footer-company strong { color: var(--text); font-weight: 600; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 13px;
}

/* ── Wiki ── */
#wiki {
  padding: 48px 0 80px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(51,102,153,0.14) 0%, transparent 45%),
    var(--bg);
}
.wiki-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start;
}
.wiki-article { max-width: 760px; min-width: 0; }
.wiki-article h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.wiki-article h2 {
  font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  margin: 40px 0 14px;
}
.wiki-article p, .wiki-article li { color: #c9ccd0; font-size: 16px; }
.wiki-article p { margin: 0 0 14px; }
.wiki-article ul, .wiki-article ol { margin: 0 0 16px; padding-left: 22px; }
.wiki-article li { margin-bottom: 6px; }
.wiki-article strong { color: var(--text); }
.wiki-article a { color: var(--brand-lt); }
.wiki-article a:hover { color: #9cc1e6; text-decoration: underline; }
.wiki-article code, .wiki-article kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em;
  background: rgba(255,255,255,0.07); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}
.wiki-article kbd { border-bottom-width: 2px; }
.wiki-article .wiki-lead { font-size: 18px; color: var(--muted); }
.wiki-article .wiki-missing { color: #e0b26b; }
.wiki-article .wiki-crumb { font-size: 14px; color: var(--faint); margin-bottom: 8px; }
.wiki-article .wiki-crumb a { color: var(--muted); }
.wiki-article .wiki-ask { margin-top: 36px; color: var(--muted); }

/* FAQ accordion: native <details>, opened by a #hash link too (site.js). */
.wiki-article details {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  margin-bottom: 10px; scroll-margin-top: 90px;
  transition: border-color .15s;
}
.wiki-article details[open] { border-color: rgba(90,143,199,0.45); }
.wiki-article summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 14px 44px 14px 18px; font-weight: 500; color: var(--text);
}
.wiki-article summary::-webkit-details-marker { display: none; }
.wiki-article summary::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s var(--ease);
}
.wiki-article details[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
.wiki-article summary:hover { color: #fff; }
.faq-a { padding: 0 18px 6px; }

.wiki-figures { display: flex; flex-wrap: wrap; gap: 20px; margin: 8px 0 28px; max-width: 720px; }
/* Side by side at the same height: each figure's flex-grow (inline) is its photo's
   width, so the widths share the row in the photos' proportions; stacked on phones. */
.wiki-figures figure { margin: 0; flex: 1 1 0; min-width: 0; }
.wiki-figures img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 480px) {
  .wiki-figures figure { flex-basis: 100%; }
}
.wiki-figures figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wiki-card {
  display: block; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .15s, transform .15s var(--ease);
}
.wiki-article .wiki-card:hover { border-color: var(--brand-lt); transform: translateY(-2px); text-decoration: none; }
.wiki-card h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.wiki-article .wiki-card p { font-size: 14px; color: var(--muted); margin: 0; }

.wiki-nav { position: sticky; top: 96px; }
.wiki-nav-h {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 8px;
}
.wiki-nav ul { list-style: none; margin: 0 0 22px; padding: 0; border-left: 1px solid var(--line); }
.wiki-nav a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px;
  border-left: 2px solid transparent; color: var(--muted); font-size: 14px;
  transition: color .15s, border-color .15s;
}
.wiki-nav a:hover { color: var(--text); }
.wiki-nav a.active { color: var(--text); border-left-color: var(--brand-lt); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-slide { flex-basis: calc((100% - 16px) / 2); }

  /* Phones keep only the wiki link (the landing sections are a scroll away). */
  #site-nav > a:not(.nav-wiki) { display: none; }

  .wiki-inner { grid-template-columns: 1fr; gap: 28px; }
  .wiki-nav { position: static; border-top: 1px solid var(--line); padding-top: 24px; }

  /* Contact and company share one row under the brand. */
  .footer-cols { width: 100%; gap: 24px; }
  .footer-cols > * { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .gal-slide { flex-basis: 86%; }
  .gal-slide img, .gal-slide .tile-svg { height: 180px; }
  section { padding: 56px 0; }
}
