/* ─────────────────────────────────────────────────────────────
   SemaBridge Landing Page — Stylesheet
   ───────────────────────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #06080f;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── Design Tokens ── */
:root {
  --brand:     #4f8ef7;
  --brand-2:   #38d4c0;
  --brand-3:   #a78bfa;
  --bg-0:      #06080f;
  --bg-1:      #0d1117;
  --bg-2:      #111827;
  --bg-3:      #1a2235;
  --surface:   #1e2a3b;
  --surface-2: #243043;
  --border:    rgba(255, 255, 255, 0.07);
  --text-1:    #f1f5f9;
  --text-2:    #94a3b8;
  --text-3:    #64748b;
  --glow-blue: rgba(79, 142, 247, 0.18);
}

/* ── Layout Helpers ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--alt { background: var(--bg-1); }


/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 8, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-tagline {
  font-size: 0.68rem; color: var(--text-3); font-weight: 400;
  letter-spacing: 0.02em; margin-left: 2px; display: block;
  line-height: 1;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.88rem; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-1); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 0.88rem;
  padding: 9px 20px; border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(79, 142, 247, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(56, 212, 192, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79, 142, 247, 0.1); border: 1px solid rgba(79, 142, 247, 0.3);
  padding: 6px 14px; border-radius: 100px; font-size: 0.78rem;
  color: var(--brand); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text-1); margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 540px; margin-bottom: 36px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 32px rgba(79, 142, 247, 0.3);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-1); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--surface-2); transform: translateY(-2px); }

/* Hero flow card */
.hero-visual { position: relative; }
.flow-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; position: relative; overflow: hidden;
}
.flow-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
}
.flow-title {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); margin-bottom: 16px; font-weight: 600;
}
.flow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flow-node {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-1); flex: 1;
}
.flow-node-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Transparent PNG icon rendering ── */
/* Default: used inside flex-centred square containers (flow-node-icon, adapter-logo, agent-logo) */
.icon-img {
  display: block;
  width: 72%; height: 72%;
  object-fit: contain;
  flex-shrink: 0;
}
/* Larger containers get a slightly bigger fill */
.adapter-logo .icon-img  { width: 78%; height: 78%; }
.agent-logo .icon-img    { width: 78%; height: 78%; }
/* Small inline badge icon next to text */
.icon-badge-img {
  display: inline-block;
  width: 14px; height: 14px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.flow-arrow { color: var(--text-3); font-size: 0.9rem; flex-shrink: 0; }
.flow-bridge {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(56, 212, 192, 0.08));
  border: 1px solid rgba(79, 142, 247, 0.28);
  border-radius: 10px; padding: 11px 14px; margin: 12px 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-1);
}
.flow-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px;
}
.flow-stat {
  background: var(--surface); border-radius: 8px; padding: 9px;
  text-align: center; border: 1px solid var(--border);
}
.flow-stat-val   { font-size: 1rem; font-weight: 800; color: var(--brand); }
.flow-stat-label { font-size: 0.68rem; color: var(--text-3); margin-top: 2px; }


/* ════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-kicker {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand); font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.section-kicker::before,
.section-kicker::after {
  content: ''; flex: 1; max-width: 40px; height: 1px;
}
.section-kicker::before { background: linear-gradient(90deg, transparent, var(--brand)); }
.section-kicker::after  { background: linear-gradient(90deg, var(--brand), transparent); }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--text-1); margin-bottom: 16px; line-height: 1.2;
}
.section-header h2 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p { font-size: 1.05rem; color: var(--text-2); max-width: 600px; margin: 0 auto; }


/* ════════════════════════════════════════
   PROBLEM
════════════════════════════════════════ */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 56px;
}
.problem-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.problem-card:hover { transform: translateY(-4px); border-color: rgba(255, 80, 80, 0.3); }
.problem-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f87171, #fb923c);
}
.problem-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.problem-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-1); }
.problem-card p  { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; }


/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 56px; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand-2), var(--brand));
  z-index: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 12px; position: relative; z-index: 1;
}
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
  box-shadow: 0 0 24px var(--glow-blue);
}
.step h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; color: var(--text-1); }
.step p  { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }


/* ════════════════════════════════════════
   STATS
════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px; margin-top: 56px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.88rem; color: var(--text-2); margin-top: 4px; }


/* ════════════════════════════════════════
   ADAPTERS
════════════════════════════════════════ */
.adapters-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 56px; }
.adapter-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 24px; position: relative; overflow: hidden;
}
.adapter-group::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.adapter-group.data::before      { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.adapter-group.transform::before { background: linear-gradient(90deg, var(--brand-3), var(--brand-2)); }
.adapter-group.bi::before        { background: linear-gradient(90deg, var(--brand), var(--brand-3)); }
.adapter-group-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700; margin-bottom: 6px;
}
.adapter-group.data .adapter-group-label      { color: var(--brand-2); }
.adapter-group.transform .adapter-group-label { color: var(--brand-3); }
.adapter-group.bi .adapter-group-label        { color: var(--brand); }
.adapter-group h3    { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.adapter-group > p   { font-size: 0.87rem; color: var(--text-2); margin-bottom: 22px; line-height: 1.5; }
.adapter-list { display: flex; flex-direction: column; gap: 10px; }
.adapter-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px;
  transition: border-color 0.25s, transform 0.25s;
}
.adapter-item:hover { border-color: rgba(79, 142, 247, 0.35); transform: translateX(4px); }
.adapter-logo {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.adapter-info  { flex: 1; min-width: 0; }
.adapter-name  { font-size: 0.92rem; font-weight: 700; color: var(--text-1); }
.adapter-desc  { font-size: 0.76rem; color: var(--text-3); margin-top: 2px; }
.adapter-tag {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase; flex-shrink: 0;
  background: rgba(167, 139, 250, 0.12); color: var(--brand-3);
  border: 1px solid rgba(167, 139, 250, 0.2);
}


/* ════════════════════════════════════════
   AGENTS
════════════════════════════════════════ */
.agents-wrapper {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(56, 212, 192, 0.05));
  border: 1px solid rgba(79, 142, 247, 0.15);
  border-radius: 20px; padding: 40px;
}
.agents-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.agents-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.agents-header-text h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-1); }
.agents-header-text p  { font-size: 0.87rem; color: var(--text-2); margin-top: 2px; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.agent-card:hover { transform: translateY(-4px); border-color: rgba(79, 142, 247, 0.4); }
.agent-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
}
.agent-platform-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.68rem; color: var(--brand-3); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
}
.agent-logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; overflow: hidden;
}
.agent-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.agent-card p  { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }
.agent-features { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.agent-feature  { display: flex; align-items: center; gap: 7px; font-size: 0.77rem; color: var(--text-2); }
.agent-feature::before {
  content: '✓'; color: var(--brand-2); font-weight: 800; font-size: 0.7rem; flex-shrink: 0;
}


/* ════════════════════════════════════════
   BENEFITS
════════════════════════════════════════ */
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 56px;
}
.benefit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(79, 142, 247, 0.3); }
.benefit-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.bg-blue   { background: rgba(79,  142, 247, 0.12); }
.bg-teal   { background: rgba(56,  212, 192, 0.12); }
.bg-purple { background: rgba(167, 139, 250, 0.12); }
.bg-orange { background: rgba(251, 146,  60, 0.12); }
.bg-green  { background: rgba(74,  222, 128, 0.12); }
.bg-pink   { background: rgba(249, 168, 212, 0.12); }
.benefit-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.benefit-card p  { font-size: 0.86rem; color: var(--text-2); line-height: 1.6; }


/* ════════════════════════════════════════
   SECURITY
════════════════════════════════════════ */
.security-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-top: 56px;
}
.security-list { display: flex; flex-direction: column; gap: 16px; }
.security-item { display: flex; gap: 14px; align-items: flex-start; }
.security-check {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(56, 212, 192, 0.12); border: 1px solid rgba(56, 212, 192, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--brand-2); flex-shrink: 0; margin-top: 2px;
}
.security-item h4 { font-size: 0.93rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.security-item p  { font-size: 0.83rem; color: var(--text-2); line-height: 1.5; }
.security-visual {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
  font-family: 'Courier New', monospace;
}
.code-line    { font-size: 0.78rem; line-height: 2; }
.code-comment { color: #4b5563; }
.code-key     { color: var(--brand); }
.code-string  { color: var(--brand-2); }
.code-env     { color: var(--brand-3); }


/* ════════════════════════════════════════
   CTA
════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(79,  142, 247, 0.08) 0%,
    rgba(56,  212, 192, 0.06) 50%,
    rgba(167, 139, 250, 0.08) 100%
  );
  border: 1px solid rgba(79, 142, 247, 0.15);
  border-radius: 24px; padding: 80px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; left: -20%; right: -20%; bottom: -50%;
  background: radial-gradient(ellipse at center, rgba(79, 142, 247, 0.06) 0%, transparent 70%);
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-1); margin-bottom: 14px; position: relative;
}
.cta-section p {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 520px; margin: 0 auto 32px; position: relative;
}
.cta-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; position: relative;
}


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px; text-align: center;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; margin-bottom: 12px;
}
footer p { font-size: 0.83rem; color: var(--text-3); }


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-visual      { display: none; }
  .problem-grid     { grid-template-columns: 1fr 1fr; }
  .steps            { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps::before    { display: none; }
  .adapters-grid    { grid-template-columns: 1fr; }
  .agents-grid      { grid-template-columns: 1fr; }
  .benefits-grid    { grid-template-columns: 1fr 1fr; }
  .security-wrap    { grid-template-columns: 1fr; }
  .stats-row        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .problem-grid  { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-row     { grid-template-columns: 1fr 1fr; }
}
