/* Siliqs site — shared styles. No external dependencies. */
:root {
  --brand:      #1f4e79;   /* deep enclosure blue */
  --brand-dark: #15263a;   /* navy label */
  --accent:     #2f80c8;   /* LED blue */
  --accent-2:   #3fa7d6;
  --ink:        #1f2933;
  --muted:      #5b6770;
  --line:       #e2e8f0;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fa;
  --bg-dark:    #12233a;
  --radius:     12px;
  --maxw:       1120px;
  --shadow:     0 6px 24px rgba(21, 38, 58, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
               "Microsoft JhengHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--brand-dark); font-weight: 700; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--brand); cursor: pointer; transition: .15s;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
         font-size: 1.25rem; color: var(--brand-dark); }
.brand:hover { text-decoration: none; }
.brand .logo { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
/* keep primary buttons in the nav white — .nav-links a would otherwise darken the text */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--brand); }
.lang-toggle {
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .85rem;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(160deg, #f3f7fb 0%, #ffffff 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 16px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; }
.hero-img { display: flex; justify-content: center; }
.hero-img img { max-height: 460px; filter: drop-shadow(0 18px 30px rgba(21,38,58,.18)); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
           font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.price { font-size: 1.7rem; font-weight: 800; color: var(--brand-dark); margin: 0 0 20px; }
.card-price { font-size: 1.15rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 12px; }

/* Product cards grid */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21,38,58,.14); }
.card .thumb { background: var(--bg-alt); padding: 24px; display: flex; justify-content: center; }
.card .thumb img { max-height: 200px; }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card .body p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.card.soon { opacity: .6; }
.tag { display: inline-block; background: #eef4fb; color: var(--brand);
       font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
       text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; align-self: flex-start; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { display: flex; gap: 14px; }
.feature .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
                background: #eef4fb; color: var(--brand); display: grid; place-items: center; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Inline diagram (bilingual SVG) */
.diagram { max-width: 920px; margin: 40px auto 0; }
.diagram > h3 { text-align: center; font-size: 1.05rem; margin: 0 0 14px; color: var(--brand-dark); }
.diagram svg { width: 100%; height: auto; display: block; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--brand-dark); font-weight: 600; background: var(--bg-alt); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; background: var(--bg-alt); border: 1px solid var(--line);
                  border-radius: var(--radius); padding: 16px; text-align: center; }
.gallery img { max-height: 200px; margin: 0 auto 10px; }
.gallery figcaption { font-size: .82rem; color: var(--muted); }

/* Downloads */
.dl-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Section heads */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 2rem; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #c7d4e2; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #9fc2e6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
                 display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.legal { font-size: .78rem; color: #8aa0b8; margin-top: 14px; line-height: 1.6; }

/* lang visibility handled by JS via [data-en]/[data-zh] textContent swap */
[data-lang-only] { display: none; }
html[lang="en"] [data-lang-only="en"],
html[lang="zh-Hant"] [data-lang-only="zh"] { display: revert; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-2, .features { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* Payment confirmation modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,35,58,.55);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%;
  padding: 28px; box-shadow: 0 22px 60px rgba(0,0,0,.32);
}
.modal h3 { margin: 0 0 12px; font-size: 1.25rem; }
.modal p { color: var(--muted); margin: 0 0 22px; font-size: .96rem; }
.modal .store-name { color: var(--brand-dark); font-weight: 700; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================
   Software pages (software.html + software/*.html)
   Free tools: Flasher (provision) · Configurator (configure) · Gateway (integrate)
   ============================================================ */
.pill { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px;
  font-size:.72rem; font-weight:700; letter-spacing:.02em; background:var(--bg-alt);
  color:var(--muted); border:1px solid var(--line); }
.pill.free { color:#1a7a4a; background:#e9f7ef; border-color:#c6ecd6; }
.pill.step { color:var(--accent); background:#eaf3fb; border-color:#cfe4f6; }
.pill-row { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }

/* provision → configure → integrate journey band */
.journey { display:flex; align-items:stretch; gap:0; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--bg); }
.journey-step { flex:1 1 220px; padding:22px 24px; text-decoration:none; color:inherit;
  display:block; transition:background .15s; border-right:1px solid var(--line); }
.journey-step:last-child { border-right:0; }
.journey-step:hover { background:var(--bg-alt); text-decoration:none; }
.journey-step .n { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
  border-radius:999px; background:var(--brand); color:#fff; font-weight:700; font-size:.9rem; margin-bottom:10px; }
.journey-step .verb { font-size:1.15rem; font-weight:700; color:var(--brand-dark); }
.journey-step .verb small { color:var(--muted); font-weight:600; font-size:.8rem; margin-left:6px; }
.journey-step p { margin:6px 0 0; color:var(--muted); font-size:.9rem; }
.journey-step .go { color:var(--accent); font-weight:600; font-size:.85rem; }

/* stylised app-window mockup (stands in for a screenshot) */
.app-window { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); background:var(--bg); }
.app-window .bar { display:flex; align-items:center; gap:8px; padding:10px 14px;
  background:var(--bg-alt); border-bottom:1px solid var(--line); }
.app-window .bar .dot { width:11px; height:11px; border-radius:999px; background:#d5dce4; }
.app-window .bar .url { margin-left:8px; font-size:.78rem; color:var(--muted);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.app-window .screen { padding:20px; display:grid; gap:12px; }
.aw-line { height:10px; border-radius:6px; background:var(--bg-alt); }
.aw-card { border:1px solid var(--line); border-radius:10px; padding:14px; display:grid; gap:9px; }
.aw-head { display:flex; align-items:center; gap:9px; font-weight:700; color:var(--brand-dark); font-size:.9rem; }
.aw-chip { display:inline-block; padding:2px 9px; border-radius:999px; font-size:.72rem; font-weight:700;
  background:#eaf3fb; color:var(--accent); border:1px solid #cfe4f6; }
.aw-btn { justify-self:start; padding:7px 16px; border-radius:999px; background:var(--brand); color:#fff;
  font-weight:700; font-size:.82rem; }
.aw-row { display:flex; gap:8px; align-items:center; }
.aw-sel { flex:1; border:1px solid var(--line); border-radius:7px; padding:7px 10px; font-size:.8rem;
  color:var(--ink); background:var(--bg); display:flex; justify-content:space-between; }
.aw-mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.76rem; color:var(--muted); }

/* charter key-value ("what it solves") */
.kv { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.kv > div { display:grid; grid-template-columns:180px 1fr; gap:0; border-bottom:1px solid var(--line); }
.kv > div:last-child { border-bottom:0; }
.kv dt { margin:0; padding:16px 20px; background:var(--bg-alt); font-weight:700; color:var(--brand-dark); font-size:.9rem; }
.kv dd { margin:0; padding:16px 20px; color:var(--ink); }
.kv dd .quote { color:var(--brand-dark); font-style:italic; }
@media (max-width:640px){ .kv > div { grid-template-columns:1fr; } .kv dt { border-bottom:1px solid var(--line); } }

/* numbered how-it-works steps */
.steps { display:grid; gap:18px; counter-reset:step; }
.steps .step { display:grid; grid-template-columns:44px 1fr; gap:16px; align-items:start; }
.steps .step .num { counter-increment:step; width:44px; height:44px; border-radius:999px;
  background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.steps .step .num::before { content:counter(step); }
.steps .step h3 { margin:6px 0 4px; }
.steps .step p { margin:0; color:var(--muted); }

/* FAQ list — full-width stacked Q&A (no number column) */
.faq { display:grid; gap:14px; }
.faq h3 { margin:0 0 6px; font-size:1.05rem; color:var(--brand-dark); }
.faq p { margin:0; color:var(--muted); max-width:74ch; }
.faq details { border:1px solid var(--line, #e5e7eb); border-radius:12px; padding:16px 18px; background:#fff; }
.faq details[open] { box-shadow:0 1px 3px rgba(0,0,0,.06); }
.faq summary { cursor:pointer; font-weight:600; font-size:1.05rem; color:var(--brand-dark); list-style:none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; float:right; color:var(--muted); font-weight:400; }
.faq details[open] summary::after { content:"–"; }
.faq details p { margin-top:12px; }

/* sibling cross-links (the journey continues) */
.sibling { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sibling a { border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px;
  text-decoration:none; color:inherit; transition:background .15s; }
.sibling a:hover { background:var(--bg-alt); text-decoration:none; }
.sibling .lbl { font-size:.75rem; color:var(--muted); font-weight:600; }
.sibling .nm { font-weight:700; color:var(--brand-dark); margin-top:2px; }
.sibling .go { color:var(--accent); font-weight:600; font-size:.85rem; }
@media (max-width:640px){ .sibling { grid-template-columns:1fr; } }

/* contact — company info block */
.contact-dl { margin: 8px 0 6px; }
.contact-dl dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
                 color: var(--muted); margin-top: 12px; }
.contact-dl dd { margin: 3px 0 0; }
.co-sub { color: var(--muted); font-size: .95rem; margin-bottom: 4px; }

/* friendly callout — "just describe your problem" */
.callout { border:1px solid var(--line); border-left:4px solid var(--accent);
           border-radius:var(--radius); background:var(--bg-alt); padding:18px 22px; }
.callout .callout-title { margin:0 0 6px; font-weight:700; color:var(--brand-dark); font-size:1.05rem; }
.callout p { margin:0; color:var(--ink); }
.callout p + p { color:var(--muted); }

/* aggressive contact CTA band (applications index, etc.) */
.cta-band { background:linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
            color:#fff; border-radius:var(--radius); padding:52px 32px; text-align:center;
            box-shadow:var(--shadow); }
.cta-band h2 { color:#fff; font-size:1.95rem; margin:0 0 14px; }
.cta-band p { color:#dbe7f4; max-width:58ch; margin:0 auto 26px; font-size:1.08rem; }
.cta-band .cta-row { justify-content:center; }
.cta-band .btn-primary { background:#fff; color:var(--brand-dark); border-color:#fff; }
.cta-band .btn-primary:hover { background:#eaf1f9; border-color:#eaf1f9; color:var(--brand-dark); }
.cta-band .btn-ghost { color:#fff; border-color:rgba(255,255,255,.7); background:transparent; }
.cta-band .btn-ghost:hover { background:#fff; color:var(--brand-dark); border-color:#fff; }
@media (max-width:640px){ .cta-band { padding:40px 22px; } .cta-band h2 { font-size:1.55rem; } }

/* ============================================================
   Blog (blog.siliqs.net) — post list + article typography
   ============================================================ */
.post-list { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.post-card { display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; text-decoration: none; color: inherit; transition: .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.post-card time { display: block; font-size: .82rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.post-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.post-card p { margin: 0; color: var(--muted); }

.post-header { max-width: 720px; margin: 0 auto; text-align: center; }
.post-header time { display: block; font-size: .85rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.post-header h1 { font-size: 2.2rem; margin: 0 0 10px; }
.post-header .byline { justify-content: center; margin-top: 16px; }

/* author byline — initials avatar (no photo) + name + role */
.byline { display: flex; align-items: center; gap: 10px; }
.byline-sm { margin-top: 16px; gap: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff; font-weight: 700; }
.byline-text { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.byline-text strong { font-size: .92rem; color: var(--brand-dark); }
.byline-text .role { font-size: .78rem; color: var(--muted); }
.byline-sm .byline-text strong { font-size: .85rem; }

.prose { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 0 0 18px; padding: 4px 20px; border-left: 4px solid var(--accent);
  color: var(--muted); font-style: italic; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--brand-dark); color: #e2e8f0; padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
