/* ============================================================
   AE DOCTOR — MARKETING SITE
   Design language ported 1:1 from the actual plugin panel:
   midnight/slate surfaces, vitals-green accent, Fira Sans/Code.
   ============================================================ */

:root {
    /* surfaces — identical to the panel */
    --bg:        #0b1320;
    --bg-deep:   #070d17;
    --card:      #16243b;
    --card-2:    #1d2f4b;
    --border:    #233453;
    --border-2:  #34496c;
    --text:      #ffffff;
    --text-mut:  #cbd5e1; /* Lightened for WCAG AA contrast */
    --text-dim:  #94a3b8; /* Lightened for WCAG AA contrast */

    /* status */
    --green:  #2ed573;
    --yellow: #f5b942;
    --red:    #f0544a;
    --gray:   #6b7c98;
    --blue:   #0A84FF;
    --purple: #BF5AF2;
    --orange: #FF9F0A;

    /* brand / action — vitals green */
    --accent:      #22c55e;
    --accent-2:    #17a34e;
    --accent-glow: rgba(34, 197, 94, .35);

    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    --font-mono: 'Fira Code', 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
    --font-sans: 'Fira Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --ease: cubic-bezier(.22, .7, .2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* glass */
    --glass: rgba(22, 36, 59, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection { background: rgba(34, 197, 94, .30); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font-sans); }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

/* focus & a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; filter: blur(12px); transform: translateY(30px) scale(0.96); transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), filter 0.8s ease-out; will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; filter: blur(0px); transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   NAVBAR — floating glass
   ============================================================ */
.nav {
    position: fixed;
    top: 14px; left: 16px; right: 16px;
    z-index: 200;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.nav-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1128px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 14px 10px 18px;
    border-radius: 16px;
    background: rgba(11, 19, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled .nav-inner {
    background: rgba(9, 15, 26, 0.82);
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 16.5px;
    letter-spacing: .2px;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-brand .plus { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-mut);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: 9px;
    transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #06190f !important;
    font-weight: 700 !important;
    font-size: 14px;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: filter .15s ease, box-shadow .2s ease;
}
.nav-cta:hover { filter: brightness(1.08); background: linear-gradient(180deg, var(--accent), var(--accent-2)) !important; }
.nav-burger {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-burger svg { width: 20px; height: 20px; }

/* mobile menu */
.mobile-menu {
    position: fixed;
    top: 74px; left: 16px; right: 16px;
    z-index: 199;
    border-radius: 16px;
    background: rgba(9, 15, 26, 0.96);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    padding: 13px 16px;
    border-radius: 10px;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, .05); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 168px 0 110px;
    overflow: clip;
    background:
        radial-gradient(900px 480px at 16% -10%, rgba(34, 197, 94, .10), transparent 60%),
        radial-gradient(700px 420px at 100% 4%, rgba(79, 142, 247, .07), transparent 55%),
        var(--bg-deep); /* Deeper background for more contrast */
}
/* Glowing Orbs */
.hero-bg-orbs {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: blur(90px);
    opacity: 0.5; /* back to subtle */
}
.orb {
    position: absolute;
    border-radius: 50%;
    animation: orb-float 20s infinite ease-in-out alternate;
}
.orb-1 {
    width: 600px; height: 600px;
    background: rgba(34, 197, 94, 0.2); /* softened */
    top: 10%; left: 10%;
    animation-delay: -5s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: rgba(10, 132, 255, 0.15); /* softened */
    bottom: 20%; right: 10%;
    animation-duration: 25s;
    animation-delay: -10s;
}
.orb-3 {
    width: 400px; height: 400px;
    background: rgba(34, 197, 94, 0.12); /* softened */
    top: 40%; left: 40%;
    animation-duration: 30s;
}
@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
/* faint grid */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(147, 164, 189, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 164, 189, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, black 30%, transparent 75%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-mut);
    background: rgba(34, 197, 94, .07);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 999px;
    padding: 7px 15px;
    margin-bottom: 26px;
}
.hero-badge .dot-live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 5.6vw, 66px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1.8px;
}
.hero h1 .glow-green {
    background: linear-gradient(100deg, #5eead4 0%, var(--accent) 45%, #86efac 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-mut);
    max-width: 540px;
    margin: 0 0 14px;
}
.hero-carousel-line {
    font-size: 17px;
    color: var(--text-mut);
    margin: 0 0 36px;
}

/* rotating word — same component as the panel */
.carousel-container {
    display: inline-flex;
    position: relative;
    vertical-align: bottom;
    height: 1.55em;
    overflow: hidden;
    width: 132px;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
}
.carousel-word {
    position: absolute;
    top: 0;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s var(--ease-spring);
}
.carousel-word.active { opacity: 1; transform: translateY(0); }
.carousel-word.prev   { opacity: 0; transform: translateY(-100%); }

.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; z-index: 2; position: relative; }

/* Magnetic Button with Cursor Glow */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden; /* contains the inner glow */
    transition: box-shadow 0.2s ease;
}
.btn-glow {
    position: absolute;
    width: 80px; height: 80px; /* back to original size */
    background: rgba(255, 255, 255, 0.5); /* subtle */
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.magnetic-btn:hover .btn-glow { opacity: 1; }
.btn-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #06190f;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 15px 30px;
    box-shadow: 0 6px 24px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 10px rgba(0,0,0,0.1);
}
.btn-primary:hover { box-shadow: 0 12px 36px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:active { transform: translateY(1px) scale(0.98) !important; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-2);
    color: var(--text);
    font-size: 15.5px;
    font-weight: 600;
    padding: 14px 26px;
    transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #46608a; }
.btn-ghost svg { width: 17px; height: 17px; color: var(--accent); }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
}
.hero-trust svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }

