/* ============================================================
   SSM Manager Landing Page — Design System
   ============================================================ */

:root {
    --brand:        #1a2332;
    --brand-dark:   #0d1421;
    --accent:       #FF9900;
    --accent-dark:  #e68a00;
    --surface:      #161b22;
    --surface2:     #1e2a3a;
    --text-light:   #e2e8f0;
    --text-muted:   #8b949e;
    --light-bg:     #f8fafc;
    --light-surface:#ffffff;
    --border-dark:  rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.07);
    --font:         'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--light-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

/* ── Utilities ── */
.text-accent { color: var(--accent) !important; }
.btn-accent {
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,153,0,0.35);
}
code {
    background: rgba(255,153,0,0.12);
    color: var(--accent);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
    background: transparent;
    padding: 1.2rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}
.site-nav.scrolled {
    background: rgba(13, 20, 33, 0.97) !important;
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.brand-icon.sm {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 6px;
}
.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.site-nav .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1421 40%, #1a2332 100%);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,153,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,153,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,153,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,153,0,0.12);
    border: 1px solid rgba(255,153,0,0.3);
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 520px;
    margin-top: 1.25rem;
}
.hero-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.hero-scroll-hint a {
    color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
}
.hero-scroll-hint a:hover { color: var(--accent); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── App Mockup ── */
.app-mockup {
    background: #0d1421;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,153,0,0.1);
    font-size: 0.78rem;
}
.mockup-bar {
    background: #161b22;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mockup-title {
    margin-left: auto;
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    font-family: var(--font-mono);
}
.mockup-header {
    background: #1a2332;
    border-bottom: 3px solid var(--accent);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.mockup-brand {
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}
.mockup-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.72rem;
}
.mockup-btn-connect {
    background: rgba(40,200,64,0.2);
    color: #4ade80;
    border: 1px solid rgba(40,200,64,0.3);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}
.mockup-body { padding: 10px 12px; }
.mockup-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.mockup-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.7;
}
.mockup-badge.total   { background: #166534; color: #86efac; }
.mockup-badge.linux   { background: #1f2937; color: #d1d5db; }
.mockup-badge.windows { background: #1e3a5f; color: #93c5fd; }
.mockup-badge.ssm     { background: #4a1d96; color: #c4b5fd; }
.mockup-search {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.mockup-instances { display: flex; flex-direction: column; gap: 3px; }
.mockup-instance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px 8px;
    flex-wrap: wrap;
}
.mockup-instance.active-inst {
    border-left: 3px solid #212529;
    border-color: rgba(255,255,255,0.1);
    border-left-color: #212529;
}
.mockup-chev {
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    flex-shrink: 0;
}
.mockup-inst-name {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.73rem;
}
.mockup-conn-ind { color: var(--accent); font-size: 0.7rem; }
.mockup-action {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: default;
}
.mockup-action.ssh  { background: #212529; color: #fff; }
.mockup-action.rdp  { background: #1e40af; color: #fff; }
.mockup-action.port { background: #5b21b6; color: #fff; }
.mockup-action.file { background: #166534; color: #fff; }
.mockup-action.info { background: #0e7490; color: #fff; }

.mockup-expand {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: 18px;
}
.mockup-expand-id {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}
.mockup-tag {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 600;
}
.mockup-tag.green  { background: rgba(22,101,52,0.6); color: #86efac; }
.mockup-tag.yellow { background: rgba(120,80,0,0.6); color: #fcd34d; }
.mockup-tag.blue   { background: rgba(30,64,175,0.5); color: #93c5fd; }
.mockup-tag.purple { background: rgba(91,33,182,0.5); color: #c4b5fd; }

.mockup-conn-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.mockup-conn-badge {
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
}
.mockup-conn-badge.ssh-badge { background: #212529; color: #fff; }
.mockup-conn-time {
    color: rgba(255,255,255,0.4);
    font-size: 0.62rem;
}
.mockup-term {
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 0.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    margin-left: auto;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--brand);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-light  { background: var(--light-bg); padding: 90px 0; }
.section-dark   { background: var(--brand-dark); padding: 90px 0; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255,153,0,0.1);
    border: 1px solid rgba(255,153,0,0.25);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.section-eyebrow.light {
    background: rgba(255,153,0,0.15);
    border-color: rgba(255,153,0,0.35);
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-sub {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--icon-color, var(--accent)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }

.feature-card-accent {
    background: linear-gradient(135deg, #fff 60%, rgba(22,163,74,0.04));
    border-color: rgba(22,163,74,0.2);
}
.feature-card-accent-win {
    background: linear-gradient(135deg, #fff 60%, rgba(0,120,212,0.04));
    border-color: rgba(0,120,212,0.2);
}
.feature-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: #16a34a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.feature-badge.badge-blue {
    background: #0078d4;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--icon-color, var(--accent)) 12%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--icon-color, var(--accent));
    margin-bottom: 1.25rem;
}
.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.feature-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.feature-tags span {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}
.step-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,153,0,0.25);
    transform: translateY(-4px);
}
.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,153,0,0.15);
    line-height: 1;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}
.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,153,0,0.12);
    border: 1px solid rgba(255,153,0,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin: 0 auto 1.25rem;
}
.step-card h4 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}
.step-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}
.step-connector { display: none; }
@media (min-width: 768px) {
    .step-connector {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,153,0,0.3);
        font-size: 1.5rem;
        padding-top: 2rem;
        width: 40px;
    }
    .step-connector::before { content: '→'; }
}

/* ============================================================
   SSM ARCHITECTURE INFOGRAPHIC
   ============================================================ */
.arch-flow-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}

.arch-node {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 0 0 200px;
    max-width: 220px;
    transition: border-color 0.3s, background 0.3s;
}
.arch-node:hover {
    background: rgba(255,255,255,0.07);
}
.arch-node-client { border-top: 3px solid #38bdf8; }
.arch-node-aws    { border-top: 3px solid var(--accent); }
.arch-node-ec2    { border-top: 3px solid #4ade80; }

.arch-node-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.arch-node-client .arch-node-icon { background: rgba(56,189,248,0.15); color: #38bdf8; }
.arch-node-aws    .arch-node-icon { background: rgba(255,153,0,0.15);  color: var(--accent); }
.arch-node-ec2    .arch-node-icon { background: rgba(74,222,128,0.15); color: #4ade80; }

.arch-node-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.arch-node-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.75rem;
}
.arch-node-detail {
    display: inline-block;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-mono);
}

.arch-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 60px;
    max-width: 110px;
    padding: 0 4px;
}
.arch-conn-arrow {
    font-size: 1.4rem;
    color: rgba(255,153,0,0.5);
    transition: color 0.2s;
    margin-bottom: 6px;
}
.arch-conn-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
    font-family: var(--font-mono);
    line-height: 1.4;
}

/* Benefits grid */
.arch-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.arch-benefit {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    transition: background 0.2s, border-color 0.2s;
}
.arch-benefit:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,153,0,0.2);
}
.arch-benefit-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255,153,0,0.12);
    color: var(--accent);
}
.arch-benefit-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.arch-benefit-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    margin: 0;
}

/* Audit callout banner */
.arch-audit-banner {
    margin-top: 2.5rem;
    background: rgba(255,153,0,0.06);
    border: 1px solid rgba(255,153,0,0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.arch-audit-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}
.arch-audit-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    flex: 1;
}
.arch-audit-text strong { color: var(--accent); }

/* ============================================================
   CONNECTION TYPE CARDS
   ============================================================ */
.conn-card {
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.conn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.conn-card-icon {
    padding: 1.5rem 2rem 0;
    font-size: 2rem;
}
.conn-ssh  .conn-card-icon { color: #212529; }
.conn-rdp  .conn-card-icon { color: #0078d4; }
.conn-port .conn-card-icon { color: #7c3aed; }
.conn-file .conn-card-icon { color: #16a34a; }

.conn-ssh  { background: linear-gradient(160deg, #f8fafc 60%, rgba(33,37,41,0.04)); }
.conn-rdp  { background: linear-gradient(160deg, #f8fafc 60%, rgba(0,120,212,0.04)); }
.conn-port { background: linear-gradient(160deg, #f8fafc 60%, rgba(124,58,237,0.04)); }
.conn-file { background: linear-gradient(160deg, #f8fafc 60%, rgba(22,163,74,0.04)); }

.conn-card-body { padding: 1.5rem 2rem 2rem; flex: 1; }
.conn-card-body h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.conn-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.conn-card-body p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.conn-detail {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

/* ============================================================
   ACTIVE CONNECTION MONITOR CARD
   ============================================================ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-list li:last-child { border: none; }

.conn-monitor-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
}
.cm-header {
    background: rgba(255,255,255,0.06);
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 8px;
    flex-wrap: wrap;
}
.cm-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cm-badge.ssh   { background: #212529; color: #fff; }
.cm-badge.rdp   { background: #1e40af; color: #fff; }
.cm-badge.port  { background: #5b21b6; color: #fff; }
.cm-inst {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
}
.cm-meta {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}
.cm-port {
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    font-family: var(--font-mono);
}
.cm-link {
    color: var(--accent);
    font-size: 0.72rem;
    text-decoration: none;
}
.cm-link:hover { text-decoration: underline; }
.cm-kill {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    flex-shrink: 0;
    margin-left: auto;
}
.cm-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.02);
}
.cm-count {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   REQUIREMENTS
   ============================================================ */
.req-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}
.req-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.req-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,153,0,0.1);
    border: 1px solid rgba(255,153,0,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 1.25rem;
}
.req-card h5 {
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.req-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.req-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.req-link:hover { text-decoration: underline; }

.optional-note {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(255,153,0,0.25);
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    color: #475569;
    text-align: left;
    max-width: 700px;
}

/* ============================================================
   CONTRIBUTING / OPEN SOURCE
   ============================================================ */
.section-contribute {
    background: var(--light-bg);
    padding: 90px 0;
}
.contrib-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contrib-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: rgba(255,153,0,0.25);
}
.contrib-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,153,0,0.1);
    border: 1px solid rgba(255,153,0,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.contrib-card h5 {
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}
.contrib-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.65;
    flex: 1;
}
.contrib-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s;
    min-height: 44px;
}
.contrib-btn:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.3);
}
.contrib-note {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.contrib-note-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.contrib-note-text strong { color: #1e293b; }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.section-cta {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a2332 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255,153,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}
.cta-sub {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}
.cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #070d14;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.footer-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover { color: var(--accent); }
.footer-license {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (< 992px) ── */
@media (max-width: 991px) {
    .app-mockup { margin-top: 2rem; }
    .arch-benefits { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
    .hero-section { padding: 100px 0 60px; text-align: center; }
    .hero-subtitle { margin: 1rem auto 0; }
    .hero-meta { justify-content: center; }
    .d-flex.gap-3.mt-5 { justify-content: center; }
    .stats-bar { text-align: center; }
    .section-light,
    .section-dark,
    .section-cta,
    .section-contribute { padding: 60px 0; }
    .feature-list li { font-size: 0.82rem; }

    /* Architecture: vertical flow on mobile */
    .arch-flow-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .arch-node {
        flex: none;
        width: 100%;
        max-width: 320px;
    }
    .arch-connector {
        max-width: 80px;
        padding: 4px 0;
    }
    .arch-conn-arrow {
        transform: rotate(90deg);
    }
    .arch-benefits { grid-template-columns: 1fr; }

    /* Contribute note: stack vertically */
    .contrib-note {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Small mobile (< 576px) ── */
@media (max-width: 575px) {
    .hero-title { font-size: 2rem; }

    /* Simplify app mockup on very small screens */
    .app-mockup .mockup-expand,
    .app-mockup .mockup-instance:nth-child(n+3) {
        display: none;
    }

    .btn-accent.btn-lg, .btn-outline-light.btn-lg {
        width: 100%;
        justify-content: center;
    }
    .d-flex.gap-3.mt-5 {
        flex-direction: column;
    }

    .arch-benefits { gap: 0.75rem; }
    .arch-benefit { padding: 1rem; }

    .cm-item { flex-direction: column; align-items: flex-start; }
    .cm-kill { margin-left: 0; }

    .optional-note { text-align: center; }

    .contrib-note {
        padding: 1.25rem;
    }
}

/* ── Touch target minimum size ── */
@media (max-width: 767px) {
    .btn, .nav-link, .req-link, .contrib-btn, .cm-kill {
        min-height: 44px;
    }
    .site-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
