/* ==========================================================================
   Modus Operant Custom Styling System
   Core Theme: Premium Cybernetic Minimalist (Teal & Obsidian)
   ========================================================================== */

/* ------------------ Design Tokens & Core Settings ------------------ */
:root {
    --bg-dark: #0a0b0e;
    --bg-surface: rgba(18, 22, 33, 0.65);
    --bg-card: rgba(30, 36, 50, 0.45);
    
    --primary: #66fcf1;
    --primary-glow: rgba(102, 252, 241, 0.15);
    --primary-dark: #45b1a9;
    
    --text-main: #f5f6f8;
    --text-muted: #9ba1b0;
    
    --border-color: rgba(102, 252, 241, 0.1);
    --border-highlight: rgba(102, 252, 241, 0.25);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Scrollbar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1f2736;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.sphere-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.sphere-2 {
    bottom: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #8a2be2 0%, transparent 70%);
}

/* ------------------ Typography ------------------ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* ------------------ Reusable Utilities ------------------ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(102, 252, 241, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: #0c0e12;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 252, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 252, 241, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(102, 252, 241, 0.03);
    transform: translateY(-2px);
}

/* ------------------ Navigation Bar ------------------ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(10, 11, 14, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-logo {
    background: var(--primary);
    color: #0c0e12;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.btn-nav {
    padding: 8px 18px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: rgba(102, 252, 241, 0.05);
    color: var(--primary);
}

.btn-nav:hover {
    background: var(--primary);
    color: #0c0e12;
    border-color: var(--primary);
}

/* ------------------ Hero Section ------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 100px 0;
}

.hero-container {
    max-width: 800px;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ------------------ Methodology Section ------------------ */
.methodology-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 19, 31, 0.8) 100%);
    position: relative;
}

.methodology-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 850px;
    margin: 0 auto;
}

.timeline-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    gap: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--border-highlight);
    transform: translateX(8px);
    background: rgba(30, 36, 50, 0.6);
}

.timeline-card:hover::before {
    background: var(--primary);
}

.timeline-card.featured {
    background: rgba(102, 252, 241, 0.02);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(102, 252, 241, 0.05);
}

.timeline-card.featured::before {
    background: var(--primary);
    width: 4px;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.8;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

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

/* ------------------ Labs Section ------------------ */
.labs-section {
    background: var(--bg-dark);
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-smooth);
}

.lab-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    background: rgba(30, 36, 50, 0.6);
}

.lab-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.lab-icon svg {
    width: 24px;
    height: 24px;
}

.lab-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.lab-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ------------------ ROI Calculator Section ------------------ */
.calc-section {
    background: linear-gradient(180deg, rgba(15, 19, 31, 0.8) 0%, var(--bg-dark) 100%);
}

.calc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.calc-inputs {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-labels label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.val-display {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

/* Range Inputs */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--text-main);
}

/* Outcomes display panel */
.calc-outcomes {
    padding: 48px;
    background: rgba(102, 252, 241, 0.015);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.outcome-header h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.outcome-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Comparison Bar Graph Grid */
.comparison-bar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}

.comp-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comp-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comp-value.text-muted {
    color: #4a5160;
}

.comp-value.text-primary {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

.progress-container {
    width: 28px;
    height: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 100px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-current {
    background: #3e4452;
}

.progress-projected {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.lift-summary-card {
    background: rgba(102, 252, 241, 0.03);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.lift-summary-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.lift-summary-card strong {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.lift-summary-card .lift-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ------------------ Intake Form Section ------------------ */
.audit-section {
    background: var(--bg-dark);
}

.audit-box-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.audit-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(102, 252, 241, 0.08);
}

.form-group select option {
    background: #0f121a;
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    border: none;
}

/* Success alert */
.form-success-alert {
    text-align: center;
    padding: 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.form-success-alert h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-success-alert p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ------------------ Footer ------------------ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(10, 11, 14, 0.9);
    padding: 48px 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-meta p {
    margin-bottom: 4px;
}

.footer-meta a {
    color: var(--primary);
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

/* ------------------ Responsive Styles ------------------ */
@media (max-width: 992px) {
    .labs-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-box {
        grid-template-columns: 1fr;
    }
    
    .calc-outcomes {
        border-left: none;
        border-top: 1px solid var(--border-color);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* simple hidden layout for mobile */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-meta {
        text-align: center;
    }
}