/* ECG line */
.ecg-wrap {
    position: absolute;
    left: 0; right: 0;
    bottom: 26px;
    height: 90px;
    opacity: 0.7; /* Increased opacity */
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}
.ecg-wrap svg { width: 100%; height: 100%; }
.ecg-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5; /* Slightly thicker */
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Stronger double shadow for a bright glowing head */
    filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 16px var(--accent));
    stroke-dasharray: 120 1800; /* Shorter pulse length */
    stroke-dashoffset: 1920;
    animation: ecg-run 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; /* More dynamic speed */
}
@keyframes ecg-run { to { stroke-dashoffset: 0; } }

/* ---------- hero visual: auto-playing mini panel ---------- */
.hero-visual { position: relative; perspective: 1400px; }
.hero-panel {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(29, 47, 75, .6), rgba(15, 25, 42, .8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, .85),
        inset 0 1px 0 rgba(255, 255, 255, .15),
        inset 0 -1px 0 rgba(0, 0, 0, .5),
        0 0 120px -30px rgba(34, 197, 94, .15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 18px;
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform .5s var(--ease);
}
.hero-visual:hover .hero-panel { transform: rotateY(-3deg) rotateX(1deg); }
.hero-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.hero-panel-head img { width: 28px; height: 28px; border-radius: 7px; }
.hero-panel-title { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.hero-panel-sub { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim); display: block; margin-top: 1px; }
.hero-panel-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-mut);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 4px 10px;
}
.hero-panel-badge .hp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }

/* skeleton rows (shown during the loop's scan phase) */
.hp-skel { display: flex; flex-direction: column; gap: 10px; }
.hp-skel-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: 10px;
    padding: 12px 13px;
}
.skel-chip, .skel-line {
    background: linear-gradient(90deg, var(--card-2) 22%, var(--border-2) 50%, var(--card-2) 78%);
    background-size: 200% 100%;
    animation: aed-shimmer 1.5s ease-in-out infinite;
}
.skel-chip { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; }
.skel-line { height: 10px; border-radius: 5px; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-65 { width: 65%; }
@keyframes aed-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* result rows */
.hp-results { display: none; flex-direction: column; gap: 10px; }
.hp-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-2);
    border-radius: 10px;
    padding: 12px 13px;
    opacity: 0;
    transform: translateY(8px);
}
.hp-row.show { animation: hp-row-in .5s var(--ease) forwards; }
@keyframes hp-row-in { to { opacity: 1; transform: none; } }
.hp-row.status-green  { border-left-color: var(--green); }
.hp-row.status-yellow { border-left-color: var(--yellow); }
.hp-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    border: 1px solid;
}
.hp-icon svg { width: 15px; height: 15px; }
.hp-row.status-green  .hp-icon { color: var(--green);  border-color: rgba(46, 213, 115, .30); background: rgba(46, 213, 115, .08); }
.hp-row.status-yellow .hp-icon { color: var(--yellow); border-color: rgba(245, 185, 66, .30); background: rgba(245, 185, 66, .08); }
.hp-label { font-size: 13.5px; font-weight: 600; flex: 1; }
.hp-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut); }
.hp-pill {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}
.hp-pill.ok   { color: var(--green);  background: rgba(46, 213, 115, .12); }
.hp-pill.warn { color: var(--yellow); background: rgba(245, 185, 66, .12); }

/* overall banner inside hero panel */
.hp-overall {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid rgba(46, 213, 115, .34);
    background: rgba(46, 213, 115, .08);
}
.hp-overall.show { display: flex; animation: hp-row-in .5s var(--ease) forwards; opacity: 0; }
.hp-overall-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(46, 213, 115, .16);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.hp-overall-icon svg { width: 18px; height: 18px; }
.hp-overall-label { font-size: 14.5px; font-weight: 700; display: block; }
.hp-overall-sub { font-size: 11.5px; color: var(--text-mut); display: block; }

/* floating chips around hero panel */
.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text);
    background: rgba(22, 36, 59, .80);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 9px 13px;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    animation: chip-float 6s ease-in-out infinite;
    white-space: nowrap;
}
.float-chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.float-chip.c-green svg  { color: var(--green); }
.float-chip.c-yellow svg { color: var(--yellow); }
.float-chip.chip-1 { top: -22px; right: 8%; animation-delay: 0s; }
.float-chip.chip-2 { bottom: 32%; left: -44px; animation-delay: 1.6s; }
.float-chip.chip-3 { bottom: -20px; right: 14%; animation-delay: 3.1s; }
@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .015);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    padding: 34px 18px;
    text-align: center;
    border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}
.stat-num .unit { font-size: 17px; color: var(--accent); }
.stat-label {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 5px;
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-kicker::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.section-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.2px;
}
.section-lead {
    font-size: 17.5px;
    color: var(--text-mut);
    max-width: 620px;
    margin: 0;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.section-head.center .section-kicker::before { display: none; }

/* ============================================================
   PROBLEM SECTION — recreated AE error dialogs
   ============================================================ */
.problem { background: linear-gradient(180deg, var(--bg) 0%, #0a1020 100%); }
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.error-stack { position: relative; min-height: 360px; }
.ae-error {
    position: absolute;
    width: min(380px, 88%);
    background: #1a2336;
    border: 1px solid rgba(240, 84, 74, .35);
    border-radius: 10px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ae-error:hover { transform: translateY(-6px) rotate(0deg) !important; box-shadow: 0 30px 70px -16px rgba(240, 84, 74, .25); z-index: 5; }
.ae-error.e1 { top: 0; left: 0; transform: rotate(-2.5deg); }
.ae-error.e2 { top: 110px; right: 0; transform: rotate(1.8deg); z-index: 2; }
.ae-error.e3 { top: 228px; left: 6%; transform: rotate(-1deg); z-index: 3; }
.ae-error-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 84, 74, .12);
    border-bottom: 1px solid rgba(240, 84, 74, .25);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #ff9d96;
}
.ae-error-bar svg { width: 13px; height: 13px; color: var(--red); }
.ae-error-bar .win-x { margin-left: auto; color: var(--text-dim); }
.ae-error-body {
    padding: 13px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-mut);
}
.problem-copy h2 { margin-top: 0; }
.problem-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.problem-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-mut); font-size: 15.5px; }
.problem-list svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; color: var(--red); }
.problem-punch {
    margin-top: 34px;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}
