/* JimatOps hub landing — brand variables defined locally to stay isolated from cpi.css */
:root {
  --cream:        #faf6ef;
  --cream-dark:   #f0e9d8;
  --ink:          #1a1815;
  --ink-soft:     #4a4540;
  --accent:       #c2410c;
  --accent-soft:  #fed7aa;
  --live:         #166534;
  --live-bg:      #dcfce7;
  --soon:         #6b6359;
  --soon-bg:      #ece6d6;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }

/* Topbar — matches /cpi pattern */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cream-dark); }
.brand { font-family: var(--serif); font-size: 22px; color: var(--ink); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; gap: 2px; background: var(--cream-dark); border-radius: 6px; padding: 2px; }
.lang-btn { background: none; border: none; padding: 4px 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-radius: 4px; }
.lang-btn.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Container */
.container { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }

/* Hero */
.hero { text-align: center; margin-bottom: 36px; }
.hero h1 { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 8px 0 16px; font-weight: 400; color: var(--ink); }
.hero h1 strong { color: var(--accent); font-weight: 400; }
.hero .lede { color: var(--ink-soft); font-size: 17px; line-height: 1.5; max-width: 560px; margin: 0 auto 16px; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; padding: 6px 12px; background: var(--cream-dark); border-radius: 999px; }
.trust-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); display: inline-block; }

/* Tool grid — 2x2 desktop, 1-col mobile */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tool-card.live:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--accent-soft); }
.tool-card.live:active { transform: translateY(-1px); }

.tool-card.soon {
  cursor: not-allowed;
  background: #fbf8f1;
  border-style: dashed;
}
.tool-card.soon .tool-title,
.tool-card.soon .tool-tagline { opacity: 0.65; }

.tool-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin: 0 0 8px; font-weight: 400; color: var(--ink); padding-right: 110px; }
.tool-tagline { font-size: 15px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 auto; }

.status-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge.live { background: var(--live-bg); color: var(--live); }
.status-badge.soon { background: var(--soon-bg); color: var(--soon); }

.tool-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); }
.tool-arrow::after { content: '→'; transition: transform 0.18s ease; }
.tool-card.live:hover .tool-arrow::after { transform: translateX(3px); }
.tool-card.soon .tool-arrow { color: var(--soon); }
.tool-card.soon .tool-arrow::after { content: '·'; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer { text-align: center; padding: 24px; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--cream-dark); margin-top: 32px; }
.site-footer a { color: var(--ink-soft); margin: 0 6px; }

/* Mobile */
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 15px; }
  .container { padding: 20px 14px 60px; }
  .tool-card { min-height: 0; padding: 20px 18px; }
  .tool-title { font-size: 21px; padding-right: 96px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
}
