/* iedutu-site/assets/site.css — site-specific overrides on top of Keen HTML Pro */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --brand-primary: #3b5bdb;
  /* indigo-600 */
  --brand-accent: #22c7ee;
  /* cyan */
  --brand-dark: #0d1b2a;
  /* near-black navy */
  --brand-surface: #111827;
  /* dark card bg */
  --brand-border: rgba(255, 255, 255, .08);
  --brand-text-muted: #94a3b8;
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1a2f50 60%, #0d1b2a 100%);
}

/* ─── Global ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.15rem !important;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.ib-navbar {
  background: rgba(13, 27, 42, .97) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-border);
  padding: 0 2rem;
}

.ib-navbar .navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -.5px;
}

.ib-navbar .nav-link {
  color: rgba(255, 255, 255, .72) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .6rem 1rem !important;
  transition: color .2s;
}

.ib-navbar .nav-link:hover,
.ib-navbar .nav-link.active {
  color: var(--brand-accent) !important;
}

.ib-navbar .nav-link.btn-outline-light {
  border-color: rgba(255, 255, 255, .3);
  color: #fff !important;
  border-radius: 6px;
  padding: .45rem 1.1rem !important;
}

.ib-navbar .nav-link.btn-outline-light:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-dark) !important;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.ib-hero {
  background: var(--gradient-hero);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ib-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(34, 199, 238, .07) 0%, transparent 70%);
}

.ib-hero .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(59, 91, 219, .18);
  border: 1px solid rgba(59, 91, 219, .35);
  color: var(--brand-accent);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.ib-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
}

.ib-hero .lead {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 560px;
}

.ib-hero .btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  font-weight: 600;
  padding: .75rem 1.8rem;
  border-radius: 8px;
}

.ib-hero .btn-primary:hover {
  background: #2f4ab5;
  border-color: #2f4ab5;
}

.ib-hero .btn-outline-light {
  border-radius: 8px;
  padding: .75rem 1.8rem;
  font-weight: 600;
}

.ib-hero .hero-meta {
  color: var(--brand-text-muted);
  font-size: .82rem;
}

.ib-hero .hero-meta span {
  color: #64748b;
  margin: 0 .5rem;
}

/* ─── Stats bar ──────────────────────────────────────────────── */
.ib-stats-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.ib-stats-bar .stat-item {
  padding: 1.2rem 2rem;
  border-right: 1px solid #e2e8f0;
  text-align: center;
}

.ib-stats-bar .stat-item:last-child {
  border-right: none;
}

.ib-stats-bar .stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.ib-stats-bar .stat-lbl {
  font-size: .75rem;
  color: #64748b;
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── Section titles ─────────────────────────────────────────── */
.ib-section {
  padding: 5rem 0;
}

.ib-section-dark {
  background: var(--brand-dark);
}

.ib-section-muted {
  background: #f8fafc;
}

.ib-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .4rem;
}

.ib-section-dark .ib-section-title {
  color: #f1f5f9;
}

.ib-section-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.ib-section-dark .ib-section-subtitle {
  color: #94a3b8;
}

.ib-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: .5rem;
}

/* ─── Capability cards ───────────────────────────────────────── */
.ib-cap-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}

.ib-cap-card:hover {
  box-shadow: 0 8px 30px rgba(59, 91, 219, .12);
  transform: translateY(-3px);
}

.ib-cap-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.ib-cap-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.ib-cap-card p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.6;
}

.ib-cap-card ul {
  font-size: .82rem;
  color: #64748b;
  padding-left: 1.2rem;
}

.ib-cap-card ul li {
  margin-bottom: .3rem;
}

/* ─── Tech stack badges ──────────────────────────────────────── */
.ib-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e2e8f0;
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-size: .83rem;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.ib-tech-badge:hover {
  background: rgba(34, 199, 238, .1);
  border-color: rgba(34, 199, 238, .35);
  color: var(--brand-accent);
}

/* ─── Architecture diagram container ────────────────────────── */
.ib-diagram {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 2rem;
}

.ib-diagram .mermaid {
  overflow-x: auto;
}

/* ─── Flow steps ─────────────────────────────────────────────── */
.ib-flow-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: box-shadow .2s;
}

.ib-flow-step:hover {
  box-shadow: 0 4px 18px rgba(59, 91, 219, .08);
}

.ib-flow-step .step-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ib-flow-step h6 {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .2rem;
  font-size: .9rem;
}

.ib-flow-step p {
  font-size: .82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ─── RPC table ──────────────────────────────────────────────── */
.ib-table {
  font-size: .85rem;
}

.ib-table thead th {
  background: #f1f5f9;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.ib-table tbody tr:hover {
  background: #f8fafc;
}

.ib-table .badge-rpc {
  background: rgba(59, 91, 219, .1);
  color: var(--brand-primary);
  border-radius: 5px;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 700;
  font-family: monospace;
}

.ib-table .badge-stream {
  background: rgba(34, 199, 238, .1);
  color: #0891b2;
  border-radius: 5px;
  padding: .15rem .5rem;
  font-size: .72rem;
  font-weight: 600;
}

/* ─── Page hero (inner pages) ───────────────────────────────── */
.ib-page-hero {
  background: var(--gradient-hero);
  padding-top: 110px;
  /* clears fixed navbar (~65px) + comfortable gap */
  padding-bottom: 12rem;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
}

.ib-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(34, 199, 238, .06) 0%, transparent 65%);
}

.ib-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.ib-page-hero .lead {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 620px;
}

/* ─── Feature panels ─────────────────────────────────────────── */
.ib-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
}

.ib-panel h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .5rem;
}

.ib-panel p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.65;
}

.ib-panel pre {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 1rem;
  font-size: .78rem;
  overflow-x: auto;
}

.ib-panel-dark {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
}

.ib-panel-dark h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: .5rem;
}

.ib-panel-dark p {
  font-size: .875rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ─── CTA section ────────────────────────────────────────────── */
.ib-cta {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
  border-radius: 18px;
  padding: 3.5rem;
  text-align: center;
}

.ib-cta h2 {
  color: #fff;
  font-weight: 800;
}

.ib-cta p {
  color: rgba(255, 255, 255, .78);
}

.ib-cta .btn-light {
  font-weight: 700;
  border-radius: 8px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.ib-footer {
  background: var(--brand-dark);
  border-top: 1px solid var(--brand-border);
  padding: 2.5rem 0;
}

.ib-footer p {
  color: #475569;
  font-size: .82rem;
  margin: 0;
}

.ib-footer a {
  color: var(--brand-accent);
  text-decoration: none;
}

.ib-footer a:hover {
  text-decoration: underline;
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-accent {
  color: var(--brand-accent) !important;
}

.bg-brand {
  background: var(--brand-primary) !important;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.rounded-xl {
  border-radius: 14px !important;
}

code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .85em;
  color: #be123c;
}