:root {
    /* -- PALETTE -- */
    --bg-body: #050505;       /* Almost pure black */
    --bg-surface: #0f0f0f;    /* Slightly lighter for cards */
    --bg-surface-2: #1a1a1a;  /* Hover states */
    
    --border-main: #333;      /* Subtle borders */
    --border-highlight: #555; /* Hover borders */

    --primary: #00d1b2;       /* The "Sustenance" Teal */
    --primary-dim: rgba(0, 209, 178, 0.15);
    
    --text-main: #ededed;
    --text-muted: #888;
    
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    --radius: 6px;            /* Slight rounding, not pill-shaped */
    --max-width: 1200px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* Technical Grid Background Pattern */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em; /* Tighter tracking looks more modern */
    line-height: 1.2;
    color: #fff;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.2rem; font-family: var(--font-mono); letter-spacing: 0; }

p { color: var(--text-muted); font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: 0.2s; }

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

.text-accent { color: var(--primary); }
.mono { font-family: var(--font-mono); }

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-main);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 32px;
    color: var(--text-muted);
}

.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--primary); }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-dim);
}

.btn-primary:hover {
    background: #00e6c3;
    transform: translateY(-1px);
    box-shadow: 0 0 25px var(--primary-dim);
}

.btn-small {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-small:hover {
    border-color: var(--text-muted);
    background: var(--bg-surface-2);
}

/* --- HERO SECTION --- */
.hero {
    padding: 140px 0 100px;
    position: relative;
    border-bottom: 1px solid var(--border-main);
    background: radial-gradient(circle at center, rgba(0, 209, 178, 0.05) 0%, transparent 70%);
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 209, 178, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #a0a0a0;
}

/* --- CARDS & GRID --- */
.section { padding: 100px 0; }
.bg-darker { background: #080808; border-top: 1px solid var(--border-main); border-bottom: 1px solid var(--border-main); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.2s;
}

.feature-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0.9;
}

/* --- PRODUCT STACK (The Manifest Suite) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    padding: 32px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Active Product Styling */
.product-card.active {
    border: 1px solid var(--primary);
    background: linear-gradient(180deg, rgba(0, 209, 178, 0.03) 0%, var(--bg-surface) 100%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.product-card.active:hover {
    box-shadow: 0 10px 40px rgba(0, 209, 178, 0.1);
    transform: translateY(-4px);
}

/* Dev Product Styling */
.product-card.dev {
    opacity: 0.7;
    border-style: dashed;
}

.product-card.dev:hover {
    opacity: 1;
    border-color: var(--border-highlight);
    background: var(--bg-surface-2);
}

.card-status {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.status-live {
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 209, 178, 0.2);
}

.status-dev {
    color: var(--text-muted);
    background: #222;
    border: 1px solid #333;
}

.card-icon { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
.active .card-icon { color: var(--primary); }

.card-meta {
    margin-top: auto; /* Pushes to bottom */
    margin-bottom: 24px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.card-meta li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-meta i { color: var(--primary); font-size: 0.8em; }

/* Progress Bar */
.progress-bar {
    height: 3px;
    background: #222;
    width: 100%;
    margin: 16px 0 8px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .fill { height: 100%; background: #444; }

/* --- BUNDLE SECTION --- */
.bundle-box {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid var(--border-main);
    padding: 80px 40px;
    border-radius: var(--radius);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.inline-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 40px auto 0;
}

.inline-form input {
    flex: 1;
    background: #000;
    border: 1px solid var(--border-main);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.inline-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-dim);
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-main);
    background: #020202;
    font-size: 0.9rem;
}

.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-right a { margin-left: 24px; color: var(--text-muted); }
.footer-right a:hover { color: var(--text-main); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 100px 0 60px; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-text { grid-column: 1 / -1; padding-right: 0; }
    .hero-image { grid-column: 1 / -1; margin-top: 40px; }
    .inline-form { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-right a { margin: 0 10px; }
    .product-grid { grid-template-columns: 1fr; }
}