.problem-punch .mono { color: var(--accent); }

/* ============================================================
   LIVE DEMO — the real panel, rebuilt with its own CSS
   ============================================================ */
.demo-section {
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(34, 197, 94, .06), transparent 60%),
        var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.demo-frame {
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(13, 21, 36, .8);
    box-shadow:
        0 50px 110px -34px rgba(0, 0, 0, .85),
        0 0 100px -40px var(--accent-glow);
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.demo-chrome {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 12, 21, .7);
}
.demo-chrome .tl { width: 11px; height: 11px; border-radius: 50%; }
.demo-chrome .tl.r { background: #ff5f57; }
.demo-chrome .tl.y { background: #febc2e; }
.demo-chrome .tl.g { background: #28c840; }
.demo-chrome-title {
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-dim);
}
.demo-chrome-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--green);
    text-transform: uppercase;
}
.demo-chrome-live .dot-live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
.demo-hint {
    text-align: center;
    margin: 22px auto 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.demo-hint svg { width: 15px; height: 15px; color: var(--accent); }

/* ----- panel replica (scoped to .aed-panel, styles ported from the plugin) ----- */
.aed-panel {
    display: flex;
    height: 560px;
    font-size: 13px;
    line-height: 1.5;
    background:
        radial-gradient(820px 360px at 18% -14%, rgba(34, 197, 94, .09), transparent 60%),
        radial-gradient(620px 320px at 104% 0%, rgba(79, 142, 247, .06), transparent 55%),
        var(--bg);
    text-align: left;
}
.aed-panel .app-sidebar {
    width: 58px;
    flex: 0 0 58px;
    background: rgba(11, 19, 32, 0.7);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
    z-index: 10;
}
.aed-panel .nav-spacer { flex: 1; }
.aed-panel .pnl-nav-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-mut);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.aed-panel .pnl-nav-btn svg { width: 20px; height: 20px; }
.aed-panel .pnl-nav-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.aed-panel .pnl-nav-btn.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: rgba(34, 197, 94, 0.3);
}
.aed-panel .pnl-nav-btn.lock-pro { color: var(--text-dim); }
.aed-panel .pnl-nav-btn.lock-pro:hover { color: var(--yellow); }

.aed-panel .app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aed-panel .app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.aed-panel .app-header img { width: 26px; height: 26px; border-radius: 7px; }
.aed-panel .pnl-brand-name { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.aed-panel .pnl-brand-sub {
    font-size: 9.5px; font-weight: 500;
    letter-spacing: .6px; text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-top: 1px;
}
.aed-panel .pnl-health-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}
.aed-panel .pnl-health-badge.visible { display: inline-flex; }
.aed-panel .health-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.aed-panel .health-dot.green  { background: var(--green); color: var(--green); }
.aed-panel .health-dot.yellow { background: var(--yellow); color: var(--yellow); }

.aed-panel .views { flex: 1; position: relative; overflow: hidden; display: flex; }
.aed-panel .view {
    position: absolute; inset: 0;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    animation: view-fade .35s var(--ease);
}
.aed-panel .view.active { display: flex; }
@keyframes view-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aed-panel .view::-webkit-scrollbar { width: 9px; }
.aed-panel .view::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; border: 2px solid var(--bg); background-clip: padding-box; }
.aed-panel .view::-webkit-scrollbar-track { background: transparent; }

