/* ===========================
   MX36 Suite — site.css
   =========================== */

:root {
    --bg:        #0c0c1a;
    --surface:   #12141f;
    --surface-2: #181b28;
    --surface-3: #1e2235;
    --accent-1:  #6366f1;
    --accent-2:  #3b82f6;
    --accent-3:  #06b6d4;
    --accent:    #3b82f6;
    --accent-h:  #2563eb;
    --text:      #f1f5f9;
    --muted:     #64748b;
    --border:    rgba(255,255,255,0.07);
    --border-2:  rgba(255,255,255,0.12);
    --radius:    8px;
    --max-w:     1120px;
    /* Legacy aliases for portal/forms */
    --navy:      #0d1117;
    --navy-2:    #141924;
    --navy-3:    #1c2333;
    --text-muted: #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    /* Subtle ambient gradient that persists across the whole page */
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(99,102,241,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 5%, rgba(6,182,212,0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(59,130,246,0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Container ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 0 24px rgba(99,102,241,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f52d3, #1d6fef);
    box-shadow: 0 0 36px rgba(99,102,241,0.4);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.25);
    text-decoration: none;
}

.btn-lg { padding: 13px 28px; font-size: 1rem; font-weight: 600; }

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    background: rgba(7,7,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

/* Homepage only: start transparent, blur on scroll (set by homepage.js) */
.site-header.hp-top {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

.site-header.scrolled {
    background: rgba(7,7,15,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.logo-mx    { color: #fff; }
.logo-suite { color: var(--accent-1); }

.main-nav {
    display: flex;
    gap: 28px;
}
.main-nav a {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 36px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }

/* ---- Forms ---- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 440px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-1); }

.form-group input::placeholder { color: var(--muted); }

.form-error {
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 4px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ---- Alert / flash ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.alert-success { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.alert-error   { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.alert-info    { background: rgba(99,102,241,0.1); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }

/* ---- Form inputs ---- */
.form-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }

/* ---- Legal content (privacy, terms) ---- */
.legal-content h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.legal-content .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 40px; }
.legal-content h2 { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 32px 0 12px; }
.legal-content h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.legal-content p  { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 4px; }
.legal-content a  { color: var(--accent); }
.legal-content code { font-size: 0.85em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }

/* ---- Page header ---- */
.page-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* ---- Portal layout ---- */
.portal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.portal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-sidebar a {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.portal-sidebar a:hover,
.portal-sidebar a.active {
    background: var(--surface-2);
    color: var(--text);
}

/* ---- License key display ---- */
.license-key {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: 4px;
    padding: 4px 8px;
    color: #a5b4fc;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    border-radius: 4px;
    transition: color .15s;
}
.btn-copy:hover { color: var(--text); }
.btn-copy.copied { color: #4ade80; }

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active    { background: rgba(34,197,94,0.12); color: #4ade80; }
.badge-inactive  { background: rgba(148,163,184,0.08); color: #94a3b8; }
.badge-revoked   { background: rgba(239,68,68,0.1); color: #f87171; }

/* ===========================
   HOMEPAGE — hp-* classes
   =========================== */

/* ---- Shared homepage utilities ---- */
.hp-gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-overline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
    display: block;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.42s; }

/* ---- Hero ---- */
.hp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding: 120px 0 80px;
}

.hp-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Animated gradient orbs */
@keyframes orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(60px, -40px) scale(1.08); }
    66%       { transform: translate(-30px, 50px) scale(0.95); }
}
@keyframes orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(-70px, 30px) scale(1.1); }
    80%       { transform: translate(40px, -20px) scale(0.92); }
}
@keyframes orb-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, 60px) scale(1.05); }
}

.hp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hp-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: orb-1 18s ease-in-out infinite;
}

.hp-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
    bottom: -80px;
    right: -60px;
    animation: orb-2 22s ease-in-out infinite;
}

.hp-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation: orb-3 15s ease-in-out infinite;
}

/* Dot grid overlay */
.hp-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hp-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border-2);
    background: rgba(255,255,255,0.03);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 36px;
    backdrop-filter: blur(8px);
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

.hp-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: badge-pulse 2s ease-in-out infinite;
}

.hp-hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 28px;
}

.hp-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 44px;
}

.hp-hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 52px;
}

.hp-ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.hp-ghost-link:hover { color: var(--text); text-decoration: none; }
.hp-ghost-link svg { transition: transform 0.2s; }
.hp-ghost-link:hover svg { transform: translateX(3px); }

.hp-hero__platforms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.hp-platform-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

.hp-platform-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--border-2);
    margin: 0 4px;
}

.hp-hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hp-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scroll-line 1.8s ease-in-out infinite;
}

/* ---- App screenshot preview ---- */
.hp-app-preview {
    background: var(--bg);
    padding: 0 0 80px;
    /* gradient fade from hero into this section */
    position: relative;
}

