*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body, button, input, select, textarea {
  font-family: 'Inter', sans-serif;
}
.fa-solid, .fas { font-family: "Font Awesome 6 Free" !important; font-weight: 900; }
.fa-brands, .fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400; }
.fa-regular, .far { font-family: "Font Awesome 6 Free" !important; font-weight: 400; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
[id] { scroll-margin-top: 80px; }

/* ── THEME VARIABLES ──────────────────────────────────── */
:root {
  --blue: #697dfb;
  --blue-hover: #8394ff;
  --blue-glow: rgba(105,125,251,0.5);
  --px: clamp(20px, 6vw, 108px);

  /* Dark mode (default) */
  --bg:              #04060f;
  --bg-2:            #060912;
  --bg-3:            #02040a;
  --surface:         rgba(255,255,255,0.03);
  --surface-2:       rgba(255,255,255,0.05);
  --border:          rgba(255,255,255,0.08);
  --border-2:        rgba(255,255,255,0.06);
  --border-hover:    rgba(255,255,255,0.14);
  --text-primary:    #ffffff;
  --text-secondary:  rgba(255,255,255,0.55);
  --text-muted:      rgba(255,255,255,0.35);
  --text-subtle:     rgba(255,255,255,0.25);
  --text-nav:        rgba(255,255,255,0.65);
  --nav-active:      rgba(255,255,255,0.12);
  --nav-bg:          rgba(255,255,255,0.05);
  --nav-border:      rgba(255,255,255,0.1);
  --nav-scrolled:    rgba(4,6,15,0.88);
  --node-bg:         rgba(255,255,255,0.04);
  --node-border:     rgba(255,255,255,0.09);
  --scrollbar-bg:    var(--bg);
  --pain-bg:         rgba(255,255,255,0.02);
  --pain-border:     rgba(255,255,255,0.04);
  --mobile-menu-bg:  #04060f;
  --mobile-link:     rgba(255,255,255,0.4);
  --footer-border:   rgba(255,255,255,0.1);
  --footer-dashed:   rgba(255,255,255,0.1);
  --footer-link:     rgba(255,255,255,0.6);
  --footer-text:     rgba(255,255,255,0.6);
  --soc-bg:          rgba(255,255,255,0.06);
  --notif-bg:        rgba(0,0,0,0.2);
  --notif-border:    rgba(255,255,255,0.06);
  --notif-fade-from: rgba(6,9,18,0.9);
  --portal-bg:       rgba(255,255,255,0.04);
  --portal-border:   rgba(255,255,255,0.08);
  --team-row-bg:     rgba(255,255,255,0.03);
  --team-row-border: rgba(255,255,255,0.06);
  --notif-item-hover:rgba(255,255,255,0.04);
  --cal-bg:          rgba(255,255,255,0.03);
  --cal-border:      rgba(255,255,255,0.07);
  --scbar-bg:        rgba(255,255,255,0.06);
  --prague-card:     rgba(255,255,255,0.015);
  --prague-border:   rgba(255,255,255,0.06);
  --prague-top-border: rgba(255,255,255,0.05);
  --prague-dot:      rgba(255,255,255,0.15);
  --cta-container-bg: rgba(255,255,255,0.02);
  --cta-container-border: rgba(255,255,255,0.05);
  --cta-grid:        rgba(255,255,255,0.03);
  --cta-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --h1-gradient:     linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.72) 100%);
  --cta-title-gradient: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
  --footer-grid:     rgba(255,255,255,0.03);
  --eco-section-bg:  #060912;
  --cap-section-bg:  #04060f;
}

