/* The Gondwana Drive website — one stylesheet, system fonts only (no web fonts or CDNs: they are slow or blocked in mainland
   China). Light and dark follow the visitor's system setting. */
:root {
  --bg: #ffffff; --bg-alt: #f4f6f8; --text: #1d2329; --muted: #57616b; --line: #d8dee4;
  --accent: #0b5cad; --accent-dark: #08467f; --accent-soft: #e6f0fa; --ok: #1f7a3d;
  --radius: 10px; --wide: 1200px;
  --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12161b; --bg-alt: #1a2027; --text: #e6eaee; --muted: #9aa5b0; --line: #2d3640;
          --accent: #5aa5f0; --accent-dark: #7db8f5; --accent-soft: #17283a; --ok: #5cc17f; }
  .figure img { background: #ffffff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
         backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand svg.mark { flex: none; color: var(--accent); }
.brand svg.mark .hole { fill: var(--bg); }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; color: var(--text) !important; }

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 18px; max-width: 760px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.chips li { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--bg); }

/* hero picture: the board on the right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(10, 47, 92, .22)); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
section h2 { font-size: 28px; margin: 0 0 8px; }
section .intro { color: var(--muted); max-width: 760px; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
              display: grid; place-items: center; margin-bottom: 12px; font-weight: 700; }

/* specifications */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs th { width: 30%; font-weight: 600; color: var(--text); }
.specs td { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.figure { margin: 28px 0 0; }
.figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

section.alt-soft { background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.line-fig img { border: none; background: transparent; }

/* the set: three board renders */
.set-h { margin: 36px 0 14px; font-size: 20px; }
.set { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.set-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.set-card img { width: 100%; height: 220px; object-fit: contain; display: block; }
.set-card a { display: block; cursor: zoom-in; }
.set-card figcaption { font-size: 14px; color: #57616b; margin-top: 10px; }
.set-card figcaption b { display: block; color: #1d2329; font-size: 15px; margin-bottom: 2px; }

/* two columns */
.cols { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cols > *, .grid > *, .steps > li { min-width: 0; }      /* a long code line must scroll inside its box, not widen the page */
.specs td { overflow-wrap: anywhere; }
.cols ul { padding-left: 20px; margin: 0; }
.cols li { margin: 6px 0; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto;
      font: 13px/1.5 var(--mono); color: var(--text); }
.sample img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
         grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
                    background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.after-steps { margin-top: 24px; }
.intro.centred { margin-left: auto; margin-right: auto; }

/* contact + footer */
.contact { text-align: center; }
.contact .mail { font-size: 22px; font-weight: 600; }
.contact .soon { font-size: 18px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 760px) {
  nav a:not(.lang) { display: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .specs th { width: 40%; }
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
}
