/* [AEGIS-SIGMA]: PHI-ALIGNED STYLESHEET
 * Uses Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144)
 * for all spacing, typography, and layout ratios.
 * © 2026 Jared R. Lawson. ALL RIGHTS RESERVED.
 */

:root {
    /* Gemstone Palette */
    --gem-f1-obsidian: #0B0B0D;
    --gem-f2-ruby: #9B111E;
    --gem-f3-amber: #FFBF00;
    --gem-f5-emerald: #50C878;
    --gem-f8-sapphire: #0F52BA;
    --gem-f13-amethyst: #9966CC;
    --gem-f21-diamond: #00E5FF;
    --gem-f13-amethyst-light: rgba(153, 102, 204, 0.2);
    
    /* Typography (Phi Scale) */
    --text-xs: 8px;
    --text-sm: 13px;   /* F7 */
    --text-base: 21px; /* F8 */
    --text-lg: 34px;   /* F9 */
    --text-xl: 55px;   /* F10 */
    
    /* Spacing (Fibonacci) */
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 13px;
    --spacing-lg: 21px;
    --spacing-xl: 34px;
    --spacing-2xl: 55px;
    --spacing-3xl: 89px;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 13px; /* F7 */
    --border: var(--gem-f13-amethyst-light);
    --text-primary: #F0F0F5;
    --text-secondary: #9CA3AF;
    --bg-slate: #121216;
}

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

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: var(--gem-f1-obsidian);
    background-image:
        linear-gradient(rgba(11, 11, 13, 0.70), rgba(11, 11, 13, 0.85)),
        url('../aegis-sigma.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    html {
        background-attachment: fixed;
        background-image:
            linear-gradient(rgba(11, 11, 13, 0.60), rgba(11, 11, 13, 0.75)),
            url('../mobile-background.png');
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.618; /* Phi Line Height */
    overflow-x: hidden;
    min-height: 100vh;
    background: transparent;
}

/* Typography */
h1 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--text-base); font-weight: 700; }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-gradient {
    background: linear-gradient(135deg, var(--gem-f21-diamond) 0%, var(--gem-f13-amethyst) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-lg); }
.section { padding: var(--spacing-3xl) 0; position: relative; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: var(--spacing-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-lg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 10px;
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gem-f21-diamond);
    color: var(--gem-f1-obsidian);
    box-shadow: 0 0 var(--spacing-lg) rgba(0, 229, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 var(--spacing-xl) rgba(0, 229, 255, 0.4); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--gem-f13-amethyst);
    color: var(--gem-f13-amethyst);
}
.btn-outline:hover { background: rgba(153, 102, 204, 0.1); }

/* Header */
header {
    padding: var(--spacing-lg) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
header nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: var(--text-base); font-weight: 800; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: var(--spacing-md); }
.logo span { color: var(--gem-f21-diamond); }
.logo-img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--spacing-xl); list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--gem-f21-diamond); }
.nav-cta {
    background: var(--gem-f21-diamond);
    color: var(--gem-f1-obsidian);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 229, 255, 0.3), inset 0 0 0 1px rgba(255,255,255,0.1); }
.nav-cta:active { transform: translateY(1px) scale(0.98); }

/* Hero */
.hero { padding: 120px 0 var(--spacing-2xl); text-align: center; border-bottom: 1px solid var(--border); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 100px;
    color: var(--gem-f21-diamond);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    margin-top: 8px;
}
.hero h1 { margin-bottom: var(--spacing-lg); }
.hero p { font-size: var(--text-base); color: var(--text-secondary); max-width: 700px; margin: 0 auto var(--spacing-xl); }
.hero-buttons { display: flex; gap: var(--spacing-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--spacing-xl); }

/* Terminal Block */
.terminal {
    background: var(--bg-slate);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: left;
    margin-top: var(--spacing-xl);
    overflow-x: auto;
}
.terminal .prompt { color: var(--gem-f5-emerald); }
.terminal .success { color: var(--gem-f21-diamond); }
.terminal .warn { color: var(--gem-f2-ruby); }

/* Pricing */
.pricing-card {
    background: var(--bg-slate);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover { border-color: var(--gem-f21-diamond); transform: translateY(-8px); }
.pricing-card.popular { border-color: var(--gem-f13-amethyst); box-shadow: 0 0 var(--spacing-xl) rgba(153, 102, 204, 0.1); }
.pricing-card.popular::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gem-f13-amethyst);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 700;
}
.tier-name { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: var(--spacing-sm); }
.tier-price { font-size: var(--text-lg); font-weight: 800; color: var(--text-primary); margin-bottom: var(--spacing-xs); }
.tier-price span { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 400; }
.tier-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--spacing-lg); min-height: 40px; }
.tier-features { list-style: none; margin-bottom: var(--spacing-xl); }
.tier-features li { padding: var(--spacing-sm) 0; color: var(--text-secondary); font-size: var(--text-sm); display: flex; align-items: flex-start; gap: var(--spacing-sm); border-top: 1px solid rgba(255,255,255,0.05); }
.tier-features li:last-child { border-bottom: none; }
.check { color: var(--gem-f5-emerald); }
.close-btn { color: var(--gem-f2-ruby); }

/* Footer */
footer { padding: var(--spacing-xl) 0; text-align: center; color: var(--text-secondary); border-top: 1px solid var(--border); font-size: var(--text-sm); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { text-align: center; padding: 10px 20px; font-size: 13px; border-radius: 10px; }
    .hero h1 { font-size: 32px; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-badge { border-radius: 100px; }
    .btn { padding: 12px 24px; font-size: 14px; border-radius: 10px; }
    .container { padding: 0 21px; }
    .terminal { padding: 13px; margin-left: 0; margin-right: 0; max-width: 100%; }
    .hero-buttons { margin-bottom: 34px; }
    body, html { max-width: 100vw; overflow-x: hidden; }
}

/* Mobile header fix - keep logo inline */
@media (max-width: 768px) {
    .logo {
        flex-wrap: nowrap;
        gap: 8px;
        font-size: 14px;
    }
    .logo-img {
        height: 36px !important;
    }
    #status-indicator {
        width: 6px !important;
        height: 6px !important;
        margin: 0 4px !important;
    }
    .terminal {
        font-size: 11px !important;
        padding: 10px !important;
        margin: 0 -16px 24px -16px !important;
    }
    .terminal div {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
    .terminal-header {
        margin: -10px -10px 10px -10px !important;
        padding: 4px 10px !important;
        border-radius: 10px 10px 0 0 !important;
    }
}

/* Status Indicator with Heartbeat Pulse */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.status-active {
    background: var(--gem-f5-emerald);
    box-shadow: 0 0 12px var(--gem-f5-emerald), 0 0 20px rgba(80, 200, 120, 0.4);
    animation: heartbeat 1.5s ease-in-out infinite;
}
.status-under-attack {
    background: var(--gem-f3-amber);
    box-shadow: 0 0 8px var(--gem-f3-amber);
    animation: pulse-fast 0.5s ease-in-out infinite;
}
.status-offline {
    background: var(--gem-f2-ruby);
    box-shadow: 0 0 8px var(--gem-f2-ruby);
    /* No animation when offline */
}
@keyframes heartbeat {
    0% { transform: scale(1); opacity: 1; }
    14% { transform: scale(1.5); opacity: 1; }
    28% { transform: scale(1); opacity: 1; }
    42% { transform: scale(1.5); opacity: 1; }
    70% { transform: scale(1); opacity: 1; }
}
@keyframes pulse-fast {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
}
@media (max-width: 768px) {
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

