/* 
 * KOAN MIND - Global Styles 
 * Syntropic Lab Design System
 */

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #181c1c; /* on-surface */
    background: #f6faf9; /* surface */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==========================================================================
   Ambient Glows (Micro-interactions & Aesthetics)
   ========================================================================== */
.blob-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.06) 0%, transparent 60%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.blob-glow-cyan {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 238, 252, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(70px);
    pointer-events: none;
}

.blob-glow-teal {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.06) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

/* ==========================================================================
   Glassmorphism Cards (Specimen Cards)
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #dfe3e2; /* surface-variant equivalent */
    box-shadow: 0 4px 20px -4px rgba(0, 64, 64, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px rgba(0, 64, 64, 0.06);
    border-color: #bdc9c8; /* outline-variant */
}

/* Specimen Top Borders */
.glass-card-specimen {
    border-top: 2px solid #008080; /* primary */
}

.glass-card-specimen-beta {
    border-top: 2px solid #8b4823; /* tertiary */
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn-primary {
    background: #008080;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #006565;
    box-shadow: 0 4px 16px -2px rgba(0, 101, 101, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #008080;
    font-weight: 600;
    border: 1px solid #008080;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(0, 238, 252, 0.05); /* very light cyan */
    border-color: #00eefc;
    color: #006565;
}

/* Form Elements */
.input-field {
    width: 100%;
    background: #ffffff;
    border: 1px solid #bdc9c8;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    color: #181c1c;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 238, 252, 0.5); /* secondary-container for focus */
    border-radius: 2px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Typography Responsiveness & Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .text-h1 { font-size: 36px !important; line-height: 1.15 !important; }
    .text-h2 { font-size: 28px !important; }
}

.number-badge {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #bdc9c8;
}

/* ==========================================================================
   Hero Banners & Depth
   ========================================================================== */
.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.hero-overlay-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(246, 250, 249, 1) 0%, rgba(246, 250, 249, 0.85) 45%, rgba(246, 250, 249, 0.1) 100%);
    z-index: 1;
}

.hero-content-glass {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px -10px rgba(0, 64, 64, 0.1);
}

@media (max-width: 768px) {
    .hero-overlay-fade {
        background: linear-gradient(180deg, rgba(246, 250, 249, 0.3) 0%, rgba(246, 250, 249, 0.95) 50%, rgba(246, 250, 249, 1) 100%);
    }
    .hero-content-glass {
        padding: 2rem;
    }
}
