/* 
   CUTI Labs - Premium Apple-like Aesthetic 
   Brighter, Cleaner, Professional
*/

:root {
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #64748B;
    --accent: #4F46E5;
    --border-subtle: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --radius-lg: 32px;
    --radius-md: 18px;
    --shimmer: linear-gradient(90deg, #F5F5F7 25%, #EBEBEF 37%, #F5F5F7 63%);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.015em;
    font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

/* Force Dark Text on Headers for light background */
h1,
h2,
h3,
h4,
.font-serif,
.font-serif-premium {
    color: var(--text-primary) !important;
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", serif;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

/* Shimmer / Skeleton Placeholder */
.shimmer {
    background: var(--shimmer);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Glass Effects */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.15);
}

/* Background Grids & Accents */
.grid-bg {
    background-size: 30px 30px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 10%, transparent 90%);
}

.bg-glow-vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, white 0%, rgba(245, 245, 247, 0.8) 100%);
}

/* Premium Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Functional Component Tweaks */
.text-gradient-premium {
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Forms - Make everything light & bright */
input,
textarea,
select {
    background-color: #F5F5F7 !important;
    color: #1D1D1F !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
    background-color: white !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.05) !important;
}

::placeholder {
    color: #A1A1AA !important;
    opacity: 0.6;
}

/* Utilities */
.rounded-3xl {
    border-radius: 24px;
}

.rounded-4xl {
    border-radius: 32px;
}

.rounded-5xl {
    border-radius: 40px;
}

/* Overrides for specific tools */
.sensation-marker {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.breath-circle {
    transition: all 4.5s cubic-bezier(0.4, 0, 0.2, 1);
}