/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;

    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;

    --purple-400: #c084fc;
    --purple-500: #a855f7;

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;

    --red-400: #f87171;
    --red-500: #ef4444;

    --orange-400: #fb923c;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-850: #172033;
    --gray-900: #0f172a;
    --gray-950: #020617;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-950);
    color: var(--gray-300);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.2;
}

a {
    color: var(--emerald-400);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--emerald-500);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--amber-400);
}

/* === Animated Background === */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* === Navigation === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--emerald-500) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.125rem !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--emerald-600) !important;
}

.nav-version {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.75rem;
    margin-right: auto;
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-400);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-version::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--emerald-400);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.nav-version:hover {
    color: #fff;
    border-color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.18);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber-400);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: #fff;
}

.btn-secondary {
    background: var(--gray-800);
    color: var(--gray-200);
    border: 1px solid var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-700);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.hero-terminal {
    position: relative;
}

/* === Terminal === */
.terminal {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.25rem;
}

.terminal-body pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--gray-300);
    white-space: pre;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.terminal-sm .terminal-body {
    padding: 1rem;
}

.terminal-sm pre {
    font-size: 0.75rem;
    line-height: 1.6;
}

.t-green { color: var(--emerald-400); }
.t-cyan { color: #67e8f9; }
.t-yellow { color: var(--amber-400); }
.t-magenta { color: var(--purple-400); }
.t-dim { color: var(--gray-600); }
.t-orange { color: var(--orange-400); }

/* === Sections === */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber-400);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--amber-400);
    opacity: 0.5;
}

section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    scroll-margin-top: 5rem;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--gray-400);
    max-width: 600px;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.feature-icon-gold {
    background: rgba(251, 191, 36, 0.08);
    color: var(--amber-400);
}
.feature-icon-gold::before { background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); }

.feature-icon-purple {
    background: rgba(192, 132, 252, 0.08);
    color: var(--purple-400);
}
.feature-icon-purple::before { background: linear-gradient(90deg, var(--purple-400), var(--purple-500)); }

.feature-icon-green {
    background: rgba(52, 211, 153, 0.08);
    color: var(--emerald-400);
}
.feature-icon-green::before { background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600)); }

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Comparison Table === */
.comparison {
    padding: 6rem 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--gray-900);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    min-width: 640px;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--gray-300);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table th:first-child {
    color: var(--gray-500);
    font-weight: 500;
}

.comparison-table th.winner {
    color: var(--amber-400);
}

.comparison-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--gray-300);
    line-height: 1.5;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.feature-name {
    color: var(--gray-400) !important;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8125rem;
    min-width: 140px;
}

.detail {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.yes { color: var(--emerald-400); font-weight: 600; }
.no { color: var(--gray-500); }
.partial { color: var(--amber-400); }

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.comparison-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.comparison-cta-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.comparison-cta-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.comparison-cta-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--amber-400);
}

.comparison-cta-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Detection Rules Grid === */
.detection h2 {
    margin-bottom: 0.75rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.rule-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.rule-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rule-name {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #fff;
    font-weight: 600;
}

.rule-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.rule-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.rule-meta strong {
    color: var(--gray-300);
    font-weight: 600;
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-sans);
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red-400);
}

.badge-orange {
    background: rgba(251, 146, 60, 0.12);
    color: var(--orange-400);
}

.badge-purple {
    background: rgba(192, 132, 252, 0.12);
    color: var(--purple-400);
}

.badge-blue {
    background: rgba(96, 165, 250, 0.12);
    color: var(--blue-400);
}

.badge-green {
    background: rgba(52, 211, 153, 0.12);
    color: var(--emerald-400);
}

/* === Packs Showcase === */
.packs-showcase {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 3rem;
}

.packs-showcase h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.packs-showcase .section-subtitle {
    margin-bottom: 2rem;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.pack-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
    text-align: center;
}

.pack-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.pack-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin: 0 auto 0.75rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
}

.pack-icon-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.pack-icon-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.pack-icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pack-icon-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.pack-icon-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.pack-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pack-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber-400);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.pack-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* === How It Works Flow === */
.flow {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
}

.flow-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amber-400);
    margin-bottom: 0.75rem;
}

.flow-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.flow-arrow {
    color: var(--gray-600);
    flex-shrink: 0;
    align-self: center;
}

/* === Fleet Cards === */
.fleet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.fleet-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.25s;
}