.hp-app-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.hp-app-preview__frame {
    position: relative;
}

/* Ambient glow behind the mockup */
.hp-app-preview__frame::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at 50% 60%, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.06) 40%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(20px);
}

.hp-mockup--large {
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 60px 120px rgba(0,0,0,0.7),
        0 0 80px rgba(99,102,241,0.12);
}

.hp-mockup__bar-title {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    margin-left: 8px;
    opacity: 0.7;
}

.hp-app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 15px 15px;
}

/* ---- Stats bar ---- */
.hp-stats {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hp-stat {
    padding: 0 32px;
    text-align: center;
}

.hp-stat + .hp-stat {
    border-left: 1px solid var(--border);
}

.hp-stat__number {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-stat__label {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ---- Statement ---- */
.hp-what {
    padding: 120px 0;
    background: var(--bg);
}

.hp-what__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hp-what__title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ---- Feature sections ---- */
.hp-feature {
    padding: 100px 0;
    background: var(--bg);
}

.hp-feature + .hp-feature {
    border-top: 1px solid var(--border);
}

.hp-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hp-feature--reverse .hp-feature__grid {
    background: var(--surface);
    padding: 80px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.hp-feature__text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 20px;
}

.hp-feature__desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hp-feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-feature__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.hp-feature__list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    flex-shrink: 0;
    margin-top: 7px;
}

/* ---- App mockup ---- */
.hp-mockup {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(99,102,241,0.08);
}

.hp-mockup__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.hp-mockup__bar span {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.hp-mockup__bar span:nth-child(1) { background: rgba(255,95,87,0.7); }
.hp-mockup__bar span:nth-child(2) { background: rgba(255,189,46,0.7); }
.hp-mockup__bar span:nth-child(3) { background: rgba(39,201,63,0.7); }

.hp-mockup__screen {
    padding: 24px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- VU meter demo ---- */
.hp-meter-demo {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    width: 100%;
    justify-content: space-around;
}

.hp-meter-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.hp-meter-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-meter-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 100px;
}

.hp-meter-bar {
    width: 10px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        to top,
        #22c55e 0%,
        #22c55e 60%,
        #eab308 75%,
        #ef4444 100%
    );
    position: relative;
}

/* Each bar gets its own animation for a live feel */
@keyframes vu-1 {
    0%,100%{ height:82px } 15%{ height:67px } 35%{ height:90px } 55%{ height:74px } 75%{ height:86px }
}
@keyframes vu-2 {
    0%,100%{ height:74px } 20%{ height:85px } 45%{ height:61px } 70%{ height:79px }
}
@keyframes vu-3 {
    0%,100%{ height:78px } 25%{ height:91px } 50%{ height:68px } 80%{ height:83px }
}
@keyframes vu-4 {
    0%,100%{ height:65px } 30%{ height:79px } 60%{ height:71px } 90%{ height:85px }
}
@keyframes vu-lo-1 {
    0%,100%{ height:12px } 30%{ height:8px  } 60%{ height:15px }
}
@keyframes vu-lo-2 {
    0%,100%{ height:8px  } 40%{ height:13px } 70%{ height:7px  }
}
@keyframes vu-lo-3 {
    0%,100%{ height:10px } 35%{ height:6px  } 65%{ height:12px }
}
@keyframes vu-lo-4 {
    0%,100%{ height:9px  } 45%{ height:14px } 75%{ height:8px  }
}
@keyframes vu-mid-1 {
    0%,100%{ height:55px } 20%{ height:68px } 50%{ height:48px } 80%{ height:62px }
}
@keyframes vu-mid-2 {
    0%,100%{ height:61px } 25%{ height:50px } 55%{ height:70px } 85%{ height:57px }
}
@keyframes vu-mid-3 {
    0%,100%{ height:58px } 30%{ height:66px } 60%{ height:52px } 90%{ height:64px }
}
@keyframes vu-mid-4 {
    0%,100%{ height:52px } 35%{ height:61px } 65%{ height:48px } 95%{ height:58px }
}

/* Input A — active */
.hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(1) { animation: vu-1 2.1s ease-in-out infinite; }
.hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(2) { animation: vu-2 1.9s ease-in-out infinite 0.15s; }
.hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(3) { animation: vu-3 2.3s ease-in-out infinite 0.3s; }
.hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(4) { animation: vu-4 1.7s ease-in-out infinite 0.1s; }

/* Input B — standby/low */
.hp-meter-col:nth-child(2) .hp-meter-bars .hp-meter-bar { background: rgba(255,255,255,0.08); }
.hp-meter-col:nth-child(2) .hp-meter-bars .hp-meter-bar:nth-child(1) { animation: vu-lo-1 3.2s ease-in-out infinite; }
.hp-meter-col:nth-child(2) .hp-meter-bars .hp-meter-bar:nth-child(2) { animation: vu-lo-2 2.8s ease-in-out infinite 0.2s; }
.hp-meter-col:nth-child(2) .hp-meter-bars .hp-meter-bar:nth-child(3) { animation: vu-lo-3 3.1s ease-in-out infinite 0.4s; }
.hp-meter-col:nth-child(2) .hp-meter-bars .hp-meter-bar:nth-child(4) { animation: vu-lo-4 2.6s ease-in-out infinite 0.1s; }

/* Input C — active mid */
.hp-meter-col:nth-child(3) .hp-meter-bars .hp-meter-bar:nth-child(1) { animation: vu-mid-1 2.4s ease-in-out infinite 0.05s; }
.hp-meter-col:nth-child(3) .hp-meter-bars .hp-meter-bar:nth-child(2) { animation: vu-mid-2 2.0s ease-in-out infinite 0.25s; }
.hp-meter-col:nth-child(3) .hp-meter-bars .hp-meter-bar:nth-child(3) { animation: vu-mid-3 2.2s ease-in-out infinite 0.4s; }
.hp-meter-col:nth-child(3) .hp-meter-bars .hp-meter-bar:nth-child(4) { animation: vu-mid-4 1.8s ease-in-out infinite 0.15s; }

.hp-status {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.hp-status--active {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.25);
}

.hp-status--standby {
    background: rgba(100,116,139,0.12);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ---- Config mockup ---- */
.hp-config-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.hp-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.hp-config-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.hp-config-select {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a5b4fc;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
}

.hp-config-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 4px;
    cursor: default;
}

/* ---- Discovery / Zero setup ---- */
.hp-discovery {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 0;
}

.hp-discovery__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.hp-discovery__inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 16px;
}

.hp-discovery__inner p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hp-discovery__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hp-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    min-width: 160px;
}

