/* ============================================================
   jemena.ai — Shared site styles (landing, news, about, etc.)
   Claude Code inspired: dark navy + coral + purple
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f4f5f7;
  --bg-card:     #ffffff;
  --bg-nav:      rgba(244, 245, 247, 0.97);
  --border:      #e1e4e8;
  --coral:       #4285F4;
  --coral-dim:   rgba(66, 133, 244, 0.12);
  --purple:      #c96442;
  --purple-dim:  rgba(201, 100, 66, 0.10);
  --text:        #1a1d23;
  --text-muted:  #5f6368;
  --text-dim:    #9aa0a6;
  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Navigation ─────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  z-index: 100;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.site-nav .brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.site-nav .nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.site-nav .nav-link:hover {
  color: var(--text);
  background: var(--border);
}

.site-nav .nav-link.active {
  color: var(--coral) !important;
  background: var(--coral-dim) !important;
  font-weight: 600;
}

.site-nav .nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Page wrapper ───────────────────────────────────────── */

.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(66, 133, 244, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(201, 100, 66, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-dim);
  border: 1px solid rgba(66, 133, 244, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--coral) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

/* ── Section grid ───────────────────────────────────────── */

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.section-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(66, 133, 244, 0.1);
}

.section-card.purple:hover {
  border-color: var(--purple);
  box-shadow: 0 12px 40px rgba(201, 100, 66, 0.1);
}

.card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-arrow {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(201, 100, 66, 0.2);
  align-self: flex-start;
}

.card-tag.coral {
  background: var(--coral-dim);
  color: var(--coral);
  border-color: rgba(224, 123, 95, 0.2);
}

@media (max-width: 768px) {
  .section-grid { grid-template-columns: 1fr; }
}

/* ── Content pages (news, about, etc.) ─────────────────── */

.content-header {
  padding: 3.5rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* ── Tabs ───────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ── News cards ─────────────────────────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s;
}

.news-card:hover { border-color: rgba(66, 133, 244, 0.4); }

.news-source {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--coral);
}

.news-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.news-title a:hover { color: var(--coral); }

.news-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.news-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.news-loading, .news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Coming soon ────────────────────────────────────────── */

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50vh;
  text-align: center;
  color: var(--text-muted);
}

.coming-soon h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.coming-soon p { font-size: 0.9rem; max-width: 400px; }

/* ── Disclaimer ─────────────────────────────────────────── */

.disclaimer {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.site-footer a { color: var(--coral); }