.fleet-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.fleet-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(16, 185, 129, 0.08);
    color: var(--emerald-400);
    margin-bottom: 1rem;
}

.fleet-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.fleet-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Get Started === */
.install-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.install-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.2s;
}

.install-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.install-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--emerald-400);
}

.install-card-header h3 {
    font-size: 1.125rem;
    color: #fff;
}

.install-card .terminal-sm {
    margin: 0;
}

.install-requirements {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.install-requirements h3 {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.req-item svg {
    color: var(--emerald-400);
    flex-shrink: 0;
}

/* === Footer === */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gray-300);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.footer-copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    color: var(--gray-300);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 6rem;
        min-height: auto;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .comparison-cta {
        grid-template-columns: 1fr;
    }

    .install-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-cta {
        margin: 0.5rem 2rem !important;
        text-align: center !important;
        border-radius: var(--radius) !important;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding-top: 6rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        max-width: none;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .fleet-cards {
        grid-template-columns: 1fr;
    }

    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    section {
        padding: 2.5rem 0.75rem;
    }
    .page-section {
        padding: 2.5rem 0.75rem;
    }

    section h2 {
        font-size: 1.375rem;
    }

    .section-subtitle {
        max-width: none;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 0.875rem;
    }

    .packs-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.7rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.5rem;
    }

    .comparison-table-wrapper {
        margin: 0 -0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .feature-card,
    .feature-card-lg,
    .check-card,
    .metric-card,
    .dash-card,
    .intel-card,
    .fleet-block-card,
    .alert-rule-card,
    .sigma-card,
    .sse-card,
    .module-card-home,
    .rule-card,
    .pack-card,
    .install-card,
    .terminal { padding: 1rem; }
}

/* === Page-specific hero variants === */
.hero-page {
    min-height: 85vh;
    padding-top: 7rem;
    gap: 3rem;
}

.hero-badge-purple {
    color: var(--purple-400);
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.15);
}

.hero-badge-yellow {
    color: var(--amber-400);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.15);
}

.hero-badge-green {
    color: var(--emerald-400);
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.15);
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--purple-400), #a855f7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-yellow {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--emerald-400), #059669, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-breadcrumb {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-left: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* === Page section (sub-pages) === */
.page-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.page-section h2 {
    margin-bottom: 0.75rem;
}

.page-section .section-subtitle {
    margin-bottom: 3rem;
}

/* === Feature Grid 2 === */
.feature-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* === Feature Grid 3 === */
.feature-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

/* === Feature Card Large === */
.feature-card-lg {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.feature-card-lg:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.feature-card-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--amber-400);
    margin-bottom: 0.75rem;
}

.fc-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.fc-example {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-card-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.feature-card-list li {
    font-size: 0.8125rem;
    color: var(--gray-400);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.feature-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--emerald-400);
    font-weight: 700;
}

/* === Feature Highlight === */
.feature-highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.feature-highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(251, 191, 36, 0.08);
    color: var(--amber-400);
    flex-shrink: 0;
}

