/* ==========================================================================
   Thalamocortical Systems Teaser CSS (Vanilla & Modern)
   ========================================================================== */

/* Variables */
:root {
    --bg-color: #07090e;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    --blue-glow: rgba(6, 182, 212, 0.15);
    --blue-solid: #06b6d4;
    --blue-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    
    --amber-glow: rgba(245, 158, 11, 0.15);
    --amber-solid: #f59e0b;
    --amber-gradient: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(13, 17, 28, 0.6);
    --nav-bg: rgba(7, 9, 14, 0.7);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Layout Utilities */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-glow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-gradient);
    box-shadow: 0 0 15px var(--blue-solid);
    display: inline-block;
    animation: pulse-glow 3s infinite alternate;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--blue-gradient);
    color: #07090e;
    border: none;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-container {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--blue-solid);
    box-shadow: 0 0 8px var(--blue-solid);
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient-blue {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: var(--amber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Pillars Section */
.pillars-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.pillar-card {
    padding: 3rem;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-glow-blue {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
}

.card-glow-amber {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
    pointer-events: none;
}

.card-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card-icon {
    width: 32px;
    height: 32px;
}

.icon-blue {
    color: var(--blue-solid);
}

.icon-amber {
    color: var(--amber-solid);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.card-text {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.card-bullets {
    list-style: none;
}

.card-bullets li {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
}

.card-bullets li span {
    color: var(--blue-solid);
}

#pillar-craton .card-bullets li span {
    color: var(--amber-solid);
}

/* Interactive Sandbox */
.sandbox-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.sandbox-container {
    padding: 4rem;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.badge-amber .badge-dot {
    background-color: var(--amber-solid);
    box-shadow: 0 0 8px var(--amber-solid);
}

.badge-amber .badge-text {
    color: var(--amber-solid);
}

.sandbox-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sandbox-text {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.sandbox-controls {
    margin-bottom: 2.5rem;
}

.control-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.value-display {
    font-weight: 700;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-solid);
    box-shadow: 0 0 10px var(--blue-solid);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sandbox-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.metric-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.text-blue {
    color: var(--blue-solid);
}

.text-amber {
    color: var(--amber-solid);
}

/* Visualization Canvas */
.sandbox-visualization {
    background: rgba(4, 6, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.viz-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viz-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.viz-status {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.canvas-container {
    height: 320px;
    position: relative;
    padding: 1rem;
}

#viz-canvas {
    width: 100%;
    height: 100%;
}

/* Inquiry / Contact Section */
.inquiry-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.inquiry-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
}

.inquiry-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.inquiry-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

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

.form-input, .form-textarea, .form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--blue-solid);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-feedback {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 4rem;
    background: rgba(4, 6, 10, 0.95);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.footer-legal {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legal-disclaimer {
    font-size: 0.75rem;
    color: rgba(156, 163, 175, 0.5);
    max-width: 450px;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px var(--blue-solid);
    }
    100% {
        box-shadow: 0 0 20px var(--blue-solid);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .sandbox-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .glass-header {
        padding: 0 2rem;
    }
    
    .nav-links {
        display: none; /* simple responsive fallback */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .sandbox-container, .inquiry-container {
        padding: 2rem;
    }
}
