/* Variables */
:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --accent: #38bdf8;
    --border: #334155;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Top Bar */
.system-status {
    background: #020617;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    padding: 8px 0;
}

.status-flex {
    display: flex;
    gap: 20px;
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--bb-success);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}


/* Hero */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.brand-mark {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 4rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.studio-name {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

/*
.tagline { 
    font-family: var(--mono); 
    color: var(--accent); 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    
}*/

.tagline {
    color: var(--accent);
    font-family: var(--mono);
    letter-spacing: 2px;
    /* Reduced slightly for mobile readability */
    font-size: 0.8rem;
    margin-bottom: 2rem;

    /* The Fixes */
    max-width: 100%;
    /* Stay within the parent container */
    word-wrap: break-word;
    /* Wrap long words if necessary */
    overflow-wrap: break-word;
    display: inline-block;
    /* Helps the container respect the text flow */
    line-height: 1.5;
    /* Gives space if it wraps to 2 lines */
}

.bio {
    max-width: 500px;
    margin: 20px auto;
    color: var(--text-dim);
}

/* system registry */

/* Add this to your style.css */
.app-card.flagship {
    border-color: rgba(56, 189, 248, 0.4); /* Brighter border for the flagship */
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
}

.app-card.flagship .launch-link {
    color: #fff;
    background: var(--accent);
    padding: 5px 10px;
    border-radius: 2px;
}

.app-card.flagship .launch-link:hover {
    background: #0ea5e9; /* Slightly darker blue on hover */
}

/* end system registry */


/* Grid */
.section-divider {
    border-bottom: 1px solid var(--border);
    margin: 40px 0;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}


.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.card-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* core strengths */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.tech-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 2px;
    /* Sharper corners for a technical look */
    background: rgba(56, 189, 248, 0.05);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* end core strengths */


/* latest logs */
.timeline {
    border-left: 1px solid var(--border);
    margin-left: 10px;
    padding-left: 30px;
    position: relative;
}

.log-item {
    margin-bottom: 40px;
    position: relative;
}

/* The small dot on the timeline */
.log-item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--border);
    border: 2px solid var(--bg);
    border-radius: 50%;
}

.log-item:hover::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.log-meta {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.log-body h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.log-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* end latest logs */


/* manifesto */
.manifesto-content {
    padding: 60px 0;
    text-align: center;
}

blockquote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    border: none;
    /* No default quote lines */
}

blockquote strong {
    color: var(--accent);
    font-weight: 700;
}

/* end manifesto */

/* about */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 40px 0;
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.about-text strong {
    color: var(--text-main);
}

.about-stats-box {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.75rem;
    border-radius: var(--radius);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:last-child {
    color: var(--accent);
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
    }

    .footer-grid {
        flex-direction: column;
        /* Stack links and copyright */
        align-items: flex-start;
        /* Align everything to the left */
        gap: 20px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        /* Stack the individual links */
        gap: 15px;
    }

    .footer-link {
        margin-right: 0;
        /* Remove the right margin since they are stacked */
        font-size: 0.75rem;
    }

    .footer-copyright {
        margin-top: 10px;
        font-size: 0.6rem;
    }
}

/* end about */

/* footer */
.studio-footer {
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.footer-link {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    margin-right: 25px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-copyright {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--border);
}

/* end footer */

/* app */
/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.app-card:hover {
    border-color: var(--accent);
}

/* Card Header */
.card-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.status-badge {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981; /* Success Green */
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Card Content */
.card-content {
    padding: 30px 20px;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Card Footer */
.card-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
}

.launch-link {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

/* Placeholder Styling */
.app-card.placeholder {
    border-style: dashed;
    opacity: 0.6;
    text-align: center;
}

.plus-icon {
    font-size: 2rem;
    color: var(--border);
    margin-bottom: 10px;
}

.status-text {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--border);
}


/* end app */

/* monitoring */

.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 60px;
}

.health-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
}

.health-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

/* Pulse Graph */
.pulse-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-bottom: 10px;
}

