/* KeelCon Guard — follows the keelcon.com look (dark, grid glow) with the
   Guard gold as primary accent. System fonts only: Google Fonts is not
   reliably reachable from mainland China. */

:root {
  --bg: #080b11;
  --bg-2: #0c111a;
  --card: rgba(16, 22, 33, 0.78);
  --card-solid: #111823;
  --border: rgba(130, 165, 205, 0.14);
  --border-strong: rgba(130, 165, 205, 0.26);
  --text: #e8eef6;
  --muted: #93a3b8;
  --gold: #f2d27a;
  --gold-strong: #f6dc8f;
  --gold-soft: rgba(242, 210, 122, 0.12);
  --teal: #3ee0c4;
  --teal-soft: rgba(62, 224, 196, 0.12);
  --danger: #ff8a8a;
  --danger-soft: rgba(255, 110, 110, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 480px at 50% -120px, rgba(242, 210, 122, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 380px at 85% 0, rgba(62, 224, 196, 0.07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(130, 165, 205, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 205, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 15%, transparent 75%);
  pointer-events: none;
}

main { flex: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold) 0%, #e8b94d 100%);
  box-shadow: 0 10px 34px rgba(242, 210, 122, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { color: #17130a; text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 40px rgba(242, 210, 122, 0.26); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--border-strong); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.btn-small { min-height: 36px; padding: 0.35rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-button { padding: 0; border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--text); }

/* Header ------------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(8, 11, 17, 0.72); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand b { color: var(--gold); font-weight: 700; }

.menu > summary { display: none; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.btn { color: #17130a; }
.nav .nav-strong { color: var(--text); }
.nav-sep { width: 1px; height: 20px; background: var(--border-strong); }
.lang-switch { padding: 0.2rem 0.65rem; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.85rem !important; }

/* Below 900px the nav collapses into a <details> dropdown (no JS needed). */
@media (max-width: 899px) {
  .menu > summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu:not([open]) > .nav { display: none; }
  .menu[open] > .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
  }
  .menu[open] > .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .menu[open] > .nav a.btn { margin-top: 0.8rem; border-bottom: 0; }
  .menu[open] > .nav .lang-switch { align-self: flex-start; margin-top: 0.8rem; padding: 0.3rem 0.9rem; border: 1px solid var(--border-strong); }
  .nav-sep { display: none; }
}

/* Hero --------------------------------------------------------------------- */

.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero { padding: 5rem 0 3.5rem; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }

.eyebrow { margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.02em; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, var(--gold), #f0b64a 60%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 38em; font-size: 1.075rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.trust li { padding: 0.25rem 0.75rem; font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.hero-art { display: flex; justify-content: center; }
.dongle-art { width: 100%; max-width: 460px; height: auto; }
.dongle-art text { font-family: var(--font); }

/* Sections ----------------------------------------------------------------- */

.section { padding: 3.5rem 0; scroll-margin-top: 64px; }
.section-tight { padding: 1rem 16px 3.5rem; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(242, 210, 122, 0.035) 30%, rgba(62, 224, 196, 0.03) 70%, transparent); }
.section-head { max-width: 46rem; margin: 0 auto 2.2rem; text-align: center; }
.page-head { padding: 3rem 16px 1.5rem; }
@media (min-width: 640px) { .page-head { padding: 3.5rem 24px 1.5rem; } }

.card { padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.feature-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: rgba(242, 210, 122, 0.32); transform: translateY(-2px); }
.feature h3 { margin-top: 0.9rem; }
.feature p { margin: 0; font-size: 0.95rem; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--gold); background: var(--gold-soft); }

/* Products ------------------------------------------------------------------ */

.product { display: flex; flex-direction: column; }
.product-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.product-hw { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); padding: 0.1rem 0.55rem; border: 1px solid var(--border-strong); border-radius: 6px; }
.product-name { font-size: 1.45rem; margin-bottom: 0.4rem; }
.product-standard .product-name { color: var(--gold); }
.product-timepro .product-name { color: var(--teal); }
.product-price { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.product-price strong { font-size: 1.6rem; color: var(--text); }

.checks { margin: 0.4rem 0 1.4rem; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.3rem 0 0.3rem 1.7rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

.compare-title { margin: 2.6rem 0 1rem; text-align: center; }

.tag { display: inline-block; padding: 0.08rem 0.55rem; font-size: 0.75rem; font-weight: 650; line-height: 1.6; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.tag-supported { color: var(--teal); background: var(--teal-soft); }
.tag-planned { color: var(--muted); background: rgba(147, 163, 184, 0.14); }
.tag-soon { color: var(--gold); background: var(--gold-soft); }

/* Tables -------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.8rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .table th, .table td { padding: 0.9rem 1.1rem; } }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, 0.02); }
.table tbody th { font-weight: 500; }
.compare td { text-align: center; color: var(--muted); }
.compare td:first-of-type { color: var(--text); }
.compare thead th:not(:first-child) { text-align: center; color: var(--text); }
.pricing tbody th { white-space: nowrap; }
.pricing td.price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.notes { margin: 1rem 0 1.4rem; padding-left: 1.2rem; }

/* OEM ----------------------------------------------------------------------- */

.oem-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .oem-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.devmgr { margin: 0; }
.devmgr-window { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: #f3f5f8; color: #1d2430; font-size: 0.9rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.devmgr-bar { display: flex; align-items: center; gap: 6px; padding: 0.55rem 0.8rem; background: #e3e8ef; border-bottom: 1px solid #d3dae4; }
.devmgr-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c3cad4; }
.devmgr-bar b { margin-left: 0.5rem; font-weight: 600; font-size: 0.85rem; }
.devmgr-tree { margin: 0; padding: 0.8rem 1rem; list-style: none; }
.devmgr-tree ul { margin: 0.2rem 0 0.2rem 1.1rem; padding: 0; list-style: none; }
.devmgr-tree li { padding: 0.18rem 0; }
.dm-dim { color: #6b7686; }
.dm-hit { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.55rem !important; margin-left: -0.55rem; border-radius: 6px; background: #d9ecff; outline: 1px solid #8cc1f5; font-weight: 600; }
.dm-icon { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(135deg, #e8b94d, #f2d27a); }
.devmgr-props { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid #d3dae4; background: #fbfcfd; }
.devmgr-props .muted { color: #6b7686; }
.devmgr figcaption { margin-top: 0.8rem; text-align: center; }

/* Status lists (platforms) ------------------------------------------------- */

.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.status-list li:last-child { border-bottom: 0; }

.cta-card { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; padding: 2rem; background: linear-gradient(135deg, rgba(242, 210, 122, 0.09), rgba(62, 224, 196, 0.06)); }
.cta-card p { margin: 0; }
@media (min-width: 760px) { .cta-card { flex-direction: row; align-items: center; justify-content: space-between; } .cta-card > div { max-width: 40rem; } }

/* Forms --------------------------------------------------------------------- */

.form-page { display: flex; justify-content: center; padding-top: 3rem; padding-bottom: 4rem; }
.form-card { width: 100%; max-width: 460px; padding: 2rem 1.5rem; }
@media (min-width: 640px) { .form-card { padding: 2.2rem 2.2rem; } }
.form-card h1 { font-size: 1.6rem; }
.form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--gold); }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #0a0f17;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field small { font-size: 0.8rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--gold); }
.form-alt { margin: 1.2rem 0 0; text-align: center; font-size: 0.9rem; }
.inline-form { margin-top: 1rem; }

.notice { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
.notice-error { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(255, 110, 110, 0.3); }
.notice-ok { color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(62, 224, 196, 0.3); }
.notice-info { color: var(--text); background: rgba(147, 163, 184, 0.1); border: 1px solid var(--border-strong); }

/* Account ------------------------------------------------------------------- */

.account-grid { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1.4fr; } .account-grid .card-soon { grid-column: 1 / -1; } }
.account-grid h2 { font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: 0; }
.file-list li > div { display: grid; min-width: 0; }
.file-list b { word-break: break-all; }
.card-soon { border-style: dashed; }

/* Prose (privacy) ----------------------------------------------------------- */

.prose { max-width: 46rem; padding-top: 3rem; padding-bottom: 4rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }

/* Footer -------------------------------------------------------------------- */

.site-footer { margin-top: 2rem; padding: 2.5rem 0 1.5rem; border-top: 1px solid var(--border); background: rgba(6, 8, 13, 0.6); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand { margin: 0 0 0.3rem; font-weight: 600; }
.footer-brand b { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.footer-copy { margin-top: 1.5rem; font-size: 0.85rem; }
