:root {
    --brand-red: #de0000;
    --primary: #1e40af;       /* Deep Cobalt Blue */
    --primary-hover: #1e3a8a;
    --dark: #0f172a;
    --text: #334155;
    --text-muted: #64748b;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --mono: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents horizontal scroll from full-width backgrounds */
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* --- Section Header Styling --- */
.section-title { 
    font-size: 2.25rem; 
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 3rem; 
    color: var(--dark); 
}

/* --- Navigation --- */
.navbar {
    position: sticky; 
    top: 0; 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid var(--border);
    z-index: 1000; 
    padding: 0.75rem 0;
}

.nav-split { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-logo { height: 45px; width: auto; }

.nav-links a {
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-btn {
    background: var(--primary); 
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-btn:hover { background: var(--primary-hover); text-decoration: none; }

.support-info { flex: 1.5; }
.support-action { flex: 1; text-align: center; }

.support-info h2 { font-size: 2rem; margin: 1rem 0; color: var(--dark); }

.support-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.meta-item strong {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.meta-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Hero Section --- */
.hero { padding: 4rem 0; }

.hero-actions {
	padding-bottom: 2rem; 
}
.hero-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.ownership-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 64, 175, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.ownership-highlight strong { color: var(--primary); }

/* --- Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; display: block; }

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    padding: 10px 20px; /* Increased padding for legibility */
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Specific positioning for Carousel Nav buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px; /* Slightly larger for better touch/click target */
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: #fff;
    color: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px; /* This ensures it stays on the right side */
    left: auto;  /* Clears any inherited left positioning */
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: #fff; width: 20px; border-radius: 10px; }

/* --- Audience & Labels --- */
.audience-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}

.audience-card h4 {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.2;
}

.tech-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.tech-label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--primary);
}

/* --- Binary Packages (FIXED) --- */
.bg-alt {
    background-color: var(--bg-soft);
    padding: 5rem 0;
    width: 100%;
}

.download-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.dl-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dl-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.dl-icon img { height: 48px; margin-bottom: 1rem; }

.dl-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.dl-link:hover { background: var(--primary); color: #fff; }

.hobbyist-callout {
    margin-top: 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

/* --- Comparison Table --- */
.table-wrapper { 
    overflow-x: auto; 
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.25rem; border-bottom: 1px solid var(--border); }

/* High Contrast Professional Column */
table td.highlight, 
table th.highlight {
    background-color: rgba(30, 64, 175, 0.05);
    color: #000000;
    font-weight: 700;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

table th.highlight {
    background-color: var(--primary);
    color: #ffffff;
}

/* --- Purchase Card & Support --- */
.purchase-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 6rem; /* Space before Support block */
}

.support-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--bg-soft);
    padding: 4rem;
				 padding-bottom: 2em;
    border-radius: 16px;
    border: 1px solid var(--border);
}

#support { padding-top: 4rem; 
/*	border-top: 1px solid var(--border); */
}

/* --- General Buttons --- */
.btn-main { background: var(--dark); color: #fff; padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; border: none; cursor: pointer; }
.btn-sub { border: 1px solid var(--border); padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; color: var(--dark); background: #fff; }

.btn-main:hover { background: var(--primary); }
.btn-main.disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); pointer-events: none; }

/* --- Spotlight / Mycelium --- */
.spotlight { display: flex; align-items: center; gap: 4rem; padding: 5rem 0; }
.image-wrapper { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.img-overlay { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.4s ease; }
.image-wrapper.active .img-overlay { opacity: 1; }


/* --- Comprehensive Mobile Responsive Fix --- */
@media (max-width: 768px) {
    /* Navbar stack */
    .nav-split {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

	.nav-logo {
        height: 40px; /* Restores a bit of presence on mobile */
        margin-bottom: 0.5rem;
    }
    /* Hero layout stack */
    .hero.container {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-lead {
        margin: 0 auto 2rem;
    }

    .ownership-highlight {
        text-align: left;
        max-width: 100%;
    }

    /* Carousel Adjustment */
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-caption {
        font-size: 0.75rem;
        bottom: 10px;
        left: 10px;
    }

    /* Download Cards */
    .download-matrix {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

	 .support-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem;       /* Reduced padding for narrow screens */
        gap: 2rem;           /* Consistent spacing between text and button */
        align-items: center; /* Centers the button horizontally */
    }

    .support-info {
        max-width: 100%;
    }

    .support-meta {
        grid-template-columns: 1fr; /* Stack meta items vertically */
        gap: 1rem;
        text-align: center;
    }

    .support-action {
        width: 100%;        /* Allows the button to be full-width or centered */
        display: flex;
        justify-content: center;
    }

    #contact-btn {
        width: 100%;        /* Makes the button easier to tap on mobile */
        max-width: 300px;   /* Prevents it from being too wide on tablets */
    }
}




/* --- Modern Registration Form --- */
.registration-form {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1.1rem 1.25rem; /* More vertical padding for a premium feel */
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: var(--dark);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1); /* Soft Cobalt glow */
    background: #fff;
}

.form-group input::placeholder {
    color: #cbd5e1;
}

/* Redesigned Disclaimer Gate */
.disclaimer-gate {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.disclaimer-gate:has(input:checked) {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.02);
}

.gate-label {
    display: flex;
    gap: 16px;
    cursor: pointer;
    align-items: flex-start;
}

.gate-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary); /* Modern browser checkbox color */
}

.gate-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

/* Full Width Primary Button */
#submit-reg {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.feature-item {
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Material Icons Styling --- */
.feature-icon .material-icons {
    font-size: 3rem;           /* Large, clear icons on desktop */
    color: var(--primary);     /* Uses your Cobalt brand color */
	 font-weight: 300;
    margin-bottom: 0.5rem;
    display: block;
    transition: transform 0.2s ease;
}

.feature-item:hover .material-icons {
    transform: scale(1.1);     /* Subtle interactive pop */
    color: var(--primary-hover);
}

@media (max-width: 768px) {
    .feature-icon .material-icons {
        font-size: 2.5rem;     /* Slightly smaller for mobile */
        margin: 0 auto 1rem;   /* Centered for mobile stack */
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Multi-Column Footer --- */
.footer {
    padding: 5rem 0 3rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* --- Global Notification Bar --- */
.status-bar {
    background: #fffbeb; /* Soft Amber background */
    border-bottom: 1px solid #fde68a;
    padding: 0.75rem 0;
    color: #92400e; /* Deep Brown/Amber text */
    position: relative;
    z-index: 1100; /* Stays above navbar */
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-right: 40px; /* Space for close button */
}

.status-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.status-content .material-icons {
    font-size: 1.25rem;
    color: #f59e0b;
}

.status-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #92400e;
    opacity: 0.5;
}

.status-close:hover { opacity: 1; }

@media (max-width: 768px) {
    .status-content {
        flex-direction: row;
        text-align: left;
    }
    .status-content p { font-size: 0.8rem; }
}