/* panel footer with scan button — straight from the plugin */
.aed-panel .pnl-footer {
    flex: 0 0 auto;
    padding: 12px 16px 12px;
    border-top: 1px solid var(--border);
    background: rgba(7, 12, 21, .45);
}
.aed-panel .scan-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #06190f;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 6px 20px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
.aed-panel .scan-btn:hover:not(:disabled) { filter: brightness(1.07); }
.aed-panel .scan-btn:active:not(:disabled) { transform: translateY(1px); }
.aed-panel .scan-btn:disabled { cursor: default; filter: grayscale(.35) brightness(.8); box-shadow: none; }
.aed-panel .scan-spinner {
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(6, 25, 15, .30);
    border-top-color: #06190f;
    display: none;
    animation: aed-spin .7s linear infinite;
}
.aed-panel .scan-btn.loading .scan-spinner { display: inline-block; }
@keyframes aed-spin { to { transform: rotate(360deg); } }
.aed-panel .pnl-privacy {
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.aed-panel .pnl-privacy svg { width: 11px; height: 11px; color: var(--accent); }

/* launchpad (dashboard view) */
.aed-panel .launchpad-header { text-align: center; margin: 8px 0 20px; }
.aed-panel .launchpad-title { font-size: 20px; font-weight: 600; margin: 0 0 7px; letter-spacing: -0.3px; }
.aed-panel .launchpad-sub { font-size: 13.5px; color: var(--text-mut); margin: 0 auto; max-width: 360px; }
.aed-panel .launchpad-sub .carousel-container { width: 102px; font-size: 13.5px; height: 1.5em; }
.aed-panel .launchpad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    perspective: 1200px;
}
.aed-panel .launchpad-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 17px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 13px;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--font-sans);
}
.aed-panel .launchpad-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}
.aed-panel .launchpad-card:active { transform: scale(0.98); }
.aed-panel .lp-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}
.aed-panel .lp-icon svg { width: 19px; height: 19px; }
.aed-panel .lp-icon-scan    { color: var(--green);  background: rgba(52, 199, 89, 0.1); }
.aed-panel .lp-icon-plugin  { color: var(--blue);   background: rgba(10, 132, 255, 0.1); }
.aed-panel .lp-icon-monitor { color: var(--orange); background: rgba(255, 159, 10, 0.1); }
.aed-panel .lp-icon-kb      { color: var(--purple); background: rgba(191, 90, 242, 0.1); }
.aed-panel .lp-title { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.aed-panel .lp-desc { font-size: 12px; color: var(--text-mut); margin: 0; line-height: 1.4; }

/* scanner view */
.aed-panel .empty-state { text-align: center; padding: 52px 20px 30px; color: var(--text-mut); margin: auto; }
.aed-panel .empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .22);
    color: var(--accent);
}
.aed-panel .empty-icon svg { width: 26px; height: 26px; }
.aed-panel .empty-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin: 15px 0 5px; }
.aed-panel .empty-body { font-size: 12px; margin: 0 auto; max-width: 260px; color: var(--text-mut); }
.aed-panel kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 1.5px 6px;
    border-radius: 4px;
    background: var(--card-2);
    border: 1px solid var(--border-2);
    color: var(--text);
}

.aed-panel .overall {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 13px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.aed-panel .overall-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.aed-panel .overall-icon svg { width: 20px; height: 20px; }
.aed-panel .overall-label { display: block; font-size: 15px; font-weight: 700; }
.aed-panel .overall-sub { display: block; font-size: 11.5px; color: var(--text-mut); margin-top: 2px; }
.aed-panel .status-bg-green  { background: rgba(46, 213, 115, .08); border-color: rgba(46, 213, 115, .34); }
.aed-panel .status-bg-green .overall-icon { background: rgba(46, 213, 115, .16); color: var(--green); }
.aed-panel .status-bg-yellow { background: rgba(245, 185, 66, .08); border-color: rgba(245, 185, 66, .34); }
.aed-panel .status-bg-yellow .overall-icon { background: rgba(245, 185, 66, .16); color: var(--yellow); }
.aed-panel .overall::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: 0;
}
.aed-panel .status-bg-green::after { color: var(--green); }
.aed-panel .overall.pulse-once::after { animation: aed-ring .9s var(--ease) both; }
@keyframes aed-ring {
    from { opacity: .55; transform: scale(1); }
    to   { opacity: 0;   transform: scale(1.018); }
}

.aed-panel .results { display: flex; flex-direction: column; gap: 9px; }
.aed-panel .scan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-2);
    border-radius: var(--radius);
    padding: 12px 14px;
    opacity: 0;
    transform: translateY(8px);
}
.aed-panel .scan-card.reveal { animation: hp-row-in .45s var(--ease) forwards; }
.aed-panel .scan-card.status-green  { border-left-color: var(--green); }
.aed-panel .scan-card.status-yellow { border-left-color: var(--yellow); }
.aed-panel .scan-card-head { display: flex; align-items: center; gap: 10px; }
.aed-panel .scan-card-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--border-2);
}
.aed-panel .scan-card-icon svg { width: 15px; height: 15px; }
.aed-panel .scan-card.status-green  .scan-card-icon { color: var(--green);  border-color: rgba(46, 213, 115, .30); background: rgba(46, 213, 115, .08); }
.aed-panel .scan-card.status-yellow .scan-card-icon { color: var(--yellow); border-color: rgba(245, 185, 66, .30); background: rgba(245, 185, 66, .08); }
.aed-panel .scan-card-label { font-size: 13px; font-weight: 600; flex: 1; }
.aed-panel .scan-card-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
}
.aed-panel .scan-card.status-green  .scan-card-badge { color: var(--green);  background: rgba(46, 213, 115, .12); }
.aed-panel .scan-card.status-yellow .scan-card-badge { color: var(--yellow); background: rgba(245, 185, 66, .12); }
.aed-panel .scan-card-detail { font-size: 12px; color: var(--text-mut); margin-top: 7px; padding-left: 38px; }
.aed-panel .fix-btn {
    margin-top: 9px;
    margin-left: 38px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .35);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .2s ease;
}
.aed-panel .fix-btn:hover { background: rgba(34, 197, 94, .18); }
.aed-panel .fix-btn svg { width: 13px; height: 13px; }
.aed-panel .fix-btn.fixing { pointer-events: none; opacity: .7; }