.feature-highlight h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.feature-highlight p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Feed Icons === */
.feed-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.fi-firehol { background: linear-gradient(135deg, #ef4444, #dc2626); }
.fi-spamhaus { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.fi-abuse { background: linear-gradient(135deg, #a855f7, #7c3aed); }

/* === Subsection === */
.subsection {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.subsection h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* === Compact Flow === */
.flow-compact .flow-step {
    padding: 1.25rem;
    min-width: 160px;
}

.flow-compact .flow-step h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

/* === Fleet Block Grid === */
.fleet-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.fleet-block-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.fleet-block-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.fleet-block-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(192, 132, 252, 0.08);
    color: var(--purple-400);
    margin-bottom: 0.75rem;
}

.fleet-block-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.fleet-block-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Auditd Intro === */
.auditd-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* === Sigma Grid === */
.sigma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.sigma-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.sigma-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.sigma-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.08);
    color: var(--red-400);
    margin-bottom: 0.75rem;
}

.sigma-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.sigma-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === Custom Rule Showcase === */
.custom-rule-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.custom-rule-features {
    display: grid;
    gap: 1rem;
}

.crule {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.crule h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--amber-400);
}

.crule p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === Architecture Cards === */
.arch-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arch-card {
    width: 100%;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border-left: 3px solid var(--gray-500);
}

.arch-card-process {
    border-left-color: var(--amber-400);
}

.arch-card-output {
    border-left-color: var(--emerald-400);
}

.arch-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.arch-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arch-card-items span {
    font-size: 0.8125rem;
    color: var(--gray-300);
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.arch-arrow-down {
    color: var(--gray-600);
}

/* === Metric Grid === */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.metric-chart {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.metric-chart-cpu { background: rgba(251, 191, 36, 0.08); }
.metric-chart-mem { background: rgba(52, 211, 153, 0.08); }
.metric-chart-disk { background: rgba(192, 132, 252, 0.08); }
.metric-chart-net { background: rgba(96, 165, 250, 0.08); }
.metric-chart-proc { background: rgba(251, 146, 60, 0.08); }
.metric-chart-psi { background: rgba(239, 68, 68, 0.08); }
.metric-chart-load { background: rgba(251, 191, 36, 0.08); }
.metric-chart-swap { background: rgba(52, 211, 153, 0.08); }

.metric-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.metric-source {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.metric-card > p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.metric-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.ml {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: var(--gray-500);
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.metric-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-extra-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.metric-extra-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.metric-extra-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === Synthetic Checks Grid === */
.synthetic-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.check-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.check-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.check-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.check-icon-http { background: rgba(52, 211, 153, 0.08); color: var(--emerald-400); }
.check-icon-tcp { background: rgba(96, 165, 250, 0.08); color: var(--blue-400); }
.check-icon-icmp { background: rgba(251, 146, 60, 0.08); color: var(--orange-400); }
.check-icon-dns { background: rgba(192, 132, 252, 0.08); color: var(--purple-400); }
.check-icon-ssl { background: rgba(251, 191, 36, 0.08); color: var(--amber-400); }

.check-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.125rem;
}

.check-protocol {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.check-card > p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.check-details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.check-details li {
    font-size: 0.6875rem;
    color: var(--gray-500);
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* === Mode Labels === */
.mode-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.mode-label-system {
    background: rgba(52, 211, 153, 0.1);
    color: var(--emerald-400);
}

.mode-label-worker {
    background: rgba(251, 191, 36, 0.1);
    color: var(--amber-400);
}

/* === Terminal Example === */
.terminal-example {
    margin-top: 1.5rem;
}

/* === Dashboard Grid === */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.dash-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(16, 185, 129, 0.08);
    color: var(--emerald-400);
    margin-bottom: 0.75rem;
}

.dash-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.dash-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Pipeline === */
.pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 2.5rem;
}

.pipeline-step {
    flex: 1;
    min-width: 200px;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.pipeline-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-400);
    margin-bottom: 0.5rem;
}

.pipeline-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pipeline-step p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.pipeline-arrow {
    color: var(--gray-600);
    flex-shrink: 0;
    align-self: center;
}

/* === Three SSE === */
.three-sse {
    margin-top: 2rem;
}

.three-sse h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.sse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.sse-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.sse-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.sse-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin: 0 auto 0.75rem;
}

.sse-icon-events { background: rgba(52, 211, 153, 0.08); color: var(--emerald-400); }
.sse-icon-fleet { background: rgba(192, 132, 252, 0.08); color: var(--purple-400); }
.sse-icon-config { background: rgba(251, 191, 36, 0.08); color: var(--amber-400); }

.sse-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.sse-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* === Alert Rule Grid === */
.alert-rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.alert-rule-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.alert-rule-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.alert-rule-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.alert-rule-header h4 {
    font-size: 0.9375rem;
    margin: 0;
}

.alert-rule-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.alert-rule-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

/* === Channel Grid === */
.channel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.channel-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--gray-300);
    transition: border-color 0.2s;
}

.channel-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.channel-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

/* === Intel Grid === */
.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.intel-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.intel-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.intel-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(192, 132, 252, 0.08);
    color: var(--purple-400);
    margin-bottom: 0.75rem;
}

.intel-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.intel-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* === Enrollment Flow === */
.enrollment-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.enroll-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.enroll-step:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.enroll-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-500);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.enroll-step h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.enroll-step p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.enroll-modes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.enroll-mode {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.enroll-mode-name {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--emerald-400);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.enroll-mode p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === Tech Grid === */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tech-card {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.tech-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--emerald-400);
}

.tech-card p {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === Get Started Section === */
.get-started-section {
    margin-bottom: 0;
}

/* === Modules Grid Home === */
.modules-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.module-card-home {
    display: flex;
    flex-direction: column;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.module-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.25s;
}

.module-card-monitor::before { background: linear-gradient(90deg, var(--purple-400), #a855f7); }
.module-card-agent::before { background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); }
.module-card-nest::before { background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600)); }

