/* ──────────────────────────────────────────────────────────────
   Netplex.io — landing page section styles
   (loads after site.css)
   ────────────────────────────────────────────────────────────── */

/* ── HERO ── */
.hero { padding: 78px 0 64px; position: relative; }
.hero .wrap { position: relative; z-index: 2; }
.h-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.h-pill { margin-bottom: 22px; }
.h-title { font-size: 56px; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 20px; text-wrap: balance; font-weight: 600; }
.h-title .accent { color: var(--accent); }
.h-sub { font-size: 18.5px; color: var(--text-3); max-width: 500px; margin-bottom: 16px; line-height: 1.55; }
.h-stat { font-size: 15px; color: var(--text-2); margin-bottom: 26px; }
.h-stat b { color: var(--accent); font-weight: 600; }
.h-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.h-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.topo-frame { position: relative; }
.topo-wrap { display: flex; }
.topo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.topo {
  position: relative; width: 100%; height: 380px;
  background:
    radial-gradient(circle at 1px 1px, var(--canvas-circuit-dot, rgba(255,255,255,0.06)) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface-canvas);
  border: 1px solid var(--border); border-radius: var(--r-3);
}
/* circuit traces faint behind nodes */
.topo::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-3); pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
}
.legend { position: absolute; bottom: 10px; left: 12px; display: flex; gap: 12px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-4); z-index: 3; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; display: block; }
.minimap { position: absolute; bottom: 10px; right: 12px; width: 76px; height: 50px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-canvas); z-index: 3;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0); background-size: 8px 8px; }
.hud-chip { position: absolute; top: 10px; left: 12px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); background: rgba(20,20,24,0.92); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.hud-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* floating product chrome around canvas */
.win-toolbar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--border-soft); background: var(--surface-1); }
.win-toolbar .seg { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-2); padding: 2px; }
.win-toolbar .seg button { font-size: 11px; color: var(--text-3); padding: 3px 9px; border-radius: 4px; }
.win-toolbar .seg button.on { background: var(--surface-4); color: var(--text-1); }
.win-toolbar .flowtog { margin-left: auto; font-size: 11px; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ── STAT BAND ── */
.statband { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface-1); position: relative; z-index: 1; }
.statband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.statcell { padding: 34px 18px; text-align: center; border-right: 1px solid var(--border-soft); }
.statcell:last-child { border-right: none; }
.statcell .n { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.statcell .n .mono { font-family: var(--font-mono); }
.statcell .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-top: 7px; }

/* ── COMPARISON / KILL LIST ── */
.cmp { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-4); font-weight: 500; }
.cmp thead th.us { color: var(--accent); font-weight: 700; }
.cmp td:first-child { color: var(--text-2); font-weight: 500; }
.cmp .col-us { color: var(--text-1); font-weight: 600; }
.cmp thead th.us, .cmp td.col-us { border-left: 1px solid var(--border); }
.cmp tbody tr:hover td { background: var(--surface-1); }
.x { color: var(--err); } .ck { color: var(--ok); } .mid { color: var(--warn); }
.cmp .ico { display: inline-flex; vertical-align: middle; }
.cmp-note { margin-top: 16px; font-size: 13.5px; color: var(--text-4); }

/* ── FEATURE BENTO ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feat { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-4); padding: 26px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.feat h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { font-size: 14.5px; color: var(--text-3); line-height: 1.55; }
.feat .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.feat .tags .chip { font-size: 11.5px; padding: 4px 10px; }

/* ── SECTION SHELL with product frame ── */
.showcase { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 48px; align-items: center; }
.showcase.flip { grid-template-columns: 1.14fr 0.86fr; }
.showcase.flip .sc-text { order: 2; }
.sc-text h2 { font-size: 36px; line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.03em; }
.sc-text h2 .accent { color: var(--accent); }
.sc-text p { font-size: 16.5px; color: var(--text-3); line-height: 1.55; margin-bottom: 14px; }
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.sc-list li svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }

/* ── DISTRIBUTED FABRIC ── */
.fab { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 0; }
.fab-host { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-3); padding: 14px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hg) 22%, transparent), 0 0 36px -18px var(--hg); }
.fab-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.fab-pc { width: 26px; height: 26px; flex-shrink: 0; }
.fab-pc svg { width: 26px; height: 26px; }
.fab-h-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fab-h-meta b { font-size: 13px; font-weight: 600; }
.fab-h-meta .mono { font-size: 10px; color: var(--text-4); }
.fab-cpu { margin-left: auto; width: 46px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; flex-shrink: 0; }
.fab-cpu i { display: block; height: 100%; background: var(--hg); border-radius: 3px; }
.fab-pct { font-size: 10px; color: var(--text-3); flex-shrink: 0; }
.fab-nodes { display: flex; flex-direction: column; gap: 8px; }
.fab-node { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-2); padding: 6px 9px; position: relative; }
.fb-badge { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.fb-badge svg { width: 16px; height: 16px; }
.fb-meta { display: flex; flex-direction: column; gap: 1px; }
.fb-nm { font-size: 11.5px; font-weight: 600; }
.fb-ip { font-size: 9px; color: var(--text-4); }
.fb-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface-2); }
.fab-gap { position: relative; height: 60px; }
.fab-gap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fab-tunnel { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--accent); background: var(--surface-0); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* ── IMAGE PIPELINE ── */
.pl-row { display: flex; flex-direction: column; gap: 16px; }
.pl-file { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-3); padding: 12px 14px; }
.pl-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); padding-left: 14px; border-left: 1px solid var(--border); align-self: stretch; }
.pl-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; animation: plpulse 1.1s var(--ease-out) infinite; }
.pl-status.ok { color: var(--ok); }
.pl-status.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: none; }
@keyframes plpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 640px) { .pl-status { display: none; } }
.pl-fic { width: 38px; height: 38px; border-radius: 8px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.pl-fic svg { width: 20px; height: 20px; }
.pl-fmeta { display: flex; flex-direction: column; line-height: 1.3; }
.pl-fmeta b { font-size: 14px; }
.pl-fmeta .mono { font-size: 11px; color: var(--text-4); }
.pl-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.pl-step { }
.pl-chip { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #fff; background: var(--surface-4); border: 1px solid transparent; border-radius: 999px; padding: 5px 11px 5px 9px; transition: all .3s var(--ease-out); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pl-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; transition: background .3s; }
.pl-step.done .pl-chip { color: #fff; background: var(--ok); }
.pl-step.done .pl-chip::before { background: #fff; }
.pl-step.active .pl-chip { color: #fff; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pl-step.active .pl-chip::before { background: #fff; }
.pl-conn { width: 14px; height: 1.5px; background: var(--border); margin: 0 3px; flex-shrink: 0; }

/* ── THEMES ── */
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px auto 0; max-width: 820px; }
.theme-tile { transition: transform .2s; }
.theme-tile:hover { transform: translateY(-4px); }
.tt-mock { border: 1px solid; border-radius: var(--r-3); overflow: hidden; }
.tt-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid; }
.tt-dot { width: 8px; height: 8px; border-radius: 50%; }
.tt-line { height: 6px; border-radius: 3px; opacity: 0.6; }
.tt-btn { width: 26px; height: 12px; border-radius: 4px; margin-left: auto; }
.tt-body { padding: 11px; display: flex; flex-direction: column; gap: 7px; }
.tt-card { display: flex; align-items: center; gap: 8px; border: 1px solid; border-radius: 6px; padding: 7px 9px; }
.tt-chip { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.tt-tx { height: 6px; border-radius: 3px; flex: 1; opacity: 0.75; }
.tt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 2px; }
.tt-name { font-size: 14px; font-weight: 600; }
.tt-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }

/* ── CONSOLE SHOWCASE ── */
.term-win .body { padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; background: var(--surface-canvas); white-space: pre; overflow-x: auto; }
.term-win .body .pr { color: var(--accent); } .term-win .body .ok { color: var(--ok); }
.term-win .body .cy { color: var(--info); } .term-win .body .dim { color: var(--text-4); }
.term-win .body .gs { color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.term-tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: var(--surface-1); }
.term-tab { font-size: 11.5px; color: var(--text-4); padding: 6px 12px; border-radius: 6px 6px 0 0; border: 1px solid transparent; border-bottom: none; }
.term-tab.on { color: var(--text-1); background: var(--surface-canvas); border-color: var(--border-soft); }

/* ── API STRIP ── */
.api-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.code-win .body { padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; background: var(--surface-canvas); white-space: pre; overflow-x: auto; }
.code-win .kw { color: var(--accent-2); } .code-win .st { color: #a5e8b5; } .code-win .cm { color: var(--text-4); } .code-win .fn { color: var(--info); }
.api-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.api-logos .chip { font-family: var(--font-mono); font-size: 12px; }

/* ── PRICING TEASER ── */
.tiers3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; align-items: start; }
.tiers4, .tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; align-items: start; }
.tier { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-4); padding: 24px 22px; }
.tier.feat { border-color: var(--accent); position: relative; }
.tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.tier .nm { font-family: var(--font-ui); font-size: 23px; font-weight: 700; letter-spacing: -0.015em; text-transform: none; color: var(--text-1); margin-bottom: 9px; line-height: 1.1; }
/* price-row: flex wrapper used in shared cards partial */
.tier .price-row { display: flex; align-items: baseline; gap: 2px; }
.tier .price, .tier .price-val { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-1); }
.tier .price span, .tier .suf, .tier .psuf { font-size: 14px; color: var(--text-4); font-weight: 400; }
.tier .price .price-i { font-size: 34px; color: var(--text-1); font-weight: 600; }
.tier .desc { font-size: 13px; color: var(--text-3); margin: 6px 0 18px; min-height: 34px; }
.tier .save-note, .tier .annual { font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 4px; font-family: var(--font-mono); min-height: 16px; }
.tier .tier-spec { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--text-2); margin: 0 0 16px; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-2); }
.tier .tier-spec b { color: var(--text-1); font-family: var(--font-mono); font-size: 14px; }
.tier .cta-row { margin-top: 20px; }
.tier li.grp { color: var(--text-1); font-weight: 600; }
.tier li.grp svg { color: var(--accent); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
/* hanging indent: icon absolutely placed in the left gutter so wrapped lines
   stay aligned under the text (not pushed back under the tick) */
.tier li { font-size: 13px; color: var(--text-2); font-weight: 400; position: relative; padding-left: 23px; line-height: 1.45; }
.tier li svg { width: 15px; height: 15px; color: var(--ok); position: absolute; left: 0; top: 3px; }
/* perpetual toggle — shared across pricing.html and index.html */
.perp-toggle { display: flex; width: fit-content; align-items: center; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin: 10px 0 2px; }
.perp-toggle button { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 5px 14px; border-radius: 999px; transition: all .15s; cursor: pointer; }
.perp-toggle button.on { background: var(--accent); color: #fff; }
.perp-note { font-size: 11.5px; color: var(--text-4); margin-top: 2px; }
.tier-anim { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* IONET logo: icon always coloured, text turns black on light themes */
.ionet-link { display:flex; align-items:center; gap:7px; margin-top:14px; opacity:0.55; transition:opacity .2s; }
.ionet-link:hover { opacity:.9; }
.ionet-icon { height:22px; display:block; flex-shrink:0; }
.ionet-text { height:13px; display:block; }
[data-theme="cloud"] .ionet-text,
[data-theme="paper"] .ionet-text,
[data-theme="sand"]  .ionet-text { filter: brightness(0); }

/* ── CTA BAND ── */
.ctaband { text-align: center; position: relative; }
.ctaband h2 { font-size: 46px; letter-spacing: -0.03em; margin-bottom: 16px; }
.ctaband h2 .accent { color: var(--accent); }
.ctaband p { font-size: 17px; color: var(--text-3); margin-bottom: 30px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .h-grid, .showcase, .showcase.flip, .api-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase.flip .sc-text { order: 0; }
  .h-title { font-size: 42px; }
  .topo { transform: scale(0.84); transform-origin: top center; }
  .topo-wrap { overflow: hidden; height: 319px; } /* 380 * 0.84 — clips dead layout space */
  .bento, .themes-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .statband .wrap { grid-template-columns: 1fr 1fr; }
  .statcell:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 640px) {
  .hero { padding: 52px 0 36px; }
  .h-title { font-size: 34px; }
  .h-sub { font-size: 16px; }
  .topo { width: 660px; max-width: none; zoom: 0.5; transform: none; } /* zoom overridden by JS */
  .topo-wrap { overflow: hidden; } /* height auto from JS zoom */
  .bento, .themes-grid, .tiers { grid-template-columns: 1fr; }
  .fab { grid-template-columns: 1fr; gap: 0; }
  .fab-gap { height: 54px; transform: rotate(90deg); }
  .ctaband h2 { font-size: 32px; }
  .cmp { font-size: 12.5px; min-width: 420px; }
  .cmp th, .cmp td { padding: 10px 8px; }
  .cmp thead th { white-space: nowrap; }
  .cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--surface-0); z-index: 2; }
  .cmp thead th:first-child { z-index: 3; }
  /* Hide EVE-NG Community column on mobile so netplex. stays reachable */
  .cmp th:nth-child(2), .cmp td:nth-child(2) { display: none; }
}
@media (max-width: 420px) {
  .statband .wrap { grid-template-columns: 1fr; }
  .statcell { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .statcell:last-child { border-bottom: none; }
}
