/* Hourkey — Theme v3 (Qi Men identity + Eastern depth) */
:root {
  --navy-black: #050816;
  --navy-deepest: #0a0e1a;
  --navy-deep: #0f1729;
  --navy-medium: #1a2440;
  --navy-border: #283555;
  --line-soft: rgba(148, 163, 184, 0.14);
  --card-elevated: rgba(15, 23, 41, 0.84);
  --card-glass: rgba(17, 24, 39, 0.70);

  --gold-primary: #c8a45c;
  --gold-soft: #d4b876;
  --gold-deep: #a07f3f;
  --gold-bg: rgba(200, 164, 92, 0.1);
  --gold-glow: rgba(200, 164, 92, 0.28);

  --cinnabar: #b22222;

  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --l1-strong: #10b981;
  --l2-cond: #f59e0b;
  --l3-observe: #94a3b8;
  --l4-reduce: #fb923c;
  --l5-avoid: #ef4444;
  --l6-stand: #991b1b;

  --gap-xs: 4px; --gap-sm: 8px; --gap-md: 16px; --gap-lg: 24px; --gap-xl: 40px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;

  --font-sans: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
  --font-cn: 'Noto Serif SC', 'Sarabun', serif;

  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background:
    radial-gradient(circle at 18% 0%, rgba(200,164,92,0.14), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(16,185,129,0.06), transparent 26%),
    linear-gradient(180deg, var(--navy-black) 0%, var(--navy-deepest) 45%, var(--navy-black) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-soft); }

button {
  background: transparent;
  border: 1px solid var(--navy-border);
  color: var(--text-primary);
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
button:hover { border-color: var(--gold-primary); color: var(--gold-soft); transform: translateY(-1px); }
button.primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-primary));
  border-color: var(--gold-primary);
  color: var(--navy-deepest);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200,164,92,0.18);
}
button.primary:hover { box-shadow: 0 8px 24px rgba(200,164,92,0.32); transform: translateY(-2px); }
button.cta-glow { padding: 14px 24px; font-size: 15px; }
button.small-btn { padding: 6px 12px; font-size: 12px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

/* Header — bilingual logo */
.site-header {
  border-bottom: 1px solid var(--line-soft);
  padding: var(--gap-md) 0;
  position: sticky; top: 0;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }

.brand, .logo-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-cn {
  font-family: var(--font-cn);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-stack { display: flex; flex-direction: column; gap: 2px; }
.logo-word {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.logo-tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links { display: flex; gap: var(--gap-lg); align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.active { color: var(--gold-primary); }

@media (max-width: 600px) {
  .logo-cn { font-size: 24px; }
  .logo-tagline { display: none; }
  .nav-links { gap: var(--gap-md); }
  .nav-links a { font-size: 13px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--gap-xl) 0;
  margin-top: var(--gap-xl);
  color: var(--text-dim);
  font-size: 14px;
}
.disclaimer-text { color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 720px; margin: 0 auto; text-align: center; }
.cn-side { font-family: var(--font-cn); color: var(--gold-primary); font-weight: 600; }
.cn-emph { font-family: var(--font-cn); color: var(--gold-primary); font-weight: 600; }

/* Cards */
.card {
  background: var(--card-elevated);
  border: 1px solid var(--navy-border);
  border-radius: var(--r-lg);
  padding: var(--gap-lg);
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* Block eyebrow (small uppercase + Chinese accent) */
.block-eyebrow {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
  font-family: var(--font-sans);
}

/* Disclaimer banner sticky bottom */
.disclaimer-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,14,26,0.95);
  border-top: 1px solid var(--navy-border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 10px var(--gap-md);
  text-align: center;
  z-index: 40;
  backdrop-filter: blur(8px);
}

h1, h2, h3 { color: var(--text-primary); font-weight: 700; line-height: 1.15; }
h1 { font-size: 56px; letter-spacing: -1px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .container { padding: 0 var(--gap-md); }
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold-primary); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }

/* Yam Chinese typography */
.yam-cn-large { font-family: var(--font-cn); color: var(--gold-primary); font-size: 32px; font-weight: 600; letter-spacing: 2px; }
.yam-cn-mid { font-family: var(--font-cn); color: var(--gold-primary); font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.yam-cn { font-family: var(--font-cn); color: var(--gold-primary); font-size: 18px; font-weight: 600; }
.yam-range { color: var(--text-muted); font-size: 13px; margin-left: 12px; }

/* Qi Men values rows (門 星 神 向) */
.qv-row { display: flex; align-items: center; gap: var(--gap-md); padding: 4px 0; }
.qv-cn { font-family: var(--font-cn); color: var(--gold-primary); font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.qv-text { font-family: var(--font-cn); color: var(--text-muted); font-size: 14px; }