/* hardware monitor view */
.aed-panel .hm-title { margin: 0; font-size: 17px; font-weight: 600; }
.aed-panel .hm-sub { font-size: 12px; color: var(--text-mut); }
.aed-panel .hm-fps-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.aed-panel .hm-fps-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mut); }
.aed-panel .hm-fps-val { font-family: var(--font-mono); font-size: 38px; font-weight: 700; }
.aed-panel .hm-fps-unit { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-left: 5px; }
.aed-panel .hm-fps-status { font-size: 12px; display: flex; align-items: center; gap: 7px; color: var(--text-mut); }
.aed-panel .hm-section { margin-top: 14px; }
.aed-panel .hm-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mut);
    margin: 0 0 10px;
}
.aed-panel .hm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.aed-panel .hm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.aed-panel .hm-fan-icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--text-mut); }
.aed-panel .hm-fan-icon svg {
    width: 100%; height: 100%;
    animation: hm-spin var(--rpm-speed, 1s) linear infinite;
    transform-origin: center;
}
@keyframes hm-spin { 100% { transform: rotate(360deg); } }
.aed-panel .hm-card-name { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.aed-panel .hm-card-desc { font-size: 10.5px; color: var(--text-mut); }
.aed-panel .hm-card-val { font-family: var(--font-mono); font-size: 15px; font-weight: 600; margin-left: auto; }
.aed-panel .hm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.aed-panel .dot-green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.aed-panel .dot-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.aed-panel .dot-red    { background: var(--red);    box-shadow: 0 0 6px var(--red); }

.aed-panel .icu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.aed-panel .icu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aed-panel .icu-name { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.aed-panel .icu-desc { font-size: 11.5px; color: var(--text-mut); line-height: 1.45; margin-top: 5px; }
.aed-panel .pm-btn {
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex: 0 0 auto;
}
.aed-panel .pm-btn:hover { background: rgba(255, 255, 255, 0.05); }
.aed-panel .pm-btn.btn-on {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .4);
    color: var(--accent);
}
.aed-panel .icu-status {
    display: none;
    font-size: 11.5px;
    color: var(--green);
    margin-top: 10px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 6px;
    padding: 8px 10px;
}
.aed-panel .icu-status.visible { display: block; animation: view-fade .4s var(--ease); }

/* plugin manager view */
.aed-panel .pm-search-wrap { position: relative; margin-bottom: 10px; }
.aed-panel .pm-search-icon {
    position: absolute; left: 11px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--text-mut);
    pointer-events: none;
}
.aed-panel .pm-search-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px 9px 34px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 12.5px;
    outline: none;
    transition: border-color .15s;
}
.aed-panel .pm-search-input:focus { border-color: var(--accent); }
.aed-panel .pm-filters { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.aed-panel .pm-chip {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mut);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
}
.aed-panel .pm-chip:hover { color: var(--text); border-color: var(--border-2); }
.aed-panel .pm-chip.active {
    color: var(--accent);
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .08);
}
.aed-panel .pm-list { display: flex; flex-direction: column; gap: 7px; }
.aed-panel .pm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color .15s;
}
.aed-panel .pm-card:hover { border-color: var(--border-2); }
.aed-panel .pm-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.aed-panel .pm-meta { font-size: 10.5px; color: var(--text-dim); font-family: var(--font-mono); margin-top: 2px; }
.aed-panel .pm-issue { font-size: 11px; margin-top: 3px; font-weight: 500; }
.aed-panel .pm-issue.warning { color: var(--yellow); }
.aed-panel .pm-issue.danger { color: var(--red); }
.aed-panel .pm-issue.duplicate { color: #3b82f6; }
.aed-panel .pm-badge {
    font-size: 9.5px; font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.aed-panel .pm-badge.safe      { background: rgba(46, 213, 115, 0.1);  color: var(--green);  border: 1px solid rgba(46, 213, 115, 0.2); }
.aed-panel .pm-badge.warning   { background: rgba(245, 185, 66, 0.1);  color: var(--yellow); border: 1px solid rgba(245, 185, 66, 0.2); }
.aed-panel .pm-badge.danger    { background: rgba(240, 84, 74, 0.1);   color: var(--red);    border: 1px solid rgba(240, 84, 74, 0.2); }
.aed-panel .pm-badge.duplicate { background: rgba(59, 130, 246, 0.1);  color: #3b82f6;       border: 1px solid rgba(59, 130, 246, 0.2); }

/* knowledge base view */
.aed-panel .ki-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    resize: none;
    outline: none;
    transition: border-color .15s;
}
.aed-panel .ki-input:focus { border-color: var(--accent); }
.aed-panel .ki-samples { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.aed-panel .ki-samples-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 600;
}
.aed-panel .ki-sample {
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-mut);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aed-panel .ki-sample:hover { border-color: rgba(34, 197, 94, .4); color: var(--text); }
.aed-panel .ki-result {
    display: none;
    margin-top: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--yellow);
    border-radius: var(--radius);
    padding: 14px;
}
.aed-panel .ki-result.visible { display: block; animation: view-fade .4s var(--ease); }
.aed-panel .ki-result-match {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.aed-panel .ki-result-title { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.aed-panel .ki-result-cause { font-size: 12px; color: var(--text-mut); margin: 0 0 11px; line-height: 1.5; }
.aed-panel .ki-fix-go {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border: none;
    color: #06190f;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px -4px var(--accent-glow);
    transition: filter .15s ease;
}
.aed-panel .ki-fix-go:hover { filter: brightness(1.07); }
.aed-panel .ki-fix-go svg { width: 13px; height: 13px; }
.aed-panel .ki-fix-go.done {
    background: rgba(46, 213, 115, .14);
    color: var(--green);
    box-shadow: none;
    pointer-events: none;
}

/* project optimizer view */
.aed-panel .po-summary {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-mut);
}
.aed-panel .po-summary.visible { display: block; animation: view-fade .4s var(--ease); }
.aed-panel .po-summary b { color: var(--text); }

/* history / diff card */
.aed-panel .history-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 12px 14px;
    margin-bottom: 12px;
}
.aed-panel .history-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--text-mut);
    display: flex;
    align-items: center;
    gap: 7px;
}
.aed-panel .history-title svg { width: 13px; height: 13px; }
.aed-panel .history-when { margin-left: auto; font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); font-weight: 400; text-transform: none; letter-spacing: 0; }
.aed-panel .history-list { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aed-panel .history-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; }
.aed-panel .history-list .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; }

