/* ===========================================================================
   PowerGate — public marketing site
   Palette mirrors the product (powergate.css)
   =========================================================================== */
:root {
    --pg-primary:      #1e1e1e;
    --pg-primary-2:    #121212;
    --pg-accent:       #ffc107;
    --pg-accent-hover: #e0a800;
    --pg-body-bg:      #f0f2f5;
    --pg-card-bg:      #ffffff;
    --pg-muted-bg:     #f8f9fa;
    --pg-text:         #1f2329;
    --pg-text-soft:    #5b6470;
    --pg-border:       #e6e9ee;
    --pg-success:      #28a745;
    --pg-font:         'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius:          12px;
    --radius-sm:       8px;
    --shadow-sm:       0 2px 6px rgba(0,0,0,.07);
    --shadow:          0 8px 24px rgba(0,0,0,.10);
    --shadow-lg:       0 18px 50px rgba(0,0,0,.16);
    --maxw:            1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--pg-font);
    color: var(--pg-text);
    background: var(--pg-body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--pg-accent); color: #1a1a1a; box-shadow: 0 6px 18px rgba(255,193,7,.35); }
.btn-accent:hover { background: var(--pg-accent-hover); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--pg-primary); border-color: var(--pg-border); }
.btn-outline:hover { border-color: var(--pg-primary); transform: translateY(-2px); }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em;
    font-size: .76rem; font-weight: 700; color: var(--pg-accent-hover);
    background: rgba(255,193,7,.14); padding: .35rem .8rem; border-radius: 999px;
}
.accent { color: var(--pg-accent); }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18,18,18,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .2s ease;
}
.nav.scrolled { background: rgba(18,18,18,.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 600; color: #fff; }
.brand strong { color: var(--pg-accent); font-weight: 800; }
.brand .bolt { fill: var(--pg-accent); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { color: #cfd6df; font-weight: 500; font-size: .88rem; transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn { color: #1a1a1a; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ── Nav dropdowns ── */
.nav-group { position: relative; }
.nav-group-toggle {
    background: none; border: none; cursor: pointer; padding: 0;
    color: #cfd6df; font-weight: 500; font-size: .88rem; white-space: nowrap;
    display: flex; align-items: center; gap: 5px; font-family: inherit;
}
.nav-group-toggle:hover { color: #fff; }
.nav-caret { transition: transform .18s ease; flex-shrink: 0; opacity: .7; }
.nav-group.open .nav-caret { transform: rotate(180deg); opacity: 1; }

/* Desktop: click-only opens the menu (no hover — avoids accidental opens) */
.nav-group-menu {
    position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(20,20,20,.98); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 6px 0; min-width: 190px;
    box-shadow: 0 10px 36px rgba(0,0,0,.45);
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 100;
}
.nav-group.open .nav-group-menu {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-group-menu a {
    display: block; padding: 9px 18px; color: #cfd6df;
    font-size: .88rem; font-weight: 500; white-space: nowrap; width: auto;
}
.nav-group-menu a:hover { color: #fff; background: rgba(255,255,255,.05); }
/* Subtle active state on the toggle when open */
.nav-group.open .nav-group-toggle { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 80% -10%, #2a2a2a 0%, var(--pg-primary) 45%, var(--pg-primary-2) 100%);
    padding: 96px 0 110px;
}
.hero-glow {
    position: absolute; width: 620px; height: 620px; right: -120px; top: -160px;
    background: radial-gradient(circle, rgba(255,193,7,.22) 0%, rgba(255,193,7,0) 65%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.12; font-weight: 800; margin: 1.1rem 0 1.2rem; letter-spacing: -.01em; }
.hero .lead { font-size: 1.12rem; color: #c7cdd6; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.10); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; color: var(--pg-accent); font-weight: 800; }
.hero-stats span { font-size: .85rem; color: #aab2bd; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--pg-border); border-bottom: 1px solid var(--pg-border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 1rem 0 .7rem; letter-spacing: -.01em; }
.section-head p { color: var(--pg-text-soft); font-size: 1.08rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
/* Compact feature cards when shown 5-across */
.grid-5 .feature { padding: 22px 18px; }
.grid-5 .feature .ic { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.grid-5 .feature .ic svg { width: 22px; height: 22px; }
.grid-5 .feature h3 { font-size: 1.02rem; margin-bottom: .42rem; }
.grid-5 .feature p { font-size: .88rem; line-height: 1.5; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* Compact feature cards when shown 4-across */
.grid-4 .feature { padding: 22px 18px; }
.grid-4 .feature .ic { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.grid-4 .feature .ic svg { width: 22px; height: 22px; }
.grid-4 .feature h3 { font-size: 1.02rem; margin-bottom: .42rem; }
.grid-4 .feature p { font-size: .88rem; line-height: 1.5; }
.card { background: var(--pg-card-bg); border: 1px solid var(--pg-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.feature { padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d7dce3; }
.feature .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #2a2a2a, var(--pg-primary)); margin-bottom: 18px;
}
.feature .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--pg-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.feature p { color: var(--pg-text-soft); font-size: .98rem; }

/* ---------- Matrix ---------- */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--pg-border); }
.matrix { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.matrix thead th {
    background: var(--pg-primary); color: #fff; text-align: center; padding: 18px 16px; font-size: .98rem; font-weight: 700;
}
.matrix thead th:first-child { text-align: left; }
.matrix thead th span { display: block; font-size: .72rem; font-weight: 500; color: var(--pg-accent); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.matrix tbody td { padding: 15px 16px; border-top: 1px solid var(--pg-border); text-align: center; color: var(--pg-text-soft); font-size: .95rem; }
.matrix tbody td:first-child { text-align: left; color: var(--pg-text); font-weight: 500; }
.matrix tbody tr:nth-child(even) { background: var(--pg-muted-bg); }
.matrix td.yes { color: var(--pg-success); font-weight: 700; }
.matrix td.base { color: #9aa2ad; font-style: italic; font-size: .85rem; }
.matrix-note { text-align: center; color: var(--pg-text-soft); font-size: .9rem; margin-top: 20px; }

/* ---------- Comparison matrix ---------- */
.matrix.cmp td.part { color: var(--pg-warning); font-weight: 700; }
.matrix.cmp td.no   { color: #c0c6cf; font-weight: 700; }
.matrix.cmp td.na   { color: #c0c6cf; }
.matrix.cmp th.cmp-pg { background: var(--pg-accent); color: #1a1a1a; }
.matrix.cmp td.cmp-pg { background: rgba(255,193,7,.10); }
.matrix.cmp td.cmp-pg.yes { color: var(--pg-success); }
.cmp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 18px; font-size: .88rem; color: var(--pg-text-soft); }
.cmp-legend .yes { color: var(--pg-success); font-weight: 700; }
.cmp-legend .part { color: var(--pg-warning); font-weight: 700; }
.cmp-legend .no, .cmp-legend .na { color: #c0c6cf; font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { padding: 34px 28px; display: flex; flex-direction: column; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--pg-accent); box-shadow: var(--shadow); }
.plan-badge {
    align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #1a1a1a; background: var(--pg-accent); padding: .3rem .75rem; border-radius: 999px; margin-bottom: 14px;
}
.plan-badge.muted { background: #eef1f5; color: var(--pg-text-soft); }
.plan h3 { font-size: 1.4rem; }
.plan-sub { color: var(--pg-text-soft); font-size: .95rem; margin: .3rem 0 1.2rem; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: .15rem; margin-bottom: 1.4rem; }
.price .cur { font-size: 1.4rem; font-weight: 700; color: var(--pg-primary); }
.price .amount { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--pg-primary); letter-spacing: -.02em; }
.price .per { font-size: .9rem; color: var(--pg-text-soft); margin-left: .35rem; }
.plan-feats { list-style: none; margin-bottom: 1.8rem; flex: 1; }
.plan-feats li { position: relative; padding: .42rem 0 .42rem 1.7rem; color: var(--pg-text); font-size: .96rem; border-bottom: 1px dashed var(--pg-border); }
.plan-feats li:last-child { border-bottom: 0; }
.plan-feats li::before {
    content: ""; position: absolute; left: 0; top: .72rem; width: 16px; height: 9px;
    border-left: 2px solid var(--pg-success); border-bottom: 2px solid var(--pg-success);
    transform: rotate(-45deg);
}

.plan-note { font-size: .8rem; color: var(--pg-text-soft); line-height: 1.45; margin: -.6rem 0 1.1rem; }
.plan-note i { color: var(--pg-accent-hover); font-style: normal; font-weight: 700; margin-right: 2px; }

/* ---------- Estimator ---------- */
.estimator { margin-top: 40px; padding: 32px; }
.est-head h3 { font-size: 1.35rem; }
.est-head p { color: var(--pg-text-soft); margin-top: .3rem; }
.est-grid { margin: 24px 0 8px; }
.est-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--pg-border); flex-wrap: wrap; }
.est-label { display: flex; flex-direction: column; }
.est-label strong { font-size: 1.02rem; }
.est-label span { color: var(--pg-text-soft); font-size: .88rem; }
.est-fixed { font-weight: 700; font-size: 1.1rem; color: var(--pg-primary); }
.est-ctrl { display: flex; align-items: center; gap: 8px; }
.est-ctrl button {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--pg-border); background: #fff;
    font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--pg-primary); transition: .15s;
}
.est-ctrl button:hover { background: var(--pg-primary); color: #fff; border-color: var(--pg-primary); }
.est-ctrl input {
    width: 64px; height: 38px; text-align: center; border: 1px solid var(--pg-border); border-radius: 10px;
    font-size: 1.05rem; font-weight: 700; color: var(--pg-primary); -moz-appearance: textfield;
}
.est-ctrl input::-webkit-outer-spin-button, .est-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-total {
    display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 22px;
    border-top: 2px solid var(--pg-primary);
}
.est-total span { font-size: 1.05rem; font-weight: 600; color: var(--pg-text-soft); }
.est-total strong { font-size: 2rem; font-weight: 800; color: var(--pg-primary); }

/* ---------- ROI calculator ---------- */
#roi { margin-top: 24px; }
.roi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.roi-input { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.roi-input label { font-size: .84rem; color: var(--pg-text-soft); font-weight: 600; line-height: 1.3; }
.roi-input input { width: 100%; min-width: 0; height: 42px; border: 1px solid var(--pg-border); border-radius: 10px; padding: 0 12px; font-size: 1.05rem; font-weight: 700; color: var(--pg-primary); -moz-appearance: textfield; }
.roi-input input::-webkit-outer-spin-button, .roi-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; padding-top: 22px; border-top: 2px solid var(--pg-primary); }
.roi-stat { min-width: 0; }
.roi-stat strong { overflow-wrap: anywhere; }
.roi-stat { background: var(--pg-muted-bg); border: 1px solid var(--pg-border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.roi-stat .roi-label { display: block; font-size: .82rem; color: var(--pg-text-soft); margin-bottom: 6px; }
.roi-stat strong { font-size: 1.65rem; font-weight: 800; color: var(--pg-primary); }
.roi-stat-accent { background: linear-gradient(135deg, rgba(255,193,7,.16), rgba(255,193,7,.06)); border-color: rgba(255,193,7,.5); }
.roi-stat-accent strong { color: var(--pg-accent-hover); }
.roi-note { margin: 16px 0 0; text-align: center; font-size: .82rem; color: var(--pg-text-soft); }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(900px 500px at 20% 120%, #2a2a2a 0%, var(--pg-primary) 55%, var(--pg-primary-2) 100%); color: #fff; padding: 84px 0; text-align: center; }
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .8rem; }
.cta p { color: #c7cdd6; font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; }

/* ---------- Legal pages (Impressum) ---------- */
.legal { padding: 56px 0 72px; background: var(--pg-body-bg); }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1.6rem; }
.legal section { margin-bottom: 1.7rem; }
.legal h2 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; color: var(--pg-primary); }
.legal p { color: var(--pg-text-soft); max-width: 72ch; }
.legal .legal-block { color: var(--pg-text); line-height: 1.8; }
.legal a { color: var(--pg-accent-hover); text-decoration: underline; }
.legal-hint { margin-top: 2.4rem; padding: 14px 18px; background: rgba(255,193,7,.10); border-left: 4px solid var(--pg-accent); border-radius: var(--radius-sm); font-size: .9rem; color: var(--pg-text) !important; }
.footer .foot-copy a { color: #c7cdd6; text-decoration: underline; }
.footer .foot-copy a:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--pg-primary-2); color: #aab2bd; padding: 46px 0; }
.footer-inner { text-align: center; }
.brand-footer { justify-content: center; font-size: 1.2rem; color: #fff; margin-bottom: .6rem; }
.foot-tag { color: #c7cdd6; }
.foot-copy { font-size: .85rem; color: #7e8794; margin-top: .8rem; }
.foot-version { font-size: .78rem; color: #555c66; margin-top: .35rem; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.lang-switch button {
    background: transparent; border: 0; color: #cfd6df; font-weight: 700; font-size: .78rem;
    letter-spacing: .03em; padding: .4rem .7rem; cursor: pointer; transition: .15s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--pg-accent); color: #1a1a1a; }

/* ---------- FAQ ---------- */
.container-narrow { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: #fff; border: 1px solid var(--pg-border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: #d7dce3; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
    font-weight: 600; font-size: 1.06rem; color: var(--pg-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
    border-right: 2px solid var(--pg-accent-hover); border-bottom: 2px solid var(--pg-accent-hover);
    transform: translateY(-65%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq-item summary:hover { color: #000; }
.faq-a { padding: 0 24px 22px; color: var(--pg-text-soft); font-size: .99rem; }
.faq-a p { max-width: 70ch; }

/* ---------- Why PowerGate ---------- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.why-col { background: #fff; border: 1px solid var(--pg-border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.why-col h3 { font-size: 1.18rem; margin-bottom: 14px; display: flex; align-items: center; gap: .55rem; }
.why-col h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.why-col.problem h3::before { background: var(--pg-danger); }
.why-col.solution h3::before { background: var(--pg-success); }
.why-col.solution { border-color: rgba(40,167,69,.35); box-shadow: 0 8px 24px rgba(40,167,69,.09); }
.why-col ul { list-style: none; }
.why-col li { position: relative; padding: .5rem 0 .5rem 1.9rem; font-size: .98rem; border-bottom: 1px dashed var(--pg-border); color: var(--pg-text); }
.why-col li:last-child { border-bottom: 0; }
.why-col.problem li::before { content: "✕"; position: absolute; left: .15rem; top: .5rem; color: var(--pg-danger); font-weight: 700; }
.why-col.solution li::before { content: ""; position: absolute; left: .2rem; top: .82rem; width: 14px; height: 8px; border-left: 2px solid var(--pg-success); border-bottom: 2px solid var(--pg-success); transform: rotate(-45deg); }

.why-outcome { background: linear-gradient(135deg, rgba(255,193,7,.13), rgba(255,193,7,.04)); border-left: 4px solid var(--pg-accent); border-radius: var(--radius-sm); padding: 20px 24px; }
.why-outcome p { font-size: 1.06rem; color: var(--pg-text); }

.audience { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 32px; }
.audience-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--pg-text-soft); font-weight: 700; margin-right: 4px; }
.chip { background: #fff; border: 1px solid var(--pg-border); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-sm); }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.uc-card { background: #fff; border: 1px solid var(--pg-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.uc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.uc-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-accent); margin-bottom: 10px; }
.uc-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.uc-card p { font-size: .9rem; color: var(--pg-text-soft); margin: 0 0 16px; line-height: 1.6; }
.uc-features { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--pg-border); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.uc-features li { font-size: .875rem; color: var(--pg-text-soft); line-height: 1.5; padding-left: 18px; position: relative; }
.uc-features li::before { content: '→'; position: absolute; left: 0; color: var(--pg-accent); font-size: .8rem; top: 1px; }
.uc-features li strong { color: var(--pg-text); font-weight: 600; }

/* ---------- Capacity packs ---------- */
.packs { margin-top: 44px; }
.packs-title { text-align: center; font-size: 1.35rem; }
.packs-sub { text-align: center; color: var(--pg-text-soft); max-width: 640px; margin: .4rem auto 26px; }
.pack { display: flex; align-items: center; gap: 18px; padding: 22px 24px; transition: transform .18s ease, box-shadow .18s ease; }
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pack-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#2a2a2a,var(--pg-primary)); }
.pack-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--pg-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pack-body { flex: 1; min-width: 0; }
.pack-body h4 { font-size: 1.1rem; }
.pack-body p { color: var(--pg-text-soft); font-size: .92rem; margin-top: .2rem; }
.pack-cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.pack-price { font-size: .8rem; font-weight: 700; color: var(--pg-text-soft); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Hero terminal ---------- */
.hero-term { position: relative; }
.term {
    background: #0b0c0e; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
    box-shadow: 0 26px 64px rgba(0,0,0,.55); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #16181c; border-bottom: 1px solid rgba(255,255,255,.07); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; } .term-dot.y { background: #ffbd2e; } .term-dot.g { background: #27c93f; }
.term-title { margin-left: 8px; font-size: .78rem; color: #8a929c; font-family: 'Cascadia Code','Consolas','SF Mono',monospace; }
.term-body {
    margin: 0; padding: 18px 18px 22px; min-height: 286px;
    font-family: 'Cascadia Code','Consolas','SF Mono',monospace; font-size: .85rem; line-height: 1.75;
    color: #cfd6df; white-space: pre-wrap; word-break: break-word;
}
.term-line { display: block; opacity: 0; transform: translateY(4px); animation: termIn .25s ease forwards; }
.term-line .tok { color: var(--pg-accent); font-weight: 700; }
.term-line .dim { color: #7e8794; }
.tl-prompt { color: #e6e9ee; }
.tl-muted  { color: #7e8794; }
.tl-wait   { color: #ffbd2e; }
.tl-ok     { color: #34d058; }
.tl-exec   { color: var(--pg-accent); }
.tl-cursor::after { content: "▋"; color: var(--pg-accent); animation: blink 1.05s steps(1) infinite; }
@keyframes termIn { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Integrations API callout ---------- */
.int-api {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    margin-top: 36px; padding: 30px 34px; border-radius: var(--radius);
    background: linear-gradient(135deg, #1e1e1e, #121212); color: #fff; box-shadow: var(--shadow);
}
.int-api-text { flex: 1; min-width: 280px; }
.int-api-text h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.int-api-text p { color: #c7cdd6; font-size: 1rem; max-width: 720px; }
.int-api .btn { flex: 0 0 auto; }

/* ---------- Getting started steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--pg-card-bg); border: 1px solid var(--pg-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 24px 24px; transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #1a1a1a; background: var(--pg-accent); margin-bottom: 14px; box-shadow: 0 4px 12px rgba(255,193,7,.3); }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--pg-text-soft); font-size: .95rem; }

/* ---------- Air-gapped band ---------- */
.airgap {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(900px 480px at 85% -20%, #233 0%, var(--pg-primary) 50%, var(--pg-primary-2) 100%);
    padding: 84px 0;
}
.airgap-glow { position: absolute; width: 560px; height: 560px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(40,167,69,.18) 0%, rgba(40,167,69,0) 65%); pointer-events: none; }
.airgap-inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.airgap-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 1rem 0 .8rem; }
.airgap-copy > p { color: #c7cdd6; font-size: 1.08rem; max-width: 640px; }
.airgap-points { list-style: none; margin-top: 1.4rem; display: grid; gap: .65rem; }
.airgap-points li { position: relative; padding-left: 2rem; color: #d6dbe2; font-size: 1rem; }
.airgap-points li strong { color: #fff; }
.airgap-points li::before {
    content: ""; position: absolute; left: .2rem; top: .5rem; width: 14px; height: 8px;
    border-left: 2px solid #34d058; border-bottom: 2px solid #34d058; transform: rotate(-45deg);
}
.airgap-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.shield { width: 150px; height: 150px; border-radius: 28px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 60px rgba(52,208,88,.10); }
.shield svg { width: 78px; height: 78px; fill: none; stroke: #34d058; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.airgap-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ag-badge { font-size: .8rem; font-weight: 600; color: #cfd6df; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .4rem .8rem; }

/* ---------- Flow diagram ---------- */
.flow-section { background: #0d0d0d; }
.flow-section .section-head h2 { color: #fff; }
.flow-section .section-head p { color: #7e8794; }
.flow-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
.flow-svg { width: 100%; max-width: 860px; height: auto; display: block; }

/* ---------- Event-flow diagram ---------- */
.event-flow-section { background: #0d0d0d; padding-bottom: 48px; }
.event-flow-section + .flow-section { padding-top: 0; }
.event-flow-section .section-head h2 { color: #fff; }
.event-flow-section .section-head p  { color: #7e8794; }
.event-flow-diagram { margin-top: 2.5rem; }
.event-flow-diagram svg { width: 100%; max-width: 780px; height: auto; display: block; margin: 0 auto; }
.event-flow-caption {
    text-align: center; color: #555c66; font-size: .88rem;
    max-width: 540px; margin: 1.4rem auto 0; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
    .event-flow-diagram svg * { animation: none !important; }
}

/* Logic Flows — benefit row (dark section) */
.lf-benefits { margin-top: 52px; }
.flow-section .lf-benefit { text-align: left; }
.flow-section .lf-benefit-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,193,7,0.10); border: 1px solid rgba(255,193,7,0.28); margin-bottom: 14px; }
.flow-section .lf-benefit-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--pg-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flow-section .lf-benefit h3 { color: #fff; font-size: 1.08rem; margin-bottom: .45rem; }
.flow-section .lf-benefit p { color: #7e8794; font-size: .96rem; line-height: 1.55; }

/* ---------- AI Colleague section ---------- */
.ai-mcp-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    background: var(--pg-primary-2);
    border: 1px solid rgba(255,193,7,0.25);
    border-radius: 18px;
    padding: 32px 36px;
    margin-top: 52px;
}
.ai-mcp-badge {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--pg-accent);
    background: rgba(255,193,7,0.10);
    border: 1px solid rgba(255,193,7,0.35);
    border-radius: 10px;
    padding: .65rem 1rem;
    white-space: nowrap;
    align-self: flex-start;
}
.ai-mcp-text h3 { font-size: 1.08rem; margin-bottom: .5rem; color: #e4e8ed; }
.ai-mcp-text p  { color: #8b939e; font-size: .96rem; line-height: 1.6; margin: 0; }
.ai-security { margin-top: 52px; }
.ai-security > h3 { text-align: center; font-size: 1.15rem; margin-bottom: 28px; }
.ai-sec-item { text-align: center; }
.ai-sec-item .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #2a2a2a, var(--pg-primary)); margin: 0 auto 14px;
}
.ai-sec-item .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--pg-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai-sec-item h4 { font-size: 1rem; margin-bottom: .4rem; }
.ai-sec-item p  { color: var(--pg-text-soft); font-size: .93rem; line-height: 1.55; }
.ai-compat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 44px;
}
.ai-compat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--pg-text-soft);
    font-weight: 700;
    margin-right: 4px;
}
@media (max-width: 640px) {
    .ai-mcp-strip { grid-template-columns: 1fr; }
}

/* ---------- Demo / click-to-play clips ---------- */
.demo-grid { gap: 2rem; align-items: start; }
.demo-card {
    background: var(--pg-card-bg); border: 1px solid var(--pg-border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
/* The clip area — video or pending placeholder */
.demo-clip-wrap {
    background: #0c0c0c; aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
/* Poster video fills the wrap, no chrome */
.demo-clip-wrap video {
    width: 100%; height: 100%; object-fit: cover;
    display: block; border: none;
}

/* Click-to-play poster button + overlay */
.demo-play { border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.demo-poster { pointer-events: none; }
.demo-play-btn {
    position: absolute; inset: 0; margin: auto;
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(13,13,13,0.55); border: 1.5px solid rgba(255,193,7,0.85);
    pointer-events: none; transition: transform .18s ease, background .18s ease;
}
.demo-play-btn svg { width: 26px; height: 26px; fill: var(--pg-accent); margin-left: 3px; }
.demo-play:hover .demo-play-btn { transform: scale(1.09); background: rgba(255,193,7,0.92); }
.demo-play:hover .demo-play-btn svg { fill: #0d0d0d; }
.demo-play:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }
/* Pending state — shown until video is dropped in */
.demo-pending {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255,193,7,0.3);
}
.demo-pending span { font-size: .8rem; color: #3a3f47; letter-spacing: .5px; }
/* Hide pending once a video sibling exists */
.demo-clip-wrap:has(video) .demo-pending { display: none; }

/* Text below the clip */
.demo-label {
    font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--pg-accent-hover);
    padding: 16px 20px 4px;
}
.demo-desc {
    font-size: .93rem; color: var(--pg-text-soft);
    line-height: 1.6; padding: 0 20px 20px; margin: 0;
}

/* ---------- Demo more CTA ---------- */
.demo-more {
    margin-top: 2.5rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.demo-more p {
    font-size: 1.05rem; color: var(--pg-text-soft);
    max-width: 52ch; line-height: 1.7;
}

/* ---------- Video modal ---------- */
.video-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.82); }
.video-modal-inner { position: relative; width: 100%; max-width: 980px; }
.video-modal-inner video {
    width: 100%; max-height: 82vh; display: block;
    border-radius: 12px; background: #000; box-shadow: 0 20px 70px rgba(0,0,0,0.6);
}
.video-modal-close {
    position: absolute; top: -16px; right: -16px; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: #0d0d0d;
    color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, border-color .15s ease;
}
.video-modal-close:hover { background: #1a1a1a; border-color: var(--pg-accent); }
@media (max-width: 640px) {
    .video-modal { padding: 14px; }
    .video-modal-close { top: -12px; right: 0; }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,193,7,0.5); background: #111; color: var(--pg-accent);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease, color .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--pg-accent); color: #0d0d0d; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; } }

/* ---------- Story ---------- */
.story-body { display: flex; flex-direction: column; gap: 1.25rem; }
.story-body p {
    font-size: 1.07rem; line-height: 1.8; color: var(--pg-text-soft);
    max-width: 70ch;
}
.story-body p:first-child { font-size: 1.13rem; color: var(--pg-text); }
.story-sig {
    font-size: 1rem !important; font-style: italic;
    color: var(--pg-text) !important; margin-top: .5rem;
}

/* ---------- Responsive ---------- */

/* Nav collapses to hamburger below 1080px */
@media (max-width: 1080px) {
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: rgba(18,18,18,.98); border-bottom: 1px solid rgba(255,255,255,.08);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    /* Scrollable — CTA always reachable no matter how many items */
    .nav-links.open {
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 8px 0 20px;
    }
    .nav-links a { padding: .9rem 24px; width: 100%; font-size: .96rem; white-space: normal; }
    .nav-links a.btn { margin: .8rem 24px 0; width: calc(100% - 48px); display: block; text-align: center; }
    .lang-switch { align-self: flex-start; margin: 14px 24px 4px; }
    .nav-toggle { display: flex; }

    /* Dropdowns expand inline in the burger menu */
    .nav-group { width: 100%; }
    .nav-group-toggle {
        padding: .9rem 24px; width: 100%; font-size: .96rem;
        justify-content: space-between;
    }
    .nav-group-menu {
        position: static; transform: none !important;
        background: rgba(255,255,255,.03); border: none;
        border-radius: 0; box-shadow: none;
        padding: 0; min-width: unset; opacity: 1; pointer-events: none;
        max-height: 0; overflow: hidden;
        transition: max-height .2s ease;
    }
    .nav-group.open .nav-group-menu {
        max-height: 300px; pointer-events: auto;
    }
    .nav-group-menu a {
        padding: .75rem 24px .75rem 38px; width: 100%;
        border-left: 2px solid rgba(255,193,7,.2); margin-left: 22px;
        width: calc(100% - 22px);
    }
}

/* Hero / airgap two-column → single column */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-term { max-width: 560px; }
    .airgap-inner { grid-template-columns: 1fr; gap: 36px; }
    .airgap-visual { order: -1; }
}

/* 5-col feature grid → 2-col below desktop (stays even for 10 cards); restore full card sizing */
@media (max-width: 1080px) {
    .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .grid-5 .feature, .grid-4 .feature { padding: 30px 26px; }
    .grid-5 .feature .ic, .grid-4 .feature .ic { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
    .grid-5 .feature .ic svg, .grid-4 .feature .ic svg { width: 26px; height: 26px; }
    .grid-5 .feature h3, .grid-4 .feature h3 { font-size: 1.18rem; }
    .grid-5 .feature p, .grid-4 .feature p { font-size: .98rem; line-height: 1.6; }
}

/* Feature/step grids: 3-col → 2-col */
@media (max-width: 920px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .uc-grid { grid-template-columns: 1fr; }
}

/* Mobile: everything single column */
@media (max-width: 760px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .estimator { padding: 22px 18px; }
    .pack { flex-wrap: wrap; }
    .pack-cta { align-items: flex-start; text-align: left; width: 100%; }
    .hero { padding: 64px 0 76px; }
    .section { padding: 64px 0; }
    .hero-stats { gap: 1.6rem; }
    /* Flow diagram: allow horizontal scroll rather than squashing */
    .flow-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .flow-svg { min-width: 560px; width: 560px; }
}