.module-card-home:hover::before {
    opacity: 1;
}

.module-card-home:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.module-card-home-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.module-card-monitor .module-card-home-icon {
    background: rgba(192, 132, 252, 0.08);
    color: var(--purple-400);
}

.module-card-agent .module-card-home-icon {
    background: rgba(251, 191, 36, 0.08);
    color: var(--amber-400);
}

.module-card-nest .module-card-home-icon {
    background: rgba(52, 211, 153, 0.08);
    color: var(--emerald-400);
}

.module-card-home h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.module-card-home-tag {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.module-card-monitor .module-card-home-tag { color: var(--purple-400); }
.module-card-agent .module-card-home-tag { color: var(--amber-400); }
.module-card-nest .module-card-home-tag { color: var(--emerald-400); }

.module-card-home > p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.module-card-home-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.module-card-home-stats span {
    font-size: 0.6875rem;
    color: var(--gray-500);
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-family: var(--font-mono);
}

.module-card-home-link {
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.module-card-monitor .module-card-home-link { color: var(--purple-400); }
.module-card-agent .module-card-home-link { color: var(--amber-400); }
.module-card-nest .module-card-home-link { color: var(--emerald-400); }

.module-card-monitor:hover .module-card-home-link { color: #d8b4fe; }
.module-card-agent:hover .module-card-home-link { color: var(--amber-300); }
.module-card-nest:hover .module-card-home-link { color: #6ee7b7; }

/* === T-purple for monitor terminal === */
.t-purple { color: var(--purple-400); }

/* === Responsive additions === */
@media (max-width: 1024px) {
    .feature-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .fleet-block-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sse-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .enroll-modes {
        grid-template-columns: 1fr 1fr;
    }

    .modules-grid-home {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .feature-grid-2 {
        grid-template-columns: 1fr;
    }

    .custom-rule-showcase {
        grid-template-columns: 1fr;
    }

    .metric-extra {
        grid-template-columns: 1fr;
    }

    .hero-page {
        min-height: auto;
        padding-top: 6rem;
    }
}

@media (max-width: 768px) {
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .fleet-block-grid {
        grid-template-columns: 1fr;
    }

    .pipeline {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .enroll-modes {
        grid-template-columns: 1fr;
    }

    .enroll-step {
        flex-direction: column;
    }

    .page-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 420px) {
    html { font-size: 15px; }

    .hero {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero h1 { font-size: 1.5rem; }
    section h2 { font-size: 1.25rem; }
    .hero-subtitle { font-size: 0.8125rem; }

    section { padding: 2rem 0.5rem; }
    .page-section { padding: 2rem 0.5rem; }

    .hero-stats { gap: 0.75rem; }
    .stat-card { padding: 0.75rem; }
    .stat-value { font-size: 0.875rem; }

    .feature-card,
    .feature-card-lg,
    .check-card,
    .metric-card,
    .dash-card,
    .intel-card,
    .fleet-block-card,
    .alert-rule-card,
    .sigma-card,
    .sse-card,
    .module-card-home,
    .rule-card,
    .pack-card,
    .install-card { padding: 0.875rem; }

    .terminal { padding: 0.875rem; }
    .terminal-body { padding: 0.75rem; }
    .terminal-body pre { font-size: 0.6875rem; }

    .nav-links a { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }

    .section-subtitle { max-width: none; }

    .comparison-table { font-size: 0.6875rem; min-width: 480px; }
    .comparison-table th,
    .comparison-table td { padding: 0.5rem 0.625rem; }
    .comparison-table-wrapper { margin: 0 -0.75rem; border-radius: 0; border-left: none; border-right: none; }

    .hero-page { padding-top: 5rem; }
    .feature-highlight { flex-direction: column; }

    .fc-subtitle { font-size: 0.75rem; }
    .feature-card-list li { font-size: 0.75rem; }

    .pipeline-step { min-width: 0; padding: 1rem; }

    .page-section h2 { font-size: 1.25rem; }

    .dash-icon,
    .intel-card-icon,
    .metric-chart,
    .check-icon,
    .feature-highlight-icon { width: 40px; height: 40px; }

    .hero-actions .btn { font-size: 0.8125rem; padding: 0.625rem 1.125rem; }
}
