html {
    scroll-padding-top: 120px;
}

/* Custom Font Setup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090b; /* zinc-950 */
    color: #f4f4f5; /* zinc-100 */
}

/* Glassmorphism Utilities */
:root {
    /* Inner shadow */
    --shadow-offset: 0;
    --shadow-blur: 20px;
    --shadow-spread: -5px;
    --shadow-color: rgba(52, 211, 153, 0.4); /* emerald-400 equivalent */

    /* Painted glass */
    --tint-color: 255, 255, 255;
    --tint-opacity: 0.4;

    /* Background frost */
    --frost-blur: 4px;

    /* SVG noise/distortion */
    --noise-frequency: 0.008;
    --distortion-strength: 77;

    /* Outer shadow blur */
    --outer-shadow-blur: 24px;
}

.glass-nav {
    position: relative;
    /* We don't need fixed width/height here as it's handled by Tailwind classes */
    isolation: isolate;
    box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
    /* Ensure it has a background for the tint to work */
    background: transparent; 
}

.glass-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1; /* Behind the content */
    border-radius: 9999px; /* rounded-full equivalent */
    box-shadow:
        inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
    background-color: rgba(var(--tint-color), 0.1); /* Reduced tint opacity for nav */
}

.glass-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2; /* Behind the before element */
    border-radius: 9999px; /* rounded-full equivalent */
    backdrop-filter: blur(var(--frost-blur));
    filter: url(#glass-distortion);
    isolation: isolate;
    -webkit-backdrop-filter: blur(var(--frost-blur));
    -webkit-filter: url("#glass-distortion");
}

.glass-card {
    background: rgba(39, 39, 42, 0.4); /* zinc-800/40 */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Reflective Card Effect */
.reflective-card {
    position: relative;
    overflow: hidden;
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s;
}

.reflective-card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.reflective-card:hover::before {
    opacity: 1;
}

.reflective-card:hover {
    border-color: rgba(52, 211, 153, 0.3); /* emerald-400/30 */
}

/* Magic Bento Grid Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
    }
    .bento-span-2 {
        grid-column: span 2;
    }
    .bento-row-span-2 {
        grid-row: span 2;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Phone Mockup & Hero Animations */
.phone-mockup {
    box-shadow: 0 0 0 12px #18181b, 0 0 0 14px #27272a, 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    top: 0;
    left: 0;
    animation: scan 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-glow {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

/* Utility Helpers */
.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    background: linear-gradient(to right, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hide/Show logic for SPA */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}