/* ── LIGHT MODE ──────────────────────────────────────── */
[data-theme="light"] {
  --blue: #0e2742;
  --blue-hover: #16325B;
  --blue-glow: rgba(14,39,66,0.5);
  --bg:              #f4f6fb;
  --bg-2:            #eef0f8;
  --bg-3:            #e8ecf5;
  --surface:         rgba(255,255,255,0.85);
  --surface-2:       rgba(255,255,255,0.9);
  --border:          rgba(22,50,91,0.12);
  --border-2:        rgba(22,50,91,0.08);
  --border-hover:    rgba(22,50,91,0.22);
  --text-primary:    #0d1527;
  --text-secondary:  rgba(13,21,39,0.62);
  --text-muted:      rgba(13,21,39,0.45);
  --text-subtle:     rgba(13,21,39,0.32);
  --text-nav:        rgba(13,21,39,0.7);
  --nav-active:      rgba(22,50,91,0.1);
  --nav-bg:          rgba(255,255,255,0.75);
  --nav-border:      rgba(22,50,91,0.12);
  --nav-scrolled:    rgba(244,246,251,0.92);
  --node-bg:         rgba(255,255,255,0.8);
  --node-border:     rgba(22,50,91,0.12);
  --scrollbar-bg:    var(--bg);
  --pain-bg:         rgba(255,255,255,0.7);
  --pain-border:     rgba(22,50,91,0.1);
  --mobile-menu-bg:  #f4f6fb;
  --mobile-link:     rgba(13,21,39,0.5);
  --footer-border:   rgba(22,50,91,0.12);
  --footer-dashed:   rgba(22,50,91,0.12);
  --footer-link:     rgba(13,21,39,0.55);
  --footer-text:     rgba(13,21,39,0.55);
  --soc-bg:          rgba(22,50,91,0.08);
  --notif-bg:        rgba(255,255,255,0.7);
  --notif-border:    rgba(22,50,91,0.1);
  --notif-fade-from: rgba(238,240,248,0.95);
  --portal-bg:       rgba(255,255,255,0.7);
  --portal-border:   rgba(22,50,91,0.1);
  --team-row-bg:     rgba(255,255,255,0.7);
  --team-row-border: rgba(22,50,91,0.1);
  --notif-item-hover: rgba(22,50,91,0.05);
  --cal-bg:          rgba(255,255,255,0.7);
  --cal-border:      rgba(22,50,91,0.1);
  --scbar-bg:        rgba(22,50,91,0.08);
  --prague-card:     rgba(255,255,255,0.75);
  --prague-border:   rgba(22,50,91,0.12);
  --prague-top-border: rgba(22,50,91,0.08);
  --prague-dot:      rgba(22,50,91,0.15);
  --cta-container-bg: rgba(255,255,255,0.8);
  --cta-container-border: rgba(22,50,91,0.12);
  --cta-grid:        rgba(22,50,91,0.04);
  --cta-shadow: 0 10px 30px rgba(22, 50, 91, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --h1-gradient:     linear-gradient(180deg, #0d1527 0%, rgba(13,21,39,0.75) 100%);
  --cta-title-gradient: linear-gradient(180deg, #0d1527 0%, rgba(13,21,39,0.7) 100%);
  --footer-grid:     rgba(22,50,91,0.04);
  --eco-section-bg:  #eef0f8;
  --cap-section-bg:  #f4f6fb;
}

/* ── DARK MODE — explicit section-level scoping ───────────────────────────
   Lets sections with data-theme="dark" restore dark vars even when
   <html data-theme="light"> is active.
─────────────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --blue: #697dfb;
  --blue-hover: #8394ff;
  --blue-glow: rgba(105,125,251,0.5);
  --bg:              #04060f;
  --bg-2:            #060912;
  --bg-3:            #02040a;
  --surface:         rgba(255,255,255,0.03);
  --surface-2:       rgba(255,255,255,0.05);
  --border:          rgba(255,255,255,0.08);
  --border-2:        rgba(255,255,255,0.06);
  --border-hover:    rgba(255,255,255,0.14);
  --text-primary:    #ffffff;
  --text-secondary:  rgba(255,255,255,0.55);
  --text-muted:      rgba(255,255,255,0.35);
  --text-subtle:     rgba(255,255,255,0.25);
  --text-nav:        rgba(255,255,255,0.65);
  --nav-active:      rgba(255,255,255,0.12);
  --nav-bg:          rgba(255,255,255,0.05);
  --nav-border:      rgba(255,255,255,0.1);
  --nav-scrolled:    rgba(4,6,15,0.88);
  --node-bg:         rgba(255,255,255,0.04);
  --node-border:     rgba(255,255,255,0.09);
  --scrollbar-bg:    #04060f;
  --pain-bg:         rgba(255,255,255,0.02);
  --pain-border:     rgba(255,255,255,0.04);
  --mobile-menu-bg:  #04060f;
  --mobile-link:     rgba(255,255,255,0.4);
  --footer-border:   rgba(255,255,255,0.1);
  --footer-dashed:   rgba(255,255,255,0.1);
  --footer-link:     rgba(255,255,255,0.6);
  --footer-text:     rgba(255,255,255,0.6);
  --soc-bg:          rgba(255,255,255,0.06);
  --notif-bg:        rgba(0,0,0,0.2);
  --notif-border:    rgba(255,255,255,0.06);
  --notif-fade-from: rgba(6,9,18,0.9);
  --portal-bg:       rgba(255,255,255,0.04);
  --portal-border:   rgba(255,255,255,0.08);
  --team-row-bg:     rgba(255,255,255,0.03);
  --team-row-border: rgba(255,255,255,0.06);
  --notif-item-hover:rgba(255,255,255,0.04);
  --cal-bg:          rgba(255,255,255,0.03);
  --cal-border:      rgba(255,255,255,0.07);
  --scbar-bg:        rgba(255,255,255,0.06);
  --prague-card:     rgba(255,255,255,0.015);
  --prague-border:   rgba(255,255,255,0.06);
  --prague-top-border: rgba(255,255,255,0.05);
  --prague-dot:      rgba(255,255,255,0.15);
  --cta-container-bg: rgba(255,255,255,0.02);
  --cta-container-border: rgba(255,255,255,0.05);
  --cta-grid:        rgba(255,255,255,0.03);
  --cta-shadow: 0 20px 60px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  --h1-gradient:     linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.72) 100%);
  --cta-title-gradient: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
  --footer-grid:     rgba(255,255,255,0.03);
  --eco-section-bg:  #060912;
  --cap-section-bg:  #04060f;
  color: #ffffff;
}

.hero-bottom-fade { display: none; }

/* ── LIGHT MODE — component overrides ── */
[data-theme="light"] body { color: var(--text-primary); }
[data-theme="light"] .nav-logo { color: var(--text-primary); }
[data-theme="light"] .nav-hamburger span { background: var(--text-primary); }
/* h1 uses gradient text (-webkit-text-fill-color:transparent) so must override background+fill */
[data-theme="light"] h1 {
  background: var(--h1-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-sub { color: var(--text-secondary); }
[data-theme="light"] .spots { color: var(--text-muted); }
[data-theme="light"] .hero-badge { color: var(--text-secondary); background: rgba(255,255,255,0.6); border-color: rgba(22,50,91,0.15); }
[data-theme="light"] .section-eyebrow { color: var(--text-muted); }
[data-theme="light"] .problem-title { color: var(--text-primary); }
[data-theme="light"] .stat-num { color: var(--text-primary); }
[data-theme="light"] .stat-unit { color: var(--text-muted); }
[data-theme="light"] .card-desc { color: var(--text-secondary); }
[data-theme="light"] .card-desc strong { color: var(--text-primary); }
[data-theme="light"] .notif-vendor { color: rgba(13,21,39,0.75); }
[data-theme="light"] .notif-subject { color: var(--text-muted); }
[data-theme="light"] .notif-item { border-bottom-color: rgba(22,50,91,0.06); }
[data-theme="light"] .portal-chip { color: var(--text-secondary); border-color: rgba(15, 23, 42, 0.15); }
[data-theme="light"] .portal-chip:hover { color: var(--text-primary); }
[data-theme="light"] .sla-chart-labels { color: var(--text-subtle); }
[data-theme="light"] .sla-chart-bottom { color: var(--text-subtle); }
[data-theme="light"] .sla-line { stroke: #2563eb; }
[data-theme="light"] .cap-eyebrow { color: #2563eb; }
[data-theme="light"] .cap-title { color: var(--text-primary); }
[data-theme="light"] .cap-sub { color: var(--text-secondary); }
[data-theme="light"] .feat-label { color: rgba(37,99,235,0.75); }
[data-theme="light"] .feat-h { color: var(--text-primary); }
[data-theme="light"] .feat-desc { color: var(--text-secondary); }
[data-theme="light"] .feat-list li { color: var(--text-secondary); }
[data-theme="light"] .vc-label { color: var(--text-muted); }
[data-theme="light"] .cal-month { color: var(--text-primary); }
[data-theme="light"] .cal-nav { color: var(--text-muted); }
[data-theme="light"] .cal-day-label { color: var(--text-muted); }
[data-theme="light"] .cal-cell { color: var(--text-muted); }
[data-theme="light"] .cal-conflict-toast { color: var(--text-secondary); }
[data-theme="light"] .sc-name { color: rgba(13,21,39,0.85); }
[data-theme="light"] .sc-num { color: var(--text-primary); }
[data-theme="light"] .eco-eyebrow { color: #2563eb; }
[data-theme="light"] .eco-title { color: var(--text-primary); }
[data-theme="light"] .eco-sub { color: var(--text-secondary); }
[data-theme="light"] .eco-cat { color: var(--text-muted); }
[data-theme="light"] .eco-cat strong { color: var(--text-primary); }
[data-theme="light"] .eco-api-note { color: var(--text-subtle); }
[data-theme="light"] .eco-node span { color: var(--text-muted); }
[data-theme="light"] .eco-node i { color: var(--text-primary); }
[data-theme="light"] .eco-node:hover { background: rgba(22,50,91,0.08); border-color: rgba(22,50,91,0.2); }
[data-theme="light"] .eco-hub { background: var(--blue); }
[data-theme="light"] .eco-hub-label { color: rgba(255,255,255,0.9); }
[data-theme="light"] .praha-title { color: var(--text-primary); }
[data-theme="light"] .praha-italic { color: rgba(13,21,39,0.6); }
[data-theme="light"] .p-avatar-text { color: var(--text-muted); }
[data-theme="light"] .praha-body { color: var(--text-secondary); }
[data-theme="light"] .praha-pain p { color: var(--text-primary); }
[data-theme="light"] .praha-pain svg { stroke: #2563eb; }
[data-theme="light"] .praha-closing p { color: var(--text-muted); }
[data-theme="light"] .praha-closing span { color: var(--text-primary); }
[data-theme="light"] .praha-eyebrow { color: var(--text-muted); }
[data-theme="light"] .cta-eyebrow { color: #2563eb; background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.25); }
[data-theme="light"] .cta-sub { color: var(--text-secondary); }
/* cta-title also uses gradient text — override with dark gradient */
[data-theme="light"] .cta-title {
  background: var(--cta-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .nf-heading { color: var(--text-primary); }
[data-theme="light"] .nf-desc { color: var(--text-secondary); }
[data-theme="light"] .nf-social-title { color: var(--text-secondary); }
[data-theme="light"] .nf-soc-link { color: var(--text-primary); }
[data-theme="light"] .nf-col h4 { color: var(--text-primary); }
[data-theme="light"] .nf-col a { color: var(--footer-link); }
[data-theme="light"] .nf-col a:hover { color: var(--text-primary); }
[data-theme="light"] .nf-bottom { color: var(--footer-text); }
[data-theme="light"] .btn-secondary { color: var(--text-primary); border-color: rgba(22,50,91,0.22); background: rgba(255,255,255,0.6); }
[data-theme="light"] .btn-secondary:hover { border-color: rgba(22,50,91,0.5); background: rgba(255,255,255,0.9); }
[data-theme="light"] .cta-btn-sec { color: var(--text-primary); border-color: rgba(22,50,91,0.2); background: rgba(255,255,255,0.6); }
[data-theme="light"] .cta-btn-sec:hover { background: rgba(255,255,255,0.9); border-color: rgba(22,50,91,0.35); }
[data-theme="light"] .below-hero { background: var(--bg-2); color: var(--text-subtle); }
[data-theme="light"] .below-hero { background: var(--bg-2); color: var(--text-subtle); }
[data-theme="light"] .hero-bottom-fade { background: linear-gradient(to top, var(--bg) 0%, transparent 100%); }

/* Light mode: extra component fixes */
[data-theme="light"] .bento-card::after { background: radial-gradient(ellipse at 50% 0%, rgba(22,50,91,0.04) 0%, transparent 65%); }
[data-theme="light"] .visual-card::before { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22,50,91,0.08) 0%, transparent 70%); }
[data-theme="light"] .cap-section::before { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(22,50,91,0.06) 0%, transparent 70%); }
[data-theme="light"] .eco-section::before { background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(22,50,91,0.08) 0%, transparent 70%); }
[data-theme="light"] .cta-glow-left { opacity: 0.16; background: #697dfb; filter: blur(100px); }
[data-theme="light"] .cta-glow-right { opacity: 0.12; background: #fb923c; filter: blur(100px); }
[data-theme="light"] .cta-container {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(105, 125, 251, 0.18);
  box-shadow: 0 20px 40px rgba(22, 50, 91, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .sla-threshold-line { stroke: rgba(239,68,68,0.5); }
[data-theme="light"] .cal-today { background: rgba(22,50,91,0.1); border-color: rgba(22,50,91,0.25); }
[data-theme="light"] .problem-section::before { background: linear-gradient(90deg, transparent, rgba(22,50,91,0.15), transparent); }
[data-theme="light"] .eco-hub { box-shadow: 0 0 40px rgba(22,50,91,0.2), 0 0 80px rgba(22,50,91,0.1); }
[data-theme="light"] .cta-container::before { background: linear-gradient(90deg, transparent, rgba(22,50,91,0.3), transparent); }
[data-theme="light"] nav.scrolled { box-shadow: 0 1px 20px rgba(22,50,91,0.08); }

/* ── PROBLEM SECTION — light mode variation ── */
.problem-section--light {
  background: var(--bg-3); /* matches Tacbot Edge section */
  position: relative;
  overflow: hidden;
}

/* Scope the glass overlay so it only covers within the problem section */
.problem-section--light .praha-glass-overlay {
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
}

/* Lift header and grid above the blob layer */
.problem-section--light .problem-header,
.problem-section--light .bento-grid {
  position: relative;
  z-index: 10;
}

/* Decorative top border accent */
.problem-section--light::before {
  background: linear-gradient(90deg, transparent, rgba(22,50,91,0.18), transparent);
}

/* Cards: crisp white with blue-grey tinted border */
.problem-section--light .bento-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(22,50,91,0.1);
  box-shadow: 0 2px 16px rgba(22,50,91,0.06), 0 1px 4px rgba(22,50,91,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.problem-section--light .bento-card:hover {
  border-color: rgba(22,50,91,0.2);
  box-shadow: 0 8px 32px rgba(22,50,91,0.1), 0 2px 8px rgba(22,50,91,0.06);
}
.problem-section--light .bento-card::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(22,50,91,0.04) 0%, transparent 65%);
}

/* Text colours — dark ink on light backgrounds */
.problem-section--light .section-eyebrow   { color: var(--text-muted); letter-spacing: 2.5px; }
.problem-section--light .problem-title     { color: var(--text-primary); }
.problem-section--light .stat-num          { color: var(--text-primary); }
.problem-section--light .stat-unit         { color: var(--text-muted); }
.problem-section--light .card-desc         { color: var(--text-secondary); }
.problem-section--light .card-desc strong  { color: var(--text-primary); }
.problem-section--light .card-desc em      { color: #e35b1a; }

/* Tags — keep vibrant on light bg */
.problem-section--light .card-tag--red    { background: rgba(239,68,68,0.08);  color: #dc2626; border-color: rgba(239,68,68,0.18); }
.problem-section--light .card-tag--orange { background: rgba(234,88,12,0.08);  color: #c2410c; border-color: rgba(234,88,12,0.18); }

/* Notification stream */
.problem-section--light .notif-viewport {
  background: rgba(232,236,245,0.7);
  border-color: rgba(22,50,91,0.12);
}
.problem-section--light .notif-viewport::before { background: linear-gradient(to bottom, rgba(232,236,245,0.97), transparent); }
.problem-section--light .notif-viewport::after  { background: linear-gradient(to top,   rgba(232,236,245,0.97), transparent); }
.problem-section--light .notif-item             { border-bottom-color: rgba(22,50,91,0.07); }
.problem-section--light .notif-item:hover       { background: rgba(22,50,91,0.04); }
.problem-section--light .notif-vendor           { color: rgba(13,21,39,0.8); }
.problem-section--light .notif-subject          { color: rgba(13,21,39,0.45); }

/* Portal grid chips */
.problem-section--light .portal-chip {
  background: rgba(232,236,245,0.65);
  border-color: rgba(22,50,91,0.12);
  color: rgba(13,21,39,0.82);
}
.problem-section--light .portal-chip:hover {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.25);
  color: #0d1527;
}

/* SLA chart */
.problem-section--light .sla-chart-labels  { color: rgba(13,21,39,0.35); }
.problem-section--light .sla-chart-bottom  { color: rgba(13,21,39,0.35); }
.problem-section--light .sla-line          { stroke: #2563eb; }
.problem-section--light .sla-threshold-line { stroke: rgba(239,68,68,0.5); }

/* ── DARK SECTION overrides — must come AFTER light overrides to win on specificity tie ── */
[data-theme="dark"] .section-eyebrow  { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .problem-title    { color: #ffffff; }
[data-theme="dark"] .stat-num         { color: #ffffff; }
[data-theme="dark"] .stat-unit        { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .card-desc        { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .card-desc strong { color: #ffffff; }
[data-theme="dark"] .notif-vendor     { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .notif-subject    { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .notif-item       { border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .portal-chip      { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .sla-chart-labels { color: rgba(255,255,255,0.25); }
[data-theme="dark"] .sla-chart-bottom { color: rgba(255,255,255,0.25); }
[data-theme="dark"] .sla-line         { stroke: #697dfb; }
[data-theme="dark"] .sla-threshold-line { stroke: rgba(239,68,68,0.45); }
[data-theme="dark"] .stress-total-bar { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }
[data-theme="dark"] .eco-eyebrow      { color: #697dfb; }
[data-theme="dark"] .eco-title        { color: #ffffff; }
[data-theme="dark"] .eco-sub          { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .eco-cat          { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .eco-cat strong   { color: #ffffff; }
[data-theme="dark"] .eco-api-note     { color: rgba(255,255,255,0.25); }
[data-theme="dark"] .eco-node span    { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .eco-node i       { color: #ffffff; }
[data-theme="dark"] .eco-hub          { background: #697dfb; box-shadow: 0 0 40px rgba(105,125,251,0.3), 0 0 80px rgba(105,125,251,0.12); }
[data-theme="dark"] .eco-hub-label    { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .praha-title      { color: #ffffff; }
[data-theme="dark"] .praha-italic     { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .p-avatar-text    { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .praha-body       { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .praha-pain p     { color: #ffffff; }
[data-theme="dark"] .praha-pain svg   { stroke: #697dfb; }
[data-theme="dark"] .praha-closing p  { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .praha-closing span { color: #ffffff; }
[data-theme="dark"] .praha-eyebrow    { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .cta-eyebrow      { color: #697dfb; background: rgba(105,125,251,0.1); border-color: rgba(105,125,251,0.25); }
[data-theme="dark"] .cta-sub          { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .cta-title        { background: var(--cta-title-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="dark"] .btn-secondary    { color: #ffffff; border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }
[data-theme="dark"] .cta-btn-sec      { color: #ffffff; border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }
[data-theme="dark"] .problem-section::before { background: linear-gradient(90deg, transparent, rgba(105,125,251,0.12), transparent); }
[data-theme="dark"] .eco-section::before { background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(105,125,251,0.1) 0%, transparent 70%); }
[data-theme="dark"] .cta-glow-left    { background: rgba(105,125,251,0.5); opacity: 0.4; }
[data-theme="dark"] .cta-glow-right   { background: rgba(251,191,36,0.4); opacity: 0.25; }
[data-theme="dark"] .cta-container::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
[data-theme="dark"] .cal-today        { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .bento-card::after { background: radial-gradient(ellipse at 50% 0%, rgba(105,125,251,0.04) 0%, transparent 65%); }
[data-theme="dark"] .visual-card::before { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(105,125,251,0.1) 0%, transparent 70%); }
[data-theme="dark"] img.logo-light { display: block; }
[data-theme="dark"] img.logo-dark  { display: none; }
[data-theme="dark"] .nf-logo .logo-light { display: block; }
[data-theme="dark"] .nf-logo .logo-dark  { display: none; }
[data-theme="dark"] .nf-heading   { color: #ffffff; }
[data-theme="dark"] .nf-desc      { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .nf-social-title { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .nf-soc-link  { color: #ffffff; }
[data-theme="dark"] .nf-col h4    { color: #ffffff; }
[data-theme="dark"] .nf-col a     { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .nf-col a:hover { color: #ffffff; }
[data-theme="dark"] .nf-bottom    { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .cap-eyebrow  { color: #697dfb; }
[data-theme="dark"] .cap-title    { color: #ffffff; }
[data-theme="dark"] .cap-sub      { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .feat-label   { color: rgba(105,125,251,0.75); }
[data-theme="dark"] .feat-h       { color: #ffffff; }
[data-theme="dark"] .feat-desc    { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .feat-list li { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .vc-label     { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .cal-month    { color: #ffffff; }
[data-theme="dark"] .cal-nav      { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .cal-day-label { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .cal-cell     { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .cal-conflict-toast { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .sc-name      { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .sc-num       { color: #ffffff; }
[data-theme="dark"] .cap-section::before { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(105,125,251,0.08) 0%, transparent 70%); }

html { scroll-behavior: smooth; }
.no-transitions,
.no-transitions * {
  transition: none !important;
}
body { background: var(--bg); color: var(--text-primary); font-family: 'Inter', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-overflow-scrolling: touch; transition: background-color 0.3s ease, color 0.3s ease; }

/* ── NAV ─────────────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 12px var(--px); transition: background-color 0.4s; }
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; gap: 36px; }
.nav-left { flex: 1; display: flex; align-items: center; }
.nav-right { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-center { display: flex; align-items: center; justify-content: center; }
nav.scrolled { background: var(--nav-scrolled); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-2); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: var(--text-primary); }
.nav-logo-mark { border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; position: relative; }
.nav-logo-mark img { height: 28px; width: auto; display: block; }
.nav-links { background: none; border: none; border-radius: 0; padding: 0; display: flex; gap: 28px; backdrop-filter: none; transition: none; }
.nav-links a { color: var(--text-nav); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; border-radius: 0; transition: color 0.2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text-primary); background: none; }
.nav-links a.active { color: var(--text-primary); background: none; font-weight: 600; }

/* ── THEME TOGGLE BUTTON ─────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
  color: #ffffff;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.08);
  box-shadow: 0 4px 16px var(--blue-glow);
}
[data-theme="light"] .theme-toggle {
  border: 1.5px solid rgba(22,50,91,0.25);
  background: rgba(255,255,255,0.85);
  color: #0d1527;
  box-shadow: 0 1px 6px rgba(22,50,91,0.1);
}
[data-theme="light"] .theme-toggle:hover {
  background: #ffffff;
  border-color: rgba(22,50,91,0.45);
  box-shadow: 0 4px 16px rgba(22,50,91,0.15);
}
.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Dark mode: show moon, hide sun */
:root .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

/* Logo: both SVG files use white fill — in light mode apply a CSS filter
   to render them as dark navy (matches brand primary #0d1527).
   We use brightness(0) saturate(100%) first to force the white base to black,
   then shift it to navy. */
img.logo-dark { display: none; }
img.logo-light { display: block; }
[data-theme="light"] img.logo-dark { display: block; }
[data-theme="light"] img.logo-light { display: none; }
[data-theme="light"] .logo-dark {
  filter: brightness(0) saturate(100%) invert(8%) sepia(35%) saturate(2256%) hue-rotate(207deg) brightness(91%) contrast(101%);
}
[data-theme="light"] .nf-logo .logo-light { display: block; }
[data-theme="light"] .nf-logo .logo-dark { display: none; }

.nav-cta { background: var(--blue); color: #fff; border: none; border-radius: 100px; padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.25s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 8px 24px var(--blue-glow); }

/* ── HERO ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px var(--px) 0; overflow: hidden; }
.stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; z-index: 1; }
/* ═══════════════════════════════════════════════════════
   HERO — SCATTERED MESH CONVERGING ON THE HUB
   Nodes ring the perimeter (clear of the centered text
   column), curved lines sweep down to the hub sitting below
   the CTAs. All colors from design tokens → adapts to
   light/dark. Lines + packets drawn by JS into the SVG.
═══════════════════════════════════════════════════════ */
.hero--mesh { justify-content: flex-start; gap: 0; padding-top: 110px; padding-bottom: 0; }
.hero--mesh .hero-content { max-width: 900px; gap: 18px; transform: none; flex-shrink: 0; padding-bottom: 16px; }
.hero--mesh .hero-content h1 { font-size: clamp(32px, 4.4vw, 56px); }
.hero-content h1 .h1-line { display: block; white-space: nowrap; }
.hero--mesh .hero-sub { max-width: 860px; font-size: clamp(14px, 1vw, 16px); }

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #4361EE; box-shadow: 0 0 0 4px rgba(67,97,238,0.18); }

/* Globe as ambient background behind the mesh */
.hero-globe-bg { z-index: 0; opacity: 0.35; pointer-events: none; }
[data-theme="light"] .hero-globe-bg { opacity: 0.25; }

/* Mesh sits in normal flow, below the text — guarantees zero overlap
   without needing any safe-zone math. Hub is vertically centered in
   this block, rings flank it left/right, exactly like the full
   Ecosystem Integrations diagram. */
.hero-diagram-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 480px;
  min-height: 480px;
  flex: 0 0 auto;
  margin: 0 auto;
  z-index: 1;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.hero-diagram-iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  border-radius: 16px 16px 0 0;
  display: block;
  background: transparent;
}
/* Tablet */
@media (max-width: 1024px) {
  .hero-diagram-wrap {
    height: 440px;
    min-height: 440px;
  }
  .hero-diagram-iframe {
    min-height: 440px;
  }
}
/* Mobile: show diagram with clean vertical tree height */
@media (max-width: 720px) {
  .hero-diagram-wrap {
    display: block;
    width: 100%;
    height: 640px;
    min-height: 640px;
    margin: 12px auto 0;
  }
  .hero-diagram-iframe {
    min-height: 640px;
  }
  .hero--mesh { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .hero-diagram-wrap {
    height: 610px;
    min-height: 610px;
    margin: 8px auto 0;
  }
  .hero-diagram-iframe {
    min-height: 610px;
  }
}
#globe-canvas:active, #cta-canvas:active { cursor: grabbing; }
.hero-bottom-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); pointer-events: none; z-index: 3; }
.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; max-width: 820px; opacity: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; padding: 8px 8px 8px 22px; font-size: 14px; color: var(--text-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.hero-badge:hover { border-color: rgba(22,50,91,0.5); background: rgba(22,50,91,0.15); }
.badge-arrow { width: 30px; height: 30px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s; }
.hero-badge:hover .badge-arrow { transform: translateX(2px); }
.badge-arrow svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.72) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--text-secondary); max-width: 720px; }
.hero-ctas { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; justify-content: center; z-index: 20; }
.hero-ctas .btn-primary, .hero-ctas .btn-secondary { min-width: 260px; max-width: 100%; }
.btn-primary { position: relative; background: var(--blue); color: #fff; border: none; border-radius: 100px; padding: 18px 48px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; overflow: hidden; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px var(--blue-glow); }
.btn-primary:hover::after { opacity: 1; }
.btn-secondary { background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border); border-radius: 100px; padding: 18px 32px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.3s; letter-spacing: -0.2px; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--nav-active); transform: translateY(-2px); }
.spots { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.spot-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

.below-hero { height: 100vh; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-subtle); letter-spacing: 3px; text-transform: uppercase; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: rgba(22,50,91,0.5); border-radius: 3px; }


/* ═══════════════════════════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════════════════════════ */
.problem-section {
  background: var(--bg-2);
  padding: 60px var(--px) 100px;
  position: relative;
  overflow: hidden;
}
.problem-section .problem-header,
.problem-section .bento-grid {
  position: relative;
  z-index: 10;
}
.problem-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.25), transparent);
}

/* Header */
.problem-header { text-align: center; margin-bottom: 64px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px;
}
.problem-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text-primary);
}
.problem-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
.card-sla { height: auto; }

/* Base card */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s;
  opacity: 0;
  transform: translateY(24px);
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px) !important;
}
.bento-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.card-notif   { grid-column: 1; grid-row: 1; }
.card-tickets { grid-column: 2; grid-row: 1; }
.card-sla     { grid-column: 1 / 3; grid-row: 2; }

/* Tags */
.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 100px;
  padding: 5px 12px; margin-bottom: 20px;
}
.card-tag--red    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.card-tag--orange { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.2); }
.card-tag--blue   { background: rgba(105,125,251,0.12); color: var(--blue); border: 1px solid rgba(105,125,251,0.25); }
[data-theme="light"] .card-tag--blue { color: #5567e9; }

/* Stats */
.card-stat { display: flex; align-items: baseline; gap: 2px; margin-bottom: 10px; line-height: 1; }
.stat-num  { font-size: 72px; font-weight: 900; letter-spacing: -4px; color: var(--text-primary); }
.stat-unit { font-size: 22px; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
.card-desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); max-width: 380px; }
.card-desc strong { color: var(--text-primary); }
.card-desc em { font-style: normal; color: rgba(249,115,22,0.9); }

/* ── Notification stream ── */
.notif-viewport {
  margin-top: 28px;
  height: 198px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--notif-border);
  background: var(--notif-bg);
}
.notif-viewport::before,
.notif-viewport::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
}
.notif-viewport::before { top: 0;    height: 40px; background: linear-gradient(to bottom, var(--notif-fade-from), transparent); }
.notif-viewport::after  { bottom: 0; height: 40px; background: linear-gradient(to top,   var(--notif-fade-from), transparent); }

.notif-stream {
  padding: 8px 0;
  animation: streamScroll 18s linear infinite;
}
@keyframes streamScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.notif-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--notif-border);
  transition: background 0.2s;
  white-space: nowrap;
}
.notif-item:hover { background: var(--notif-item-hover); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.notif-vendor { font-size: 12px; font-weight: 600; color: var(--text-nav); min-width: 82px; flex-shrink: 0; }
.notif-subject { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Portal grid ── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.portal-chip {
  background: var(--node-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 7px;
  opacity: 0; transform: scale(0.85);
  transition: border-color 0.3s, background 0.3s;
}
.portal-chip span:first-of-type { flex: 1; }
.portal-chip:hover { border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.04); color: var(--text-primary); }
.portal-logo { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; 
  height: 14px; 
  font-size: 13px;
  flex-shrink: 0; 
}
.portal-spinner {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(249,115,22,0.25);
  border-top-color: #fb923c;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SLA card ── */
.card-sla-inner { display: flex; flex-direction: column; gap: 16px; }
.sla-text { display: flex; flex-direction: column; }
.sla-text .card-tag  { align-self: flex-start; }
.sla-text .card-desc { margin-top: 12px; margin-bottom: 10px; }
.sla-text .sla-miss-badge { align-self: flex-start; }
.sla-miss-badge {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(239,68,68,0.1); color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px; padding: 7px 12px;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50%     { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.sla-chart-wrap { display: flex; min-width: 0; }
.sla-chart-labels {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  padding-right: 8px;
  font-size: 10px; color: var(--text-subtle);
  text-align: right;
}
.sla-chart-labels span { position: absolute; right: 8px; white-space: nowrap; }
.sla-chart-labels span:first-child { top: 0; }
.sla-chart-labels span:last-child { top: auto; bottom: 0; }
.sla-threshold-label { top: 33%; transform: translateY(-50%); color: rgba(239,68,68,0.6); }
.sla-chart-plot { position: relative; flex: 1; min-width: 0; }
.sla-svg { display: block; width: 100%; height: 100px; overflow: visible; }
.sla-threshold-line {
  stroke: rgba(239,68,68,0.4); stroke-width: 1;
  stroke-dasharray: 6 4;
}
.sla-breach-fill { fill: rgba(239,68,68,0.1); }
.sla-line {
  fill: none; stroke: #60a5fa; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 800; stroke-dashoffset: 800;
}
.sla-line.drawn { animation: drawSLA 2.4s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes drawSLA { to { stroke-dashoffset: 0; } }
/* Positioned as real HTML/CSS circle, not SVG — preserveAspectRatio="none" above
   stretches x/y independently, which would turn an SVG <circle> into an ellipse. */
.sla-breach-dot {
  position: absolute;
  left: 59%; top: 62%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(239,68,68,0.8));
  animation: breachDotPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}
.sla-breach-dot.visible { opacity: 1; }
@keyframes breachDotPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.sla-chart-bottom {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-subtle); margin-top: 6px;
  margin-left: 62px;
}
.breach-label { color: rgba(239,68,68,0.6); }

@media (max-width: 860px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-notif,
  .card-tickets,
  .card-sla { grid-column: 1; grid-row: auto; }
  .sla-text { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════
   VISION SECTION
═══════════════════════════════════════════════════════ */
.vision-section {
  background: var(--bg);
  padding: 120px var(--px) 140px;
  position: relative;
  overflow: hidden;
}
.vision-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.15), transparent);
}

/* Header */
.vision-header { text-align: center; margin-bottom: 80px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.vision-header .section-eyebrow { font-size: 14px; letter-spacing: 3px; }
.vision-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text-primary);
}
.vision-title em {
  font-style: normal;
  color: var(--blue);
}

.vision-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Subsections */
.vision-subsection {
  position: relative;
}
.subsection-header {
  margin-bottom: 48px;
  max-width: 800px;
}
.subsection-header .tag-wrapper {
  margin-bottom: 16px;
}
.subsection-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.subsection-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Part A: Evolution Showcase */
.evolution-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.evolution-nav {
  display: flex;
  flex-direction: column;
}
.evolution-nav-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
}
.nav-item-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2b2f35;
  border: 2px solid var(--bg);
  z-index: 3;
}
.evolution-nav-item.done .node-dot { background: #22c55e; }
.evolution-nav-item.active .node-dot {
  box-shadow: 0 0 0 3px rgba(105,125,251,0.35);
}
.node-arrow {
  width: 14px;
  height: 28px;
  color: #6b7280;
  margin-top: 10px;
  margin-bottom: -32px;
  z-index: 2;
  transition: color 0.3s, transform 0.3s;
}
.evolution-nav-item.done .node-arrow { color: #22c55e; }
.evolution-nav-item.active .node-arrow { color: var(--blue); }
[data-theme="light"] .evolution-nav-item.active .node-arrow { color: #2563eb; }
.nav-item-arrow.done { color: #22c55e; }
.nav-item-content { text-align: left; }
.evolution-number {
  font-size: 24px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1;
}
.evolution-nav-item.done .evolution-number { color: #22c55e; }
.evolution-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.evolution-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Display Screen / Mockups */
.evolution-display {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
  position: relative;
  height: 390px;
  min-height: 390px;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mockup-panel {
  position: absolute;
  inset: 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.mockup-panel.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }
.mockup-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}
.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

/* Mockup Content Styles */
.mockup-ticket-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-id {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}
.ticket-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.badge-red { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.badge-orange { background: rgba(249, 115, 22, 0.08); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.15); }
.badge-green { background: rgba(16, 185, 129, 0.08); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.15); }
.ticket-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.ticket-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sync Bridge */
.sync-bridge {
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  padding: 8px 8px;
}
.sync-left, .sync-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 44%;
  justify-content: space-between;
}
.sync-center {
  width: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sync-source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sync-source-card img {
  width: 40px;
  height: auto;
  display: block;
  /* Brand blue color #2c3fd1 for light theme */
  filter: brightness(0) invert(22%) sepia(87%) saturate(2854%) hue-rotate(228deg) brightness(92%) contrast(96%);
}
[data-theme="dark"] .sync-source-card img {
  /* Brand neon blue color #697dfb for dark theme */
  filter: brightness(0) invert(37%) sepia(85%) saturate(3088%) hue-rotate(222deg) brightness(101%) contrast(96%);
}
.sync-dest-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  flex: 1;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.sync-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}
.sync-bullet.green { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.4); }
.sync-bullet.blue { background: #3b82f6; }
.sync-state {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.sync-double-arrow {
  width: 100%;
  max-width: 60px;
  height: auto;
  display: block;
  animation: sync-pulse 2s infinite ease-in-out;
}
@keyframes sync-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(105, 125, 251, 0.3));
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(105, 125, 251, 0.7));
    opacity: 1;
    transform: scale(1.05);
  }
}

/* AI Ops panel */
.ai-ops-panel {
  padding: 8px;
  gap: 20px;
  justify-content: space-between;
}
.ops-stats {
  display: flex;
  gap: 16px;
  justify-content: space-around;
}
.ops-stat-item {
  text-align: center;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 12px;
  border-radius: 12px;
}
.ops-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 4px;
}
.ops-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.alert-group-card {
  background: rgba(249, 115, 22, 0.04);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}
.alert-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 6px;
}
.badge-alert-status {
  background: rgba(249,115,22,0.12);
  color: #f97316;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 100px;
}
.alert-group-details {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* NOC console */
.noc-console {
  background: #04060f;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  padding: 16px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #a1a1aa;
  justify-content: flex-start;
}
[data-theme="light"] .noc-console {
  background: #080c18;
  color: #e2e8f0;
}
.console-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.log-line.text-red { color: #f87171; }
.log-line.text-blue { color: #60a5fa; }
.log-line.text-green { color: #34d399; }
.log-line.font-bold { font-weight: 700; }

/* Part B: Progressive Autonomy */
.autonomy-cards {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: stretch;
  padding: 60px 0;
  width: 100%;
}
.autonomy-card {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Staircase overlapping layout */
.autonomy-card--step0 { transform: translateY(40px); z-index: 1; }
.autonomy-card--step1 { transform: translateY(20px); z-index: 2; margin-left: -20px; }
.autonomy-card--step2 { transform: translateY(0px); z-index: 3; margin-left: -20px; }
.autonomy-card--step3 { transform: translateY(-20px); z-index: 4; margin-left: -20px; }
.autonomy-card--step4 { transform: translateY(-40px); z-index: 5; margin-left: -20px; }

/* Micro-interaction hovers */
.autonomy-card--step0:hover { transform: translateY(30px); z-index: 10; }
.autonomy-card--step1:hover { transform: translateY(10px); z-index: 10; }
.autonomy-card--step2:hover { transform: translateY(-10px); z-index: 10; }
.autonomy-card--step3:hover { transform: translateY(-30px); z-index: 10; }
.autonomy-card--step4:hover { transform: translateY(-50px); z-index: 10; }

/* Light cards (L0, L1, L2) - consistent contrast in both themes */
.autonomy-card--light {
  background: #ffffff;
  border: 1px solid #e4e6e9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.autonomy-card--light .autonomy-card-title {
  color: #0f172a;
}
.autonomy-card--light .autonomy-card-desc {
  color: #475569;
}
[data-theme="light"] .autonomy-card--light {
  background: #f8fcfa;
  box-shadow: 0 10px 25px rgba(22, 50, 91, 0.02);
}

/* Dark cards (L3, L4) - consistent dark background */
.autonomy-card--dark {
  background: #111827;
  border: 1px solid #374151;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.autonomy-card--dark .autonomy-card-title {
  color: #ffffff;
}
.autonomy-card--dark .autonomy-card-desc {
  color: #9ca3af;
}

/* Level Badges */
.autonomy-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}
.badge-l0 {
  background: #1e293b;
  color: #ffffff;
}
.badge-l1 {
  background: #0f766e;
  color: #ffffff;
}
.badge-l2 {
  background: #0d9488;
  color: #ffffff;
}
.badge-l3 {
  background: #d97706;
  color: #ffffff;
}
.badge-l4 {
  background: #d97706;
  color: #ffffff;
}

.autonomy-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.12);
}
.autonomy-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.autonomy-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.staircase-footer {
  text-align: center;
  font-size: 15px;
  margin-top: 48px;
}
.staircase-footer strong {
  color: #f59e0b;
  font-weight: 700;
}
.staircase-footer .muted {
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 900px) {
  .autonomy-cards {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 18px;
    width: 100%;
  }
  .autonomy-card {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 420px;
    text-align: center;
    align-items: center;
    padding: 24px 20px;
    margin: 0 auto;
  }
  .autonomy-badge {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .autonomy-card-title {
    text-align: center;
  }
  .autonomy-card-desc {
    text-align: center;
  }
  .autonomy-card-arrow {
    transform: rotate(90deg) translateY(0) !important;
    margin: 4px auto;
  }
}

/* Theme adaptation overlays for light mode */
[data-theme="light"] .evolution-display {
  box-shadow: 0 8px 24px rgba(22, 50, 91, 0.04);
}

/* Responsive Styles */
@media (max-width: 960px) {
  .vision-section {
    padding: 80px var(--px) 100px;
  }
  .evolution-showcase {
    gap: 30px;
  }
  .evolution-nav {
    overflow-x: auto;
    padding-bottom: 8px; /* space for scrollbar */
  }
  .evolution-nav-item {
    min-width: 260px;
    flex: 0 0 auto;
  }
  .evolution-display {
    height: 390px;
    min-height: 390px;
    margin-left: auto;
    margin-right: auto;
  }
  .slider-content-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .slider-info-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .slider-visualizer {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .visualizer-ratios {
    width: 100%;
  }
  .sync-bridge {
    flex-direction: column;
    gap: 16px;
  }
  .sync-left, .sync-right {
    width: 100%;
  }
  .sync-center {
    width: 100%;
    height: 40px;
  }
  .sync-double-arrow {
    transform: rotate(90deg);
    max-width: 24px;
  }
}

@media (max-width: 480px) {
  .autonomy-widget {
    padding: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   CAPABILITIES SECTION
═══════════════════════════════════════════════════════ */
.cap-section {
  background: var(--cap-section-bg);
  padding: 120px var(--px) 140px;
  position: relative;
}
.cap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(22,50,91,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cap-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 96px;
}
.cap-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #60a5fa;
  margin: 0 0 16px;
}
.cap-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.cap-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--flip .feature-text { order: 2; }
.feature-row--flip .visual-card  { order: 1; }

.feat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(96,165,250,0.6);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feat-h {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.feat-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 24px;
}
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-list li {
  font-size: 14px;
  color: var(--footer-link);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
}

/* Visual card wrapper */
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22,50,91,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.vc-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── Network Canvas ── */
#networkCanvas {
  width: 100%;
  height: 360px;
  display: block;
  border-radius: 12px;
}

/* ── Calendar Demo ── */
.cal-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-size: 13px;
  color: var(--text-primary);
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cal-month {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.cal-nav {
  display: flex;
  gap: 12px;
  color: var(--text-subtle);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.cal-day-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subtle);
  text-align: center;
  padding: 0 0 6px;
  letter-spacing: 0.05em;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 8px;
  position: relative;
  transition: background 0.2s;
  cursor: default;
}
.cal-today {
  background: rgba(22,50,91,0.6);
  color: #60a5fa;
  font-weight: 700;
  border: 1px solid rgba(96,165,250,0.3);
}
.cal-has-event {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
}
.cal-has-event.revealed {
  opacity: 1;
  transform: scale(1);
}
.cal-has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b82f6;
}
.cal-conflict::after { background: #f87171; }
.cal-conflict.revealed {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  font-weight: 700;
}
.cal-conflict-toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-nav);
  line-height: 1.5;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}
.cal-conflict-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.cal-conflict-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* ── Scorecard Demo ── */
.scorecard-demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sc-row {
  display: grid;
  grid-template-columns: 28px 1fr 48px;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.sc-row.revealed {
  opacity: 1;
  transform: translateX(0);
}
.sc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  color: var(--text-primary);
}
.sc-logo.svg {
  object-fit: contain;
  filter: brightness(0.9);
}
.sc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.sc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.sc-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.sc-badge--gold  { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.sc-badge--warn  { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.3); }
.sc-badge--alert { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.sc-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.sc-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1e4480 0%, #3b82f6 100%);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.sc-row:first-child .sc-bar {
  background: linear-gradient(90deg, #92400e 0%, #fbbf24 100%);
}
.sc-score {
  text-align: right;
}
.sc-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row--flip .feature-text { order: 1; }
  .feature-row--flip .visual-card  { order: 2; }
  #networkCanvas { height: 220px; }
}

/* ═══════════════════════════════════════════════════════
   ECOSYSTEM INTEGRATIONS SECTION
═══════════════════════════════════════════════════════ */
.eco-section {
  background: var(--bg-2);
  padding: 120px var(--px) 140px;
  position: relative;
  overflow: hidden;
}
.eco-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(22,50,91,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.eco-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}
.eco-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #60a5fa;
  margin: 0 0 16px;
}
.eco-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.eco-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Hub + spoke diagram */
.eco-hub-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG lines layer */
.eco-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Center hub */
.eco-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #16325B;
  border: 1.5px solid rgba(96,165,250,0.45);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 0 40px rgba(22,50,91,0.8), 0 0 80px rgba(22,50,91,0.4);
  min-width: 80px;
  text-align: center;
}
#networkHub {
  position: absolute !important;
  margin: 0 !important;
  padding: 12px;
  min-width: 62px;
  border-radius: 18px;
  z-index: 4;
}
.eco-hub-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.eco-hub-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

/* Left / right node rings */
.eco-ring {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  z-index: 3;
}
.eco-ring--in  { left: 0; align-items: flex-start; }
.eco-ring--out { right: 0; align-items: flex-end; }

/* Individual node */
.eco-node {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--node-bg);
  border: 1px solid var(--node-border);
  border-radius: 10px;
  padding: 8px 14px 8px 10px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.25s, background 0.25s;
  cursor: default;
  white-space: nowrap;
}
.eco-node--out {
  flex-direction: row-reverse;
  transform: translateX(18px);
}
.eco-node:hover {
  background: rgba(22,50,91,0.35);
  border-color: rgba(96,165,250,0.35);
}
.eco-node.revealed {
  opacity: 1;
  transform: translateX(0);
}
.eco-node img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0.8);
}
.eco-node i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  color: var(--text-primary);
}
.eco-node span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-nav);
}

/* Category legend */
.eco-cats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.eco-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.eco-cat strong { color: var(--text-primary); font-weight: 600; }
.eco-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.eco-cat--in  .eco-cat-dot { background: rgba(96,165,250,0.8); }
.eco-cat--hub .eco-cat-dot { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.eco-cat--out .eco-cat-dot { background: rgba(52,211,153,0.8); }

/* API note */
.eco-api-note {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .eco-hub-wrap { height: auto; min-height: 1000px; flex-direction: column; gap: 120px; padding: 60px 0; }
  .eco-ring { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .eco-hub { margin: 20px 0; }
  .eco-svg { display: block; } /* Enabled on mobile for adaptation */
  /* Nodes are opacity:0 by default waiting for JS reveal — on mobile reveal them
     via JS as usual to maintain consistent entrance animation. */
}



/* ═══════════════════════════════════════════════════════
   SECTION 5 — THE TACBOT EDGE  (Praha / Produce UI Style)
═══════════════════════════════════════════════════════ */
.edge-praha {
  position: relative;
  background: var(--bg-3); /* Deep obsidian */
  padding: 120px var(--px);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}

/* ── Fluid Animated Background ── */
.praha-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.praha-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: prahaDrift 20s infinite alternate ease-in-out;
}
.praha-blob-1 {
  width: 50vw; height: 50vw;
  background: #172554;
  top: -10vw; left: -10vw;
  animation-duration: 25s;
}
.praha-blob-2 {
  width: 45vw; height: 45vw;
  background: #3b0764;
  bottom: -15vw; right: -10vw;
  animation-delay: -5s;
}
.praha-blob-3 {
  width: 35vw; height: 35vw;
  background: #0f172a;
  top: 40%; left: 40%;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}
/* Light mode blob overrides */
[data-theme="light"] .praha-blob-1 { background: #bfdbfe; opacity: 0.5; }
[data-theme="light"] .praha-blob-2 { background: #ddd6fe; opacity: 0.4; }
[data-theme="light"] .praha-blob-3 { background: #e0e7ff; opacity: 0.45; }
@keyframes prahaDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, 8vw) scale(1.05); }
  100% { transform: translate(-8vw, 4vw) scale(0.95); }
}

.praha-glass-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(80px); /* Melts the blobs */
  -webkit-backdrop-filter: blur(80px);
  z-index: 2;
}

.praha-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Container & Glass Card ── */
.praha-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.praha-card {
  background: var(--prague-card);
  border: 1px solid var(--prague-border);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.praha-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Top Bar ── */
.praha-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--prague-top-border);
  padding-bottom: 24px;
}
.praha-dot-group {
  display: flex;
  gap: 8px;
}
.praha-dot-group span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.praha-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Grid Layout ── */
.praha-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* ── Left Column ── */
.praha-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 40px 0;
}
.praha-italic {
  font-style: italic;
  font-family: Georgia, serif; /* Elegant contrast */
  color: var(--text-nav);
  font-weight: 400;
}

.praha-founders-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}
.praha-avatars {
  display: flex;
}
.p-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-3);
  background-size: cover;
  background-position: center;
  margin-left: -12px;
}
.p-avatar:first-child { margin-left: 0; }
.p-avatar-1 { background-image: url('https://i.pravatar.cc/100?img=11'); }
.p-avatar-2 { background-image: url('https://i.pravatar.cc/100?img=33'); }
.p-avatar-3 { background-image: url('https://i.pravatar.cc/100?img=12'); }
.p-avatar-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ── Right Column ── */
.praha-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-link);
  margin: 0 0 32px 0;
}

.praha-pain-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.praha-pain {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--pain-bg);
  border: 1px solid var(--pain-border);
  border-radius: 12px;
  padding: 16px 20px;
}
.praha-pain svg {
  width: 20px;
  height: 20px;
  stroke: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}
.praha-pain p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.praha-closing {
  border-top: 1px solid var(--prague-top-border);
  padding-top: 24px;
}
.praha-closing p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.praha-closing span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .praha-content-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 600px) {
  .praha-card { padding: 32px 24px; }
  .edge-praha { padding: 80px 24px; }
}

/* ═══════════════════════════════════════════════════════
   SECTION 6 — CTA
═══════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 100px var(--px);
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(105, 125, 251, 0.05) 0%, var(--bg-3) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
[data-theme="light"] .cta-section {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(105, 125, 251, 0.06) 0%, var(--bg-3) 100%);
}

.cta-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#cta-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.cta-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--cta-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cta-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center bottom;
  transform: perspective(600px) rotateX(60deg) scale(2);
  transform-origin: bottom center;
  opacity: 0.5;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: perspective(600px) rotateX(60deg) scale(2) translateY(0); }
  100% { transform: perspective(600px) rotateX(60deg) scale(2) translateY(60px); }
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.cta-glow-left {
  background: #3b82f6;
  bottom: -300px;
  left: -200px;
}

.cta-glow-right {
  background: #f59e0b;
  top: -200px;
  right: -200px;
}

.cta-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  border-radius: 28px;
  background: var(--cta-container-bg);
  border: 1px solid var(--cta-container-border);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--cta-shadow);
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-container.revealed {
  transform: translateY(0);
  opacity: 1;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.cta-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 24px;
  background: rgba(59, 130, 246, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cta-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--footer-link);
  max-width: 540px;
  margin: 0 auto 32px auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn {
  border: none;
  border-radius: 100px;
  padding: 20px 48px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 30px rgba(37, 99, 235, 0.4);
  transition: all 0.3s;
  text-decoration: none;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 12px 40px rgba(37, 99, 235, 0.6);
}

.btn-arrow { text-decoration: none; display: inline-block; }
.cta-btn .btn-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-btn-sec {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 19px 40px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: var(--surface-2);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn-sec:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-section { padding: 100px 20px; }
  .cta-container { padding: 60px 20px; }
  .cta-actions { flex-direction: column; }
  .cta-btn, .cta-btn-sec { width: 100%; justify-content: center; }
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  border-top: 1px solid var(--footer-border);
  padding: 40px 20px;
  background: var(--bg-primary, #050505);
  color: var(--text-secondary, #a1a1aa);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo img {
  height: 24px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary, #a1a1aa);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary, #ffffff);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-left {
    flex-direction: column;
    gap: 12px;
  }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE SYSTEM
═══════════════════════════════════════════════════════ */

/* ── Scale horizontal padding ── */
/* ── Scale horizontal padding (Now handled by clamp in :root) ── */
/* @media (max-width: 1200px) { :root { --px: 64px; } }
@media (max-width: 900px)  { :root { --px: 40px; } }
@media (max-width: 600px)  { :root { --px: 20px; } } */

/* ── Mobile Nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-cta { display: none; }
.nav-menu-footer { display: none; } /* Hidden on desktop */

@media (max-width: 768px) {
  nav { padding: 16px 20px; }

  .nav-hamburger { display: flex; }
  .nav-desktop-cta { display: none; }

  .nav-hamburger:focus {
    outline: none;
  }
  .nav-hamburger:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .nav-links {
    position: fixed;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    background: var(--mobile-menu-bg) !important;
    background: radial-gradient(circle at 70% 30%, rgba(22, 50, 91, 0.25), transparent), var(--mobile-menu-bg) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 0;
    border: none;
    padding: 100px 32px 60px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 999 !important;
    overflow-y: auto;
  }
  .nav-links::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
  }
  .nav-links::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(105, 125, 251, 0.15), transparent 70%);
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(50px);
  }
  [data-theme="light"] .nav-links::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { 
    font-size: clamp(18px, 5.5vw, 22px); 
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 10px 24px; 
    width: auto; 
    text-align: center; 
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
    flex-shrink: 0;
    border-radius: 100px;
  }
  .nav-links a:hover { color: var(--text-primary); background: var(--surface); }
  .nav-links a.active { 
    color: var(--blue) !important; 
    background: rgba(105, 125, 251, 0.08);
    box-shadow: 0 0 0 1px rgba(105, 125, 251, 0.15) inset;
    font-weight: 700;
  }
  [data-theme="light"] .nav-links a.active {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12) inset;
  }
  
  .nav-mobile-cta {
    display: block;
    margin-top: 24px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    width: auto;
    min-width: 220px;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 100px;
    box-shadow: 0 8px 30px rgba(105, 125, 251, 0.25);
    transition: all 0.3s ease;
  }
  [data-theme="light"] .nav-mobile-cta {
    background: #2563eb;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
  }
  .nav-mobile-cta:active {
    transform: scale(0.97);
  }

  .nav-menu-footer {
    display: flex; /* Shown on mobile */
    margin-top: auto;
    padding-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
    width: 100%;
  }
  .menu-socials {
    display: flex;
    gap: 28px;
    justify-content: center;
    width: 100%;
  }
  .menu-socials a {
    font-size: 18px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    width: auto !important;
    color: var(--mobile-link) !important;
    opacity: 1 !important;
    transform: none !important;
    transition: color 0.3s !important;
  }
  .menu-socials a:hover { color: var(--text-primary) !important; }
  .nav-menu-footer p {
    font-size: 12px;
    color: var(--text-subtle);
    letter-spacing: 1px;
    margin: 0;
  }
}

/* ── Hero ── */
@media (max-width: 768px) {
  .hero { 
    justify-content: flex-start;
    padding-top: clamp(160px, 25vh, 220px);
    padding-bottom: 80px; 
  }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-sub { font-size: 14px; line-height: 1.5; }
  .btn-primary, .btn-secondary { padding: 15px 28px; font-size: 15px; }
}
@media (max-width: 480px) {
  h1 { letter-spacing: -1.5px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ── Problem Section ── */

/* Tablet landscape: 2-col grid still, tighten gap */
@media (max-width: 1100px) {
  .bento-grid { gap: 12px; }
}

/* Tablet portrait & below: single column */
@media (max-width: 860px) {
  .problem-section { padding-top: 80px; padding-bottom: 80px; }
  .problem-header  { margin-bottom: 40px; }
  .bento-card      { padding: 24px; }

  .stat-num  { font-size: clamp(44px, 11vw, 72px); letter-spacing: -3px; }
  .stat-unit { font-size: clamp(16px, 3.5vw, 22px); }

  /* Card 1 — notification */
  .notif-viewport { height: 176px; }
  .notif-vendor   { min-width: 60px; font-size: 11px; }
  .notif-subject  { font-size: 11px; }

  /* Card 2 — portal grid: full-width card → 3 cols comfortable */
  .portal-grid { grid-template-columns: repeat(3, 1fr); }

  /* Card 3 — SLA */
  .card-sla-inner { gap: 20px; }
  .sla-svg        { height: 90px; }
}

/* Large phones: 480–680px */
@media (max-width: 680px) {
  .bento-card { padding: 20px; }
  .stat-num   { font-size: clamp(40px, 10vw, 60px); letter-spacing: -2px; }

  /* Card 2 — chips tighten, go 2-col */
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-chip { padding: 8px 10px; font-size: 11px; }
}

/* Small phones: ≤480px */
@media (max-width: 480px) {
  .bento-grid     { gap: 10px; }
  .bento-card     { padding: 18px; }
  .problem-header { margin-bottom: 32px; }
  .stat-num       { font-size: 44px; letter-spacing: -2px; }
  .stat-unit      { font-size: 16px; }
  .card-desc      { font-size: 13px; }

  /* Card 1 — notification compact */
  .notif-viewport { height: 156px; margin-top: 20px; }
  .notif-item     { padding: 7px 12px; gap: 7px; }
  .notif-dot      { width: 6px; height: 6px; }
  .notif-vendor   { min-width: 50px; font-size: 10px; }
  .notif-subject  { font-size: 10px; }

  /* Card 2 — chips compact */
  .portal-grid    { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 16px; }
  .portal-chip    { padding: 7px 8px; font-size: 10px; gap: 5px; border-radius: 7px; }
  .portal-logo    { width: 12px; height: 12px; }
  .portal-spinner { width: 8px; height: 8px; }

  /* Card 3 — SLA compact */
  .sla-miss-badge   { font-size: 10px; padding: 5px 10px; margin-top: 10px; }
  .sla-svg          { height: 76px; }
  .sla-chart-bottom { font-size: 9px; margin-left: 54px; }
  .sla-chart-labels { font-size: 9px; width: 46px; }
}

/* Very small phones: ≤360px */
@media (max-width: 360px) {
  .bento-card { padding: 14px; }
  .stat-num   { font-size: 38px; }
  /* chips: hide text label, icon + spinner only */
  .portal-chip span:first-of-type { display: none; }
  .portal-chip { justify-content: space-between; }
}

/* ── Capabilities Section ── */
@media (max-width: 900px) {
  .cap-section  { padding-top: 80px; padding-bottom: 80px; }
  .cap-header   { margin-bottom: 56px; }
  .feature-row  { margin-bottom: 64px; gap: 32px; }
}
@media (max-width: 600px) {
  .cap-header  { margin-bottom: 40px; }
  .feature-row { margin-bottom: 48px; gap: 24px; }
}

/* ── Ecosystem Section ── */
@media (max-width: 860px) {
  .eco-section { padding-top: 80px; padding-bottom: 80px; }
  .eco-header  { margin-bottom: 48px; }
  .eco-cats    { gap: 16px; }
}
@media (max-width: 480px) {
  .eco-node { padding: 6px 10px 6px 8px; }
  .eco-node img { width: 16px; height: 16px; }
  .eco-node span { font-size: 11px; }
}

/* ── Edge Praha Section ── */
@media (max-width: 900px) {
  .edge-praha { padding-top: 80px; padding-bottom: 80px; }
}

/* ── CTA Section ── */
@media (max-width: 768px) {
  .cta-section    { padding-top: 80px; padding-bottom: 80px; }
  .cta-container  { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .cta-container { padding: 36px 20px; border-radius: 20px; }
  .cta-btn, .cta-btn-sec { width: 100%; justify-content: center; }
}

/* ── Ecosystem — fix hub invisible on mobile ── */
/* eco-hub is position:absolute by default; when eco-hub-wrap goes to
   height:auto at ≤860px the hub collapses out of view. Pull it into flow. */
@media (max-width: 860px) {
  .eco-hub-wrap { flex-direction: column; align-items: center; }
  .eco-hub {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 2;
    align-self: center;
    margin: 4px 0;
  }
  .eco-ring--in  { order: 1; }
  .eco-ring--out { order: 3; }
}

/* ── Ecosystem — cats legend stacks on very small screens ── */
@media (max-width: 480px) {
  .eco-cats { flex-direction: column; align-items: center; gap: 12px; }
}

/* ── Capabilities — body copy slightly smaller on mobile ── */
@media (max-width: 600px) {
  .cap-sub   { font-size: 15px; }
  .feat-desc { font-size: 14px; }
}
@media (max-width: 480px) {
  .eco-sub { font-size: 14px; }
}

/* ── Scorecard badge wrapping on very narrow screens ── */
@media (max-width: 480px) {
  .sc-name-row { flex-wrap: wrap; }
  .sc-row { gap: 8px; }
}

/* ── Landscape mobile — prevent hero from dominating the viewport ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 48px; }
}

/* ═══════════════════════════════════════════════════════
   NEW FOOTER
═══════════════════════════════════════════════════════ */
.new-footer {
  background: var(--bg-3);
  position: relative;
  padding: 80px var(--px) 30px;
  overflow: hidden;
}

.new-footer > * {
  position: relative;
  z-index: 1;
}

.nf-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.nf-left {
  max-width: 380px;
}
.nf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.nf-logo img { height: 32px; filter: brightness(1.2); }

.nf-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.nf-desc {
  font-size: 14px;
  color: var(--footer-link);
  line-height: 1.6;
  margin-bottom: 24px;
}
.nf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 40px;
  transition: background 0.2s;
}
.nf-cta:hover { background: var(--blue-hover); }

.nf-social-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-nav);
  margin-bottom: 16px;
}
.nf-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-soc-divider {
  width: 1px;
  height: 22px;
  background: var(--footer-border);
  flex-shrink: 0;
}
.nf-socials .theme-toggle {
  width: 36px;
  height: 36px;
}
.nf-soc-link {
  width: 36px;
  height: 36px;
  background: var(--soc-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text-primary);
  font-size: 16px;
  text-decoration: none;
}
.nf-soc-link:hover { background: var(--border-hover); }
.nf-soc-link i { opacity: 0.8; }

.nf-right {
  display: flex;
  gap: 80px;
  flex: 1;
  justify-content: center;
}
.nf-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nf-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.nf-col a {
  font-size: 14px;
  color: var(--footer-link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.nf-col a:hover { color: var(--text-primary); }
.nf-dot-new {
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  display: inline-block;
}

.nf-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px dashed var(--footer-dashed);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--footer-link);
}
.nf-bottom-left, .nf-bottom-right {
  flex: 1;
}
.nf-bottom-right {
  text-align: right;
}
.nf-bottom-center {
  text-align: center;
}
.nf-bottom a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nf-bottom a:hover {
  color: var(--text-primary);
}
.nf-bottom-separator {
  color: var(--text-muted);
  margin: 0 8px;
  user-select: none;
}


@media (max-width: 900px) {
  .nf-top { flex-direction: column; gap: 40px; }
  .nf-right { flex-wrap: wrap; justify-content: flex-start; gap: 40px; }
  .nf-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .nf-bottom-right { text-align: center; }
}

/* %% General Mobile Font Reductions %% */
@media (max-width: 768px) {
  .cap-title, .eco-title, .cta-title, .problem-title, .praha-title { font-size: clamp(24px, 7vw, 32px) !important; }
  .cap-sub, .eco-sub, .cta-sub, .feat-desc, .nf-desc, .praha-body { font-size: 14px !important; line-height: 1.6 !important; }
}





/* ═══════════════════════════════════════════════════════
   NAV DROPDOWN (Solutions / About / Contact)
═══════════════════════════════════════════════════════ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret { font-size: 10px; transition: transform 0.2s ease; display: inline-flex; }
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item.active-dropdown .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 16px 40px rgba(0,0,0,0.25); z-index: 50;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.active-dropdown .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a { padding: 8px 12px !important; border-radius: 8px; font-size: 13px !important; }
.nav-dropdown a:hover { background: var(--surface); }

@media (max-width: 768px) {
  .nav-item { flex-direction: column; align-items: center; width: auto; }
  .nav-dropdown {
    display: none;
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    background: none; border: none; padding: 0; box-shadow: none; min-width: 0;
    flex-direction: column; align-items: center; gap: 8px;
    margin-top: 8px;
  }
  .nav-item.active-dropdown .nav-dropdown {
    display: flex;
  }
  .nav-caret { display: inline-flex; }
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════ */
.about-section { background: var(--bg-2); padding: 120px 24px; text-align: center; }
.about-container { max-width: 760px; margin: 0 auto; }
.about-eyebrow { color: var(--blue); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.about-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 20px; }
.about-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.about-jobs-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   AI SUMMARY SECTION
═══════════════════════════════════════════════════════ */
.ai-summary-section { padding: 100px var(--px); text-align: center; }
.ai-summary-container { max-width: 620px; margin: 0 auto; }
.ai-summary-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.ai-summary-sub { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 40px; }
.ai-summary-icons { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ai-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-icon svg, .ai-icon img { width: 26px; height: 26px; }
.ai-icon:hover { transform: translateY(-3px); }
.ai-icon--claude { background: #d97757; box-shadow: 0 8px 24px rgba(217,119,87,0.35); }
.ai-icon--chatgpt { background: #10a37f; box-shadow: 0 8px 24px rgba(16,163,127,0.35); }
.ai-icon--perplexity { background: #20b8cd; box-shadow: 0 8px 24px rgba(32,184,205,0.35); }
.ai-icon--google { background: #4285f4; box-shadow: 0 8px 24px rgba(66,133,244,0.35); }

@media (max-width: 768px) {
  .ai-summary-section { padding: 70px var(--px); }
  .ai-icon { width: 48px; height: 48px; }
  .ai-icon svg, .ai-icon img { width: 22px; height: 22px; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE — PREMIUM CORPORATE REDESIGN
═══════════════════════════════════════════════════════ */

/* Hero wrapper */
.ct-hero {
  position: relative;
  padding: 116px var(--px) 100px;
  overflow: hidden;
}
.ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.ct-hero-gradient {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  top: -400px;
  right: -200px;
  background: radial-gradient(circle, rgba(105,125,251,0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
[data-theme="light"] .ct-hero-gradient {
  background: radial-gradient(circle, rgba(14,39,66,0.06) 0%, transparent 70%);
}

/* Inner grid — left info + right form */
.ct-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* ── LEFT COLUMN ─────────────────────────── */
.ct-hero-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.ct-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2.4s ease-in-out infinite;
}
.ct-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.ct-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

/* Contact cards */
.ct-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s;
}
.ct-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.ct-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ct-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ct-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
a.ct-card-value:hover {
  color: var(--blue);
}
.ct-dot {
  font-size: 16px;
  color: var(--blue);
  margin: 0 8px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Trust badges */
.ct-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.ct-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.ct-trust-item i {
  color: var(--blue);
  font-size: 14px;
}

/* ── RIGHT COLUMN — FORM ────────────────── */
.ct-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
[data-theme="dark"] .ct-form {
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.ct-form-header {
  margin-bottom: 4px;
}
.ct-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ct-form-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.ct-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ct-form-group input,
.ct-form-group textarea,
.ct-form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23697dfb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 40px;
  cursor: pointer;
}
.ct-form-group select option {
  background-color: var(--bg-2, #0c111d);
  color: var(--text-primary, #ffffff);
  padding: 10px;
}
[data-theme="light"] .ct-form-group select option {
  background-color: #ffffff;
  color: #0c111d;
}
.ct-form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.ct-form-group input::placeholder,
.ct-form-group textarea::placeholder {
  color: var(--text-muted);
}
.ct-form-group input:focus,
.ct-form-group textarea:focus,
.ct-form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(105,125,251,0.15);
}
[data-theme="light"] .ct-form-group input:focus,
[data-theme="light"] .ct-form-group textarea:focus,
[data-theme="light"] .ct-form-group select:focus {
  box-shadow: 0 0 0 3px rgba(14,39,66,0.1);
}

.ct-form-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 92px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  margin-top: 4px;
}
.ct-form-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--blue-glow);
}

.ct-form-status {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
  margin: 0;
}
.ct-form-status.is-success { color: #16a34a; }
.ct-form-status.is-error   { color: #dc2626; }

.ct-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 8px 8px;
}
.ct-form-success.is-visible { display: flex; }
.ct-form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22,163,74,0.12);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}
.ct-form-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.ct-form-success-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
}
.ct-form-success #ctFormReset {
  margin-top: 10px;
  padding: 12px 28px;
}

.ct-form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.ct-form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.ct-form-note a:hover {
  color: var(--blue);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
  .ct-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ct-hero { padding-top: 120px; padding-bottom: 80px; }
}
@media (max-width: 480px) {
  .ct-hero { padding-top: 100px; padding-bottom: 60px; }
  .ct-form { padding: 28px 20px; border-radius: 16px; }
  .ct-trust { gap: 12px; }
  .ct-trust-item { font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   All breakpoints: 768px | 640px | 480px | 360px
═══════════════════════════════════════════════════════ */

/* ── Global touch improvements ── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow globally */
  html, body { overflow-x: hidden; }

  /* Comfortable tap targets */
  button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }

  /* Section spacing reduction */
  .problem-section,
  .vision-section,
  .cap-section,
  .eco-section,
  .edge-praha,
  .cta-section {
    padding-left: clamp(16px, 5vw, 40px);
    padding-right: clamp(16px, 5vw, 40px);
  }

  /* Hero: h1 line-break control */
  .hero-content h1 .h1-line {
    display: inline;
    white-space: normal;
    word-break: break-word;
  }
  .hero-content h1 .h1-line:not(:last-child)::after {
    content: ' ';
  }

  .hero--mesh {
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero--mesh .hero-content h1 {
    font-size: clamp(26px, 7.5vw, 40px);
    letter-spacing: -0.03em;
  }
  .hero--mesh .hero-content {
    gap: 16px;
  }
  .hero-eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    text-align: center;
  }
  .hero-ctas {
    gap: 12px;
    margin-top: 8px;
  }
  .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }
  .btn-secondary {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Nav improvements */
  .nav-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
  .nav-logo-mark img {
    height: 24px;
  }

  /* Vision section */
  .vision-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .vision-header {
    margin-bottom: 48px;
  }
  .vision-container {
    gap: 64px;
  }
  .subsection-header {
    margin-bottom: 28px;
  }
  .autonomy-widget {
    padding: 24px 20px;
  }
  .slider-track-container {
    margin: 20px 6px 48px;
  }
  .node-label {
    font-size: 10px;
    top: 20px;
  }

  /* Evolution showcase */
  .evolution-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .evolution-display {
    min-height: 280px;
  }
  .evolution-nav-item {
    padding: 14px 16px;
    gap: 14px;
  }
  .evolution-number {
    font-size: 18px;
  }

  /* Capabilities section */
  .cap-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .cap-header {
    margin-bottom: 48px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .feature-row--flip .feature-text { order: 1; }
  .feature-row--flip .visual-card  { order: 2; }
  .visual-card {
    padding: 24px;
  }
  .feat-h {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  /* Ecosystem section */
  .eco-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .eco-header {
    margin-bottom: 40px;
  }
  .eco-hub-wrap {
    min-height: auto;
    padding: 40px 0;
    gap: 60px;
  }
  .eco-ring {
    flex-wrap: wrap;
    gap: 12px;
  }
  .eco-node {
    white-space: normal;
  }
  .eco-cats {
    gap: 14px;
    flex-wrap: wrap;
  }

  /* Edge Praha section */
  .edge-praha {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .praha-card {
    padding: 28px 20px;
    gap: 32px;
  }
  .praha-content-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .praha-title {
    font-size: clamp(26px, 6vw, 38px);
    margin-bottom: 24px;
  }
  .praha-card-top {
    padding-bottom: 16px;
    gap: 10px;
  }

  /* CTA section */
  .cta-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .cta-container {
    padding: 40px 20px;
    border-radius: 20px;
  }
  .cta-title {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -0.5px;
  }
  .cta-actions {
    flex-direction: column;
    gap: 12px;
  }
  .cta-btn, .cta-btn-sec {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 15px;
  }

  /* Footer */
  .new-footer {
    padding: 48px 20px 24px;
  }
  .nf-top {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 40px;
  }
  .nf-left {
    max-width: 100%;
  }
  .nf-logo {
    margin-bottom: 24px;
  }
  .nf-right {
    gap: 28px;
    flex-wrap: wrap;
  }
  .nf-col {
    min-width: 120px;
    flex: 1;
  }
  .nf-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .nf-bottom-right { text-align: center; }

  /* Contact page */
  .ct-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ct-title {
    font-size: clamp(26px, 7vw, 38px);
  }
  .ct-form {
    padding: 28px 20px;
  }

  /* About page */
  .ab-hero {
    padding: 100px 20px 72px;
  }
  .ab-why,
  .ab-mission,
  .ab-principles,
  .ab-closing {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Scorecard visual */
  .sc-row {
    gap: 8px;
  }
  .sc-num {
    font-size: 15px;
  }

  /* SLA card inner layout on mobile */
  .card-sla-inner {
    flex-direction: column;
  }

  /* Problem section header */
  .problem-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .problem-header {
    margin-bottom: 32px;
  }
}

/* ── 640px breakpoint ── */
@media (max-width: 640px) {
  /* Hero heading wraps gracefully */
  .hero--mesh .hero-content h1 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .hero-sub {
    font-size: 13px;
  }

  /* Vision subsections */
  .vision-section {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .vision-container {
    gap: 48px;
  }
  .subsection-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  /* Autonomy slider */
  .autonomy-widget {
    padding: 20px 16px;
  }
  .slider-content-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .slider-visualizer {
    flex-direction: column;
    align-items: center;
    padding: 18px;
    gap: 20px;
  }
  .visualizer-gauge-wrap {
    width: 80px;
    height: 80px;
  }
  .visualizer-ratios {
    width: 100%;
  }

  /* Capabilities feature rows */
  .feat-desc {
    font-size: 14px;
  }
  .feat-list li {
    font-size: 13px;
  }
  #networkCanvas {
    height: 200px;
  }

  /* Scorecard demo */
  .scorecard-demo {
    gap: 10px;
  }
  .sc-row {
    grid-template-columns: 22px 1fr 40px;
  }
  .sc-name {
    font-size: 11px;
  }
  .sc-num {
    font-size: 13px;
  }

  /* Calendar demo */
  .cal-demo {
    padding: 16px;
    font-size: 12px;
  }
  .cal-grid {
    gap: 2px;
  }

  /* Ecosystem nodes */
  .eco-hub-wrap {
    gap: 40px;
  }
  .eco-node {
    padding: 6px 10px 6px 8px;
    font-size: 11px;
  }

  /* Praha section */
  .praha-pain {
    padding: 12px 14px;
    gap: 12px;
  }
  .praha-pain p {
    font-size: 13px;
  }
  .praha-body {
    font-size: 14px;
  }

  /* CTA */
  .cta-container {
    padding: 32px 16px;
  }
  .cta-eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  .cta-sub {
    font-size: 14px;
  }

  /* Footer nav columns wrap to 2-col grid */
  .nf-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .nf-col {
    min-width: 0;
  }

  /* Contact form */
  .ct-cards {
    gap: 8px;
  }
  .ct-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .ct-card-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ── 480px breakpoint ── */
@media (max-width: 480px) {
  /* Overall padding tightening */
  .problem-section,
  .vision-section,
  .cap-section,
  .eco-section,
  .edge-praha,
  .cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .new-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hero */
  .hero--mesh {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: center;
  }
  .hero-content {
    gap: 14px;
  }
  .hero-eyebrow {
    font-size: 10px;
    padding: 5px 10px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* Section headers */
  .section-eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .problem-title,
  .vision-title {
    font-size: clamp(22px, 6.5vw, 30px);
  }
  .cap-title,
  .eco-title {
    font-size: clamp(22px, 6.5vw, 30px) !important;
  }
  .cap-sub,
  .eco-sub {
    font-size: 13px !important;
  }

  /* Bento cards */
  .bento-card {
    border-radius: 14px;
  }

  /* Vision */
  .vision-section {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .evolution-nav-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .evolution-number {
    font-size: 16px;
  }
  .evolution-card-title {
    font-size: 14px;
  }
  .evolution-card-desc {
    font-size: 12px;
  }
  .evolution-display {
    min-height: 240px;
    padding: 16px;
    border-radius: 16px;
  }
  .autonomy-widget {
    border-radius: 16px;
  }

  /* Capabilities */
  .cap-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .cap-header {
    margin-bottom: 36px;
  }
  .visual-card {
    padding: 20px;
    border-radius: 14px;
  }
  .feature-row {
    margin-bottom: 40px;
    gap: 20px;
  }

  /* Ecosystem */
  .eco-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .eco-header {
    margin-bottom: 32px;
  }
  .eco-hub-wrap {
    gap: 32px;
    padding: 24px 0;
  }
  .eco-cats {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
  }
  .eco-ring {
    gap: 8px;
  }
  .eco-api-note {
    font-size: 11px;
    margin-top: 16px;
  }

  /* Praha section */
  .edge-praha {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .praha-card {
    padding: 20px 16px;
    gap: 24px;
    border-radius: 16px;
  }
  .praha-title {
    font-size: clamp(22px, 5.5vw, 30px);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
  }
  .praha-body {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .praha-pain {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 10px;
  }
  .praha-pain svg {
    width: 16px;
    height: 16px;
  }
  .praha-pain p {
    font-size: 12.5px;
  }
  .praha-pain-points {
    gap: 12px;
    margin-bottom: 24px;
  }
  .p-avatar {
    width: 28px;
    height: 28px;
  }

  /* CTA */
  .cta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .cta-container {
    padding: 28px 14px;
    border-radius: 16px;
  }
  .cta-title {
    font-size: clamp(22px, 6.5vw, 30px);
  }
  .cta-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .cta-btn, .cta-btn-sec {
    padding: 14px 20px;
    font-size: 14px;
  }

  /* Footer */
  .new-footer {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .nf-top {
    gap: 28px;
    margin-bottom: 28px;
  }
  .nf-right {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .nf-col h4 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .nf-col a {
    font-size: 13px;
  }
  .nf-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
  .nf-bottom {
    padding-top: 16px;
    gap: 8px;
    font-size: 12px;
  }

  /* Contact page */
  .ct-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ct-title {
    font-size: clamp(22px, 6.5vw, 32px);
  }
  .ct-sub {
    font-size: 14px;
  }
  .ct-form {
    padding: 24px 16px;
    border-radius: 14px;
    gap: 16px;
  }
  .ct-form-title {
    font-size: 18px;
  }
  .ct-form-btn {
    padding: 14px;
    font-size: 15px;
  }
}

/* ── 360px (very small phones) ── */
@media (max-width: 360px) {
  .hero--mesh .hero-content h1 {
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  .hero-eyebrow {
    font-size: 9.5px;
  }
  .btn-primary, .btn-secondary {
    font-size: 13px;
    padding: 12px 16px;
  }
  .bento-card {
    padding: 14px;
    border-radius: 12px;
  }
  .stat-num {
    font-size: 36px;
    letter-spacing: -2px;
  }
  .pragma-card {
    padding: 16px 12px;
  }
  .cta-container {
    padding: 24px 12px;
  }
  .nf-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .evolution-display {
    min-height: 200px;
  }
  .eco-node span {
    font-size: 10px;
  }
}

/* ── Landscape mobile orientation ── */
@media (max-width: 900px) and (orientation: landscape) {
  .hero--mesh {
    padding-top: 80px;
    padding-bottom: 24px;
    min-height: auto;
  }
  .hero-diagram-wrap {
    display: none;
  }
  .evolution-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .slider-content-split {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .feature-row--flip .feature-text { order: 2; }
  .feature-row--flip .visual-card  { order: 1; }
  .praha-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ── Prevent white-space overflow in nav on small screens ── */
@media (max-width: 340px) {
  .nav-links a {
    font-size: clamp(16px, 4.5vw, 20px);
  }
}

/* ── Improve touch scrolling for horizontal elements ── */
.int-logo-track,
.notif-stream,
.notif-viewport {
  -webkit-overflow-scrolling: touch;
}

/* ── Remove hover states on touch devices for performance ── */
@media (hover: none) and (pointer: coarse) {
  .bento-card:hover {
    transform: none !important;
  }
  .btn-primary:hover,
  .btn-secondary:hover,
  .nav-cta:hover {
    transform: none;
    box-shadow: none;
  }
  .eco-node:hover {
    background: var(--node-bg);
    border-color: var(--node-border);
  }
  .evolution-nav-item:hover {
    background: transparent;
  }
  .ct-card:hover {
    transform: none;
  }
  .int-card:hover {
    transform: none;
    box-shadow: none;
  }
}