.bar {
    flex: 1;
    background: var(--border);
    border-radius: 1px;
}

.pulse-active {
    background: var(--accent);
    animation: bar-flicker 1.5s infinite;
}

/* Uptime Bar */
.uptime-bar {
    display: flex;
    gap: 3px;
    height: 15px;
    margin-bottom: 15px;
}

.uptime-segment {
    flex: 1;
    border-radius: 1px;
}

.segment-green { background: #10b981; opacity: 0.6; }
.segment-yellow { background: #f59e0b; opacity: 0.8; }

.health-value {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: bold;
}

.health-value .trend, 
.health-value .status-text {
    font-size: 0.7rem;
    margin-left: 10px;
    font-weight: normal;
}

.trend { color: #10b981; }
.status-text { color: var(--text-dim); }

@keyframes bar-flicker {
    0% { opacity: 1; height: 50%; }
    50% { opacity: 0.5; height: 70%; }
    100% { opacity: 1; height: 50%; }
}

/* Mobile Fix */
@media (max-width: 768px) {
    .health-grid { grid-template-columns: 1fr; }
}

/* end monitoring */


/* Responsive Grid for Mobile */
@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
        /* Force cards to stack */
        gap: 20px;
        /* Space between the stacked cards */
    }

    /* Optional: Center the text on mobile for a cleaner look */
    .hero {
        padding: 60px 0 40px;
    }

    .studio-name {
        font-size: 1.8rem;
    }

    .brand-mark {
        font-size: 3rem;
    }
}

/* subscription registry calibration */
/* style.css */

.app-card.calibrating {
    opacity: 0.7;
    border-style: dashed; /* Visual cue that it's "under construction" */
    filter: grayscale(0.5);
    cursor: not-allowed;
}

.status-badge.calibrating {
    background: #ffaa00; /* Amber for warning/calibration */
    color: #000;
}

.launch-link.locked {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Optional: A subtle scanline animation for calibrating cards */
.app-card.calibrating::after {
    content: "SYNC_IN_PROGRESS...";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 8px;
    color: var(--primary);
    animation: blink 1s infinite;
}
/* end subscription registry calibration */

/* monthly yearly toggle */
/* --- Billing Toggle Styles --- */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 1px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--text-dim);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-dim);
    transition: .4s;
}

/* Active State (Yearly) */
input:checked + .slider {
    background-color: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Label Transitions */
.toggle-label {
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.toggle-label.active {
    color: #fff !important;
    text-shadow: 0 0 5px var(--primary);
}

small {
    font-size: 9px;
    display: block;
    color: var(--primary);
    opacity: 0.8;
}

/* end monthly yearly toggle */

/* navigation */
.studio-nav {
    background: #050505;
    border-bottom: 1px solid var(--primary);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-brand { color: var(--primary); font-weight: bold; text-decoration: none; }
/*
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
*/
.status-pill {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary);
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
}
.logout-btn { color: #ff4141 !important; border: 1px solid #ff4141; padding: 2px 10px; border-radius: 3px; }

/* end navigation */

.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row are the same height */
}

.paypal-payment-zone {
    margin-top: auto; /* Pushes the payment zone to the absolute bottom of the card */
    padding-top: 15px;
}

/* updated nav */

/* --- Desktop vs Mobile Logic --- */

/* Hide the Launch Link on Mobile (max-width 768px) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .studio-nav {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #333;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex; /* Shown when burger is clicked */
    }

    .mobile-toggle {
        display: block;
        background: none;
        border: 1px solid #00ff41;
        color: #00ff41;
        font-family: 'Courier New', monospace;
        font-size: 12px;
        padding: 5px 10px;
        cursor: pointer;
    }
}

/* Base Nav Styling (Desktop) */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
    
    .studio-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background: #050505;
        border-bottom: 1px solid #1a1a1a;
    }

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

/* Reusable Components */
.status-pill {
    font-size: 10px;
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 2px 8px;
    text-transform: uppercase;
}

.code-dim {
    color: #666;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* end updated nav */