/* ============================================================
   FEATURES — bento grid
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.feature-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(29, 47, 75, .5), rgba(16, 26, 44, .72));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 30px;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.feature-card:hover {
    border-color: rgba(34, 197, 94, .30);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 50px -24px var(--accent-glow);
    transform: translateY(-4px);
}
.feature-card.span-3 { grid-column: span 3; }
.feature-card.span-2 { grid-column: span 2; }
.feature-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    border: 1px solid;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.i-green  { color: var(--green);  background: rgba(46, 213, 115, .09);  border-color: rgba(46, 213, 115, .25); }
.feature-icon.i-blue   { color: var(--blue);   background: rgba(10, 132, 255, .09);  border-color: rgba(10, 132, 255, .25); }
.feature-icon.i-orange { color: var(--orange); background: rgba(255, 159, 10, .09);  border-color: rgba(255, 159, 10, .25); }
.feature-icon.i-purple { color: var(--purple); background: rgba(191, 90, 242, .09);  border-color: rgba(191, 90, 242, .25); }
.feature-icon.i-yellow { color: var(--yellow); background: rgba(245, 185, 66, .09);  border-color: rgba(245, 185, 66, .25); }
.feature-icon.i-red    { color: var(--red);    background: rgba(240, 84, 74, .09);   border-color: rgba(240, 84, 74, .25); }
.feature-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.feature-card p { margin: 0; font-size: 14.5px; color: var(--text-mut); line-height: 1.6; }
.feature-tag {
    position: absolute;
    top: 24px; right: 24px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .3);
    padding: 4px 9px;
    border-radius: 999px;
}
.feature-tag.t-pro { color: var(--yellow); background: rgba(245, 185, 66, .10); border-color: rgba(245, 185, 66, .3); }

/* ICU RAM bars (inside big bento card) */
.icu-demo { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.ram-bar-row { display: flex; align-items: center; gap: 13px; }
.ram-bar-label {
    width: 92px;
    flex: 0 0 92px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mut);
}
.ram-bar {
    flex: 1;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}
