/* ===================================================
   Bhaddiya Publications — Shared Stylesheet
   bhaddiyapublications.com
   =================================================== */

:root {
  --bg:        #0d0f14;
  --bg2:       #13161e;
  --bg3:       #1a1e2a;
  --border:    #2a2e3d;
  --accent:    #e8a44a;
  --accent2:   #5b8fd4;
  --text:      #e2e5ef;
  --text-muted:#8891a8;
  --green:     #4caf7d;
  --yellow:    #e8c44a;
  --red:       #e86a4a;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
  /* Seal has white background — invert + hue-shift gives a subtle
     dark-green-on-dark look that matches the site palette */
  filter: invert(1) hue-rotate(100deg) saturate(0.55) brightness(0.72);
  opacity: 0.82;
}
.nav-brand span { color: var(--text-muted); font-weight: 400; }
nav ul { list-style: none; display: flex; gap: 0.25rem; }
nav ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--text); background: var(--bg3); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--bg2) 0%, #0e1220 100%);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91,143,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.25rem; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 2.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s; cursor: pointer;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary  { background: var(--accent); color: #1a0e00; }
.btn-outline  { border: 1px solid var(--border); color: var(--text); margin-left: 0.75rem; }
.btn-outline:hover { background: var(--bg3); }
.btn-blue { background: var(--accent2); color: #fff; }

/* ── LAYOUT ── */
section { padding: 5rem 2rem; }
.container { max-width: 1140px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 680px; margin-bottom: 3rem;
}

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── MQM BADGES ── */
.mqm-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 20px;
}
.mqm-clean  { background: rgba(76,175,125,0.15); color: var(--green); }
.mqm-good   { background: rgba(91,143,212,0.15); color: var(--accent2); }
.mqm-note   { background: rgba(232,196,74,0.15); color: var(--yellow); }

/* ── LANGUAGE TABLE ── */
.lang-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lang-table th {
  text-align: left; padding: 0.65rem 1rem;
  color: var(--text-muted); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.lang-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.lang-table tr:hover td { background: rgba(255,255,255,0.02); }
.lang-flag { font-size: 1.3rem; margin-right: 0.5rem; }
.lang-name { font-weight: 600; color: #fff; }

.score-bar-wrap { display: flex; align-items: center; gap: 0.6rem; }
.score-bar {
  height: 6px; border-radius: 3px;
  background: var(--bg3); flex: 1; max-width: 120px; overflow: hidden;
}
.score-bar-fill { height: 100%; border-radius: 3px; }
.fill-clean { background: var(--green); }
.fill-good  { background: var(--accent2); }
.fill-note  { background: var(--yellow); }

/* ── PIPELINE STEPS ── */
.pipeline-steps {
  display: flex; flex-wrap: wrap; gap: 0;
  align-items: center; margin: 2rem 0;
}
.pipeline-step {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.pipeline-arrow {
  color: var(--border); font-size: 1.2rem;
  padding: 0 0.4rem; flex-shrink: 0;
}
.pipeline-step.highlight {
  background: rgba(91,143,212,0.12);
  border-color: var(--accent2); color: var(--accent2);
}
.pipeline-step.adversarial {
  background: rgba(232,164,74,0.1);
  border-color: var(--accent); color: var(--accent);
}

/* ── STAT ROW ── */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 800;
  color: #fff; line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── SCREENSHOT FRAME ── */
.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  margin: 2rem 0;
}
.screenshot-frame img { width: 100%; display: block; }
.screenshot-caption {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}
.price-card:hover { border-color: var(--accent2); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg2), rgba(232,164,74,0.05));
}
.price-card .featured-label {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a0e00;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.8rem; border-radius: 20px;
}
.price-format {
  font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.price-amount {
  font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1;
}
.price-amount sup { font-size: 1.1rem; vertical-align: top; margin-top: 0.5rem; }
.price-sub { font-size: 0.82rem; color: var(--text-muted); margin: 0.5rem 0 1.5rem; }
.price-features { list-style: none; text-align: left; margin-bottom: 1.75rem; }
.price-features li {
  font-size: 0.88rem; padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.price-features li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, rgba(91,143,212,0.12), rgba(232,164,74,0.08));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.promo-badge {
  background: var(--accent);
  color: #1a0e00;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 20px;
  white-space: nowrap;
}
.promo-text h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.3rem; }
.promo-text p { color: var(--text-muted); font-size: 0.9rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-logo {
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent); display: block; margin-bottom: 0.75rem;
}

/* ── DIVIDER ── */
.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}

/* ── PORTAL FEATURE BLOCKS ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse { direction: ltr; }
  nav ul { display: none; }
}
.feature-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
}
.feature-title {
  font-size: 1.35rem; font-weight: 700;
  color: #fff; margin-bottom: 0.75rem;
}
.feature-body {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.75;
}
.feature-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem;
}
.tag {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.76rem;
  padding: 0.25rem 0.65rem; border-radius: 4px;
}

/* ── CALLOUT ── */
.callout {
  background: var(--bg3);
  border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}
.callout strong { color: var(--text); }