.hp-flow-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.hp-flow-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

.hp-flow-arrow {
    color: var(--muted);
    opacity: 0.4;
    padding: 0 8px;
}

.hp-flow-arrow svg {
    width: 32px;
    height: 16px;
}

/* ---- Pricing ---- */
.hp-pricing {
    padding: 120px 0;
    background: var(--bg);
}

.hp-pricing__header {
    text-align: center;
    margin-bottom: 52px;
}

.hp-pricing__header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 12px;
}

.hp-pricing__header p {
    color: var(--muted);
    font-size: 1rem;
}

.hp-pricing__card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.08), 0 40px 80px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.hp-pricing__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
}

.hp-pricing__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.hp-pricing__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.hp-pricing__seats {
    font-size: 0.8rem;
    color: var(--muted);
}

.hp-pricing__price {
    text-align: right;
    flex-shrink: 0;
}

.hp-price-amount {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
}

.hp-price-once {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.hp-pricing__divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.hp-pricing__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.hp-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.hp-pricing__features li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(34,197,94,0.15);
    border-radius: 50%;
    border: 1.5px solid rgba(34,197,94,0.35);
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6L5 8.5L9.5 3.5' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.hp-pricing__cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
}

.hp-pricing__note {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

/* ---- Final CTA ---- */
.hp-final-cta {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.hp-final-cta__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

@keyframes orb-4 {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.12); opacity: 0.9; }
}

.hp-orb--4 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(6,182,212,0.08) 50%, transparent 70%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(60px);
    animation: orb-4 6s ease-in-out infinite;
}

.hp-final-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hp-final-cta__content h2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.hp-final-cta__content > p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 40px;
}

/* ===========================
   Admin panel
   =========================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.admin-table th {
    padding: 8px 14px 10px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
    .hp-feature__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hp-feature--reverse .hp-feature__grid {
        padding: 48px 24px;
    }

    .hp-feature--reverse .hp-feature__visual {
        order: -1;
    }

    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: var(--border);
    }

    .hp-stat {
        background: var(--surface);
        padding: 28px 20px;
    }

    .hp-stat + .hp-stat {
        border-left: none;
    }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .portal-layout { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 20px; }

    .hp-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp-discovery__flow {
        flex-direction: column;
        align-items: center;
    }

    .hp-flow-arrow {
        transform: rotate(90deg);
    }

    .hp-flow-step {
        width: 100%;
        max-width: 240px;
    }

    .hp-hero__title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hp-meter-bars {
        height: 80px;
    }

    .hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(1) { animation-name: none; height: 65px; }
    .hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(2) { animation-name: none; height: 55px; }
    .hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(3) { animation-name: none; height: 70px; }
    .hp-meter-col:nth-child(1) .hp-meter-bars .hp-meter-bar:nth-child(4) { animation-name: none; height: 60px; }
}