.ram-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.4s var(--ease);
}
.ram-fill.f-other { background: linear-gradient(90deg, #5b6b85, #46546c); }
.ram-fill.f-ae { background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 14px -2px var(--accent-glow); }
.ram-bar-val {
    width: 64px;
    flex: 0 0 64px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}
.icu-demo.armed .ram-fill.f-other.before { width: 72%; }
.icu-demo.armed .ram-fill.f-ae.before    { width: 24%; }
.icu-demo.armed .ram-fill.f-other.after  { width: 22%; }
.icu-demo.armed .ram-fill.f-ae.after     { width: 74%; }
.icu-bench {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mut);
    display: flex;
    align-items: center;
    gap: 9px;
}
.icu-bench b { color: var(--accent); font-weight: 700; }
.icu-bench svg { width: 14px; height: 14px; color: var(--accent); }

/* mini telemetry gauges (live telemetry bento card) */
.tele-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tele-chip {
    flex: 1;
    min-width: 110px;
    background: rgba(11, 19, 32, .6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}
.tele-chip-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.tele-chip-val { font-family: var(--font-mono); font-size: 19px; font-weight: 700; margin-top: 3px; display: flex; align-items: baseline; gap: 3px; }
.tele-chip-val .u { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.tele-chip-val.v-green { color: var(--green); }
.tele-chip-val.v-yellow { color: var(--yellow); }

/* diff strip */
.diff-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.diff-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(29, 47, 75, .5), rgba(16, 26, 44, .72));
    border: 1px solid var(--glass-border);
    padding: 26px 30px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.diff-card .feature-icon { margin-bottom: 0; flex: 0 0 auto; }
.diff-card h3 { margin: 2px 0 8px; font-size: 17px; }
.diff-card p { margin: 0; font-size: 14px; color: var(--text-mut); }
.diff-card .mono-li {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 11.5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.diff-card .mono-li li { display: flex; gap: 8px; align-items: center; }
.diff-card .mono-li .d { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.diff-card .mono-li .d.g { background: var(--green); box-shadow: 0 0 6px var(--green); }
.diff-card .mono-li .d.y { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.diff-card .mono-li .d.r { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ============================================================
   UNDER THE HOOD — architecture
   ============================================================ */
.hood { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.arch-stack { display: flex; flex-direction: column; gap: 0; }
.arch-layer {
    position: relative;
    background: linear-gradient(165deg, rgba(29, 47, 75, .55), rgba(16, 26, 44, .8));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color .3s ease, transform .3s ease;
}
.arch-layer:hover { border-color: rgba(34, 197, 94, .35); transform: translateX(6px); }
.arch-layer .feature-icon { margin: 0; width: 42px; height: 42px; flex: 0 0 auto; }
.arch-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arch-name .mono-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    border: 1px solid var(--border-2);
    border-radius: 5px;
    padding: 2px 7px;
}
.arch-desc { font-size: 13.5px; color: var(--text-mut); margin: 0; line-height: 1.55; }
.arch-link {
    align-self: center;
    height: 30px;
    width: 2px;
    margin-left: 44px;
    background: linear-gradient(180deg, var(--accent), transparent);
    position: relative;
}
.arch-link::after {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transform: translateX(-50%);
    animation: link-drop 1.8s ease-in infinite;
}
@keyframes link-drop {
    0% { top: 0; opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 6px); opacity: 0; }
}

/* terminal */
.terminal {
    border-radius: 14px;
    background: #060b14;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--text-dim);
    font-size: 11px;
}
.terminal-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.terminal-body { padding: 18px 20px; line-height: 1.75; overflow-x: auto; }
.terminal-body .c-k { color: #7dd3fc; }
.terminal-body .c-s { color: #86efac; }
.terminal-body .c-n { color: #fbbf24; }
.terminal-body .c-c { color: var(--text-dim); }
.terminal-body .c-p { color: var(--text-mut); }
.terminal-cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   PRIVACY BAND
   ============================================================ */
.privacy-band {
    text-align: center;
    padding: 90px 0;
    background:
        radial-gradient(600px 280px at 50% 50%, rgba(34, 197, 94, .08), transparent 70%),
        var(--bg);
}
.privacy-lock {
    width: 72px; height: 72px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .3);
    box-shadow: 0 0 60px -12px var(--accent-glow);
}
.privacy-lock svg { width: 32px; height: 32px; }
.privacy-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; letter-spacing: -1px; }
.privacy-band p { color: var(--text-mut); max-width: 560px; margin: 0 auto; font-size: 16.5px; }
.privacy-points {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.privacy-points span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mut);
}
.privacy-points svg { width: 15px; height: 15px; color: var(--accent); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.testi-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(29, 47, 75, .5), rgba(16, 26, 44, .72));
    border: 1px solid var(--glass-border);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color .3s ease, transform .3s ease;
}
.testi-card:hover { border-color: rgba(34, 197, 94, .25); transform: translateY(-4px); }
.testi-stars { display: flex; gap: 3px; }
.testi-stars svg { width: 15px; height: 15px; color: var(--yellow); fill: var(--yellow); }
.testi-quote { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.65; flex: 1; }
.testi-quote .hl { color: var(--accent); font-weight: 600; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 auto;
}
.testi-avatar.a1 { background: rgba(34, 197, 94, .14);  color: var(--green); border: 1px solid rgba(34, 197, 94, .35); }
.testi-avatar.a2 { background: rgba(10, 132, 255, .14); color: var(--blue);  border: 1px solid rgba(10, 132, 255, .35); }
.testi-avatar.a3 { background: rgba(191, 90, 242, .14); color: var(--purple);border: 1px solid rgba(191, 90, 242, .35); }
.testi-name { font-size: 13.5px; font-weight: 600; }
.testi-role { font-size: 11.5px; color: var(--text-dim); font-family: var(--font-mono); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-deep); border-top: 1px solid var(--border); }
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    margin: 0 auto 56px;
}
.billing-toggle button {
    border: none;
    background: transparent;
    color: var(--text-mut);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.billing-toggle button.active {
    background: var(--card-2);
    color: var(--text);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .6);
}
.save-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(34, 197, 94, .12);
    border-radius: 999px;
    padding: 2px 8px;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.price-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(29, 47, 75, .45), rgba(16, 26, 44, .75));
    border: 1px solid var(--glass-border);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.price-card.featured {
    border-color: rgba(34, 197, 94, .45);
    background:
        radial-gradient(420px 240px at 50% -10%, rgba(34, 197, 94, .14), transparent 70%),
        linear-gradient(165deg, rgba(29, 47, 75, .6), rgba(16, 26, 44, .85));
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .8), 0 0 70px -28px var(--accent-glow);
    transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.popular-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #06190f;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    padding: 6px 16px;
    box-shadow: 0 6px 20px -6px var(--accent-glow);
    white-space: nowrap;
}
.plan-name { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-mut); }
.price-card.featured .plan-name { color: var(--accent); }
.plan-tagline { font-size: 13px; color: var(--text-dim); margin: 6px 0 22px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; min-height: 64px; }
.plan-price .amount { font-family: var(--font-mono); font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.plan-price .period { font-size: 13.5px; color: var(--text-dim); }
.plan-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-top: 8px; min-height: 17px; }
.plan-divider { height: 1px; background: var(--border); margin: 24px 0; }
.plan-feats { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-mut); }
.plan-feats li.head { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-top: 4px; }
.plan-feats li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }
.plan-feats li .ck { color: var(--accent); }
.plan-feats li .dash { color: var(--text-dim); }
.plan-feats li.off { color: var(--text-dim); }
.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid var(--border-2);
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}
.plan-cta:hover { background: rgba(255, 255, 255, .07); }
.plan-cta.cta-solid {
    border: none;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #06190f;
    box-shadow: 0 8px 26px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.plan-cta.cta-solid:hover { filter: brightness(1.07); }
.plan-cta.cta-outline {
    border-color: rgba(34, 197, 94, .4);
    color: var(--accent);
    background: rgba(34, 197, 94, .06);
}
.plan-cta.cta-outline:hover { background: rgba(34, 197, 94, .12); }
.plan-sub-cta {
    margin-top: 12px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.guarantee {
    margin-top: 44px;
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.guarantee span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-mut);
}
.guarantee svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.pricing-hook {
    text-align: center;
    margin: 0 auto 14px;
    font-size: 15px;
    color: var(--text-mut);
}
.pricing-hook b { color: var(--text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(29, 47, 75, .4), rgba(16, 26, 44, .6));
    overflow: hidden;
    transition: border-color .25s ease;
}
.faq-item.open { border-color: rgba(34, 197, 94, .3); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    padding: 20px 24px;
    cursor: pointer;
}
.faq-q .chev {
    width: 18px; height: 18px;
    flex: 0 0 auto;
    color: var(--text-mut);
    transition: transform .3s var(--ease);
}
.faq-item.open .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}
.faq-a-inner {
    padding: 0 24px 22px;
    font-size: 14.5px;
    color: var(--text-mut);
    line-height: 1.7;
}
.faq-a-inner code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--card-2);
    border: 1px solid var(--border-2);
    border-radius: 5px;
    padding: 1px 6px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
    position: relative;
    text-align: center;
    padding: 130px 0;
    overflow: clip;
    background:
        radial-gradient(700px 380px at 50% 110%, rgba(34, 197, 94, .16), transparent 70%),
        var(--bg-deep);
    border-top: 1px solid var(--border);
}
.final-cta h2 {
    font-size: clamp(32px, 4.4vw, 54px);
    margin: 0 0 18px;
    letter-spacing: -1.6px;
    line-height: 1.08;
}
.final-cta p { color: var(--text-mut); font-size: 17.5px; max-width: 540px; margin: 0 auto 38px; }
.final-meta {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding: 64px 0 36px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-tag { font-size: 13.5px; color: var(--text-dim); max-width: 280px; line-height: 1.6; }
.footer-title {
    font-size: 11.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-mut); /* Use mut for better contrast */
    margin: 0 0 16px;
    font-family: var(--font-mono);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--text-mut); font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-dim);
}
.footer-privacy { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; }
.footer-privacy svg { width: 13px; height: 13px; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .hero-panel { transform: none; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .feature-card.span-3, .feature-card.span-2 { grid-column: span 1; }
    .hood-grid { grid-template-columns: 1fr; gap: 48px; }
    .problem-grid { grid-template-columns: 1fr; gap: 48px; }
    .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .price-card.featured { transform: none; order: -1; }
    .price-card.featured:hover { transform: translateY(-5px); }
    .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
    .stat { border-top: 1px solid var(--border); }
    .stat:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .container { padding: 0 20px; }

    .hero { padding: 124px 0 84px; }
    .section { padding: 76px 0; }
    .section-head { margin-bottom: 40px; }

    /* relax the heavy negative tracking — it reads cramped at phone sizes */
    .hero h1 { letter-spacing: -0.6px; line-height: 1.08; }
    .section-title { letter-spacing: -0.4px; line-height: 1.18; }
    .privacy-band h2,
    .final-cta h2 { letter-spacing: -0.4px; line-height: 1.16; }
    .plan-price .amount { letter-spacing: -1px; }

    .hero-sub, .hero-carousel-line { font-size: 16px; }
    .section-lead { font-size: 16px; }

    /* THE fix: stack the feature grid into one column so nothing overflows */
    .bento { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { padding: 24px 22px; }
    .feature-card h3 { font-size: 18px; }
    .feature-card p { font-size: 14px; }
    .feature-tag { position: static; display: inline-block; margin-bottom: 14px; }

    /* telemetry chips: two per row, never overflow */
    .tele-row { gap: 10px; }
    .tele-chip { min-width: calc(50% - 5px); padding: 11px 13px; }
    .tele-chip-val { font-size: 17px; }

    /* ICU bars: shrink the fixed label/value columns */
    .ram-bar-label { width: 64px; flex-basis: 64px; font-size: 10px; }
    .ram-bar-val { width: 52px; flex-basis: 52px; font-size: 11px; }
    .icu-bench { font-size: 11px; align-items: flex-start; }

    /* code/terminal blocks: smaller + horizontally scrollable, never bleed */
    .terminal { font-size: 11px; }
    .terminal-body { padding: 14px 16px; }
    .diff-card .mono-li { font-size: 10.5px; word-break: break-word; }

    .arch-layer { padding: 18px 18px; }
    .arch-name { font-size: 15px; }

    .aed-panel { height: 560px; }
    .aed-panel .launchpad-grid { grid-template-columns: 1fr; }
    .aed-panel .hm-grid { grid-template-columns: 1fr 1fr; }
    .demo-frame { border-radius: 14px; }
    .demo-chrome-title { display: none; }
    .float-chip.chip-2 { left: -8px; }

    .diff-strip { grid-template-columns: 1fr; }
    .diff-card { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .hero-ctas { width: 100%; }
    .hero-ctas .btn-primary, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 26px 14px; }
    .stat-num { font-size: 26px; }
    .error-stack { min-height: 400px; }
    .ae-error { width: min(330px, 94%); }

    .privacy-points { gap: 16px 26px; }
    .guarantee { gap: 18px 30px; }
    .billing-toggle { margin-bottom: 40px; }
    .billing-toggle button { padding: 12px 22px; }
    .price-card { padding: 30px 24px; }
}

/* very small phones */
@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .nav { top: 10px; left: 10px; right: 10px; }
    .nav-inner { padding: 9px 12px 9px 14px; }
    .nav-brand { font-size: 15px; }
    .nav-brand img { width: 26px; height: 26px; }
    .mobile-menu { top: 70px; left: 10px; right: 10px; }

    .hero { padding: 112px 0 76px; }
    .hero h1 { letter-spacing: -0.3px; }
    .section-title,
    .privacy-band h2,
    .final-cta h2 { letter-spacing: -0.2px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .ae-error-body { font-size: 11px; }
    .aed-panel { height: 540px; font-size: 12.5px; }
    .aed-panel .app-sidebar { width: 50px; flex-basis: 50px; gap: 9px; }
    .aed-panel .pnl-nav-btn { width: 36px; height: 36px; }
    .aed-panel .view { padding: 13px; }
    .aed-panel .hm-grid { grid-template-columns: 1fr; }
    .aed-panel .launchpad-card { padding: 15px; }
    .demo-hint { font-size: 11.5px; padding: 0 4px; }

    .plan-price .amount { font-size: 44px; }
    .price-card { padding: 26px 20px; }
    .testi-card { padding: 24px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .skel-line, .skel-chip { opacity: .5; }
}
