/* ============================================
   TalkLimi — Shared Styles (Billing Atlas-inspired)
   ============================================ */

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

/* Variables */
:root {
  --bg: #0f172a;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --card-bg: #1e293b;
  --card-hover: #334155;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129, 140, 248, 0.1);
  --heading: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --fg: #0b1220;
  --muted: #475569;
  --border: #dde3ed;
  --card-bg: #ffffff;
  --card-hover: #f8fafc;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #eef2ff;
  --heading: #0b1220;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Base */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }
.container--mid { max-width: 1000px; }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; background: var(--accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; border-radius: 8px;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle,
.lang-btn {
  height: 36px; padding: 0 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--fg); font-size: 13px; cursor: pointer;
  border-radius: 8px; transition: all 0.2s;
}
.theme-toggle:hover, .lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle { width: 36px; padding: 0; justify-content: center; display: flex; align-items: center; }

.nav-github {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--fg);
  border-radius: 8px; transition: all 0.2s;
}
.nav-github:hover { border-color: var(--accent); color: var(--accent); }
.nav-github svg { width: 18px; height: 18px; fill: currentColor; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
  list-style: none; min-width: 120px; display: none; z-index: 1001;
  border-radius: 12px; overflow: hidden;
}
.lang-menu.open { display: block; }
.lang-menu li button {
  width: 100%; padding: 10px 16px; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  color: var(--fg); font-size: 13px; cursor: pointer; text-align: left;
}
.lang-menu li:last-child button { border-bottom: none; }
.lang-menu li button:hover { background: var(--card-bg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.btn-primary {
  background: var(--accent); color: #ffffff; border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transform: translateY(-1px);
}
.btn-secondary {
  background: var(--card-bg); color: var(--fg); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Section (index) ---- */
section { padding: 80px 24px; }

.section-header { margin-bottom: 64px; }
.section-eyebrow {
  font-size: 12px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 600;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px; color: var(--heading);
}
.section-desc {
  font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.7;
}

/* ---- Hero (index) ---- */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px;
}
.hero-eyebrow {
  font-size: 12px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 24px; font-weight: 600;
}
.hero-h1 {
  font-size: clamp(36px, 6vw, 56px); font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px; max-width: 800px; color: var(--heading);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 18px); color: var(--muted);
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- Solutions grid (index) ---- */
.solutions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px; padding: 12px;
}
.solution-card {
  background: var(--card-bg); padding: 28px; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); transition: all 0.2s;
}
.solution-card:hover {
  border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}
.solution-tag {
  font-size: 11px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px; font-weight: 700;
}
.solution-title {
  font-size: 18px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; color: var(--heading);
}
.solution-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- Clients / Products grid (index) ---- */
.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px; padding: 12px;
}
.client-card {
  background: var(--card-bg); padding: 28px; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); transition: all 0.2s;
}
.client-card:hover {
  border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}
.client-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.client-logo {
  width: 48px; height: 48px; background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; border-radius: 12px;
}
.client-name {
  font-size: 16px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; color: var(--heading);
}
.client-tag {
  font-size: 11px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.client-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- Blog list (index) ---- */
.blog-list { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.blog-item {
  background: var(--card-bg); padding: 28px; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); transition: all 0.2s;
}
.blog-item:hover {
  border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08);
}
.blog-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 12px; color: var(--muted);
}
.blog-title {
  font-size: 18px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; color: var(--heading);
}
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.blog-link {
  font-size: 13px; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-link:hover { text-decoration: underline; }

/* ---- Team grid (index) ---- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; padding: 12px;
}
.team-card {
  background: var(--card-bg); padding: 28px; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); text-align: left; transition: all 0.2s;
}
.team-card:hover {
  border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}
.team-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.team-avatar {
  width: 56px; height: 56px; background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; border-radius: 12px;
}
.team-info h3 {
  font-size: 16px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; margin-bottom: 4px; color: var(--heading);
}
.team-role {
  font-size: 12px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.team-bio { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- CTA (index + product) ---- */
#cta { text-align: center; }
.cta-box {
  max-width: 560px; margin: 0 auto; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 48px 32px; box-shadow: var(--shadow);
}
.cta-title {
  font-size: clamp(24px, 3vw, 32px); font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px; color: var(--heading);
}
.cta-sub { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.cta-email { font-size: 14px; color: var(--muted); margin-top: 24px; display: block; }

/* ---- Product pages ---- */
.product-hero { padding: 140px 24px 60px; text-align: center; }
.product-tag {
  font-size: 12px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 600;
}
.product-h1 {
  font-size: clamp(32px, 5vw, 48px); font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 16px; color: var(--heading);
}
.product-sub {
  font-size: clamp(16px, 2vw, 18px); color: var(--muted);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.7;
}
.product-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow);
}
.product-status--green { border-color: #22c55e; color: #22c55e; }
.product-status--amber { border-color: #f59e0b; color: #f59e0b; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot--green { background: #22c55e; }
.status-dot--amber { background: #f59e0b; }

.product-screenshots { padding: 80px 24px; }
.screenshot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px; padding: 12px;
}
.screenshot-item {
  background: var(--card-bg); padding: 24px; text-align: center;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.screenshot-item:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08); }
.screenshot-item img { max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in; transition: opacity 0.2s; }
.screenshot-item img:hover { opacity: 0.85; }
.screenshot-caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

.features { padding: 80px 24px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; padding: 12px;
}
.feature-card {
  background: var(--card-bg); padding: 28px; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--accent); box-shadow: 0 4px 12px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}
.feature-num { font-size: 11px; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.feature-title {
  font-size: 18px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; margin-bottom: 12px; color: var(--heading);
}
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

.download-box { padding: 80px 24px; text-align: center; }
.download-title {
  font-size: 28px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; margin-bottom: 16px; color: var(--heading);
}
.download-sub { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.modal-overlay.open { display: flex; }
.modal-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; cursor: pointer;
  border-radius: 8px; font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }

/* ---- Blog article pages ---- */
article.container { padding-top: 100px; padding-bottom: 80px; margin-top: 64px; }
.article-header { margin-bottom: 48px; }
.article-meta {
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.article-tag {
  padding: 4px 10px; background: var(--accent-light); color: var(--accent);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.article-title {
  font-size: clamp(28px, 4vw, 36px); font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; line-height: 1.3; letter-spacing: -0.02em;
  margin-bottom: 16px; color: var(--heading);
}
.article-lead { font-size: 18px; color: var(--muted); line-height: 1.8; }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content h2 {
  font-size: 22px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900; margin: 48px 0 24px; letter-spacing: -0.01em; color: var(--heading);
}
.article-content h3 {
  font-size: 18px; font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700; margin: 32px 0 16px; color: var(--heading);
}
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; }
.article-content li { margin-bottom: 12px; }
.article-content blockquote {
  border-left: 3px solid var(--accent); padding-left: 20px;
  margin: 24px 0; color: var(--muted);
}
.article-content code {
  background: var(--card-bg); padding: 2px 6px; border-radius: 4px;
  font-family: "SF Mono", Monaco, monospace; font-size: 14px;
  border: 1px solid var(--border);
}
.article-content pre {
  background: var(--card-bg); padding: 20px; border-radius: 12px;
  overflow-x: auto; margin: 24px 0; border: 1px solid var(--border);
}
.article-content pre code { background: none; padding: 0; border: none; }
.article-content a { color: var(--accent); }
.article-content a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 48px 24px; }
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-h1 { font-size: 32px; }
  .solutions-grid, .clients-grid, .team-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .container--narrow { padding: 0 20px; }
}
