/* ============================================
   MATI-CO TEMPORARY LANDING PAGE
   Design: Liquid Glass / Glassmorphism
   Palette: Golden Amber tones
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Golden Palette */
    --gold-100: #f7ecd2;
    --gold-200: #f0d68a;
    --gold-300: #e8c547;
    --gold-400: #d4a843;
    --gold-500: #c49a3c;
    --gold-600: #b8924a;
    --gold-700: #9a7535;
    --gold-800: #7a5c2a;
    --gold-900: #5a4320;

    /* Background warm tones */
    --bg-warm: #d9c9a3;
    --bg-warm-light: #e8dcc0;
    --bg-warm-dark: #c4b48e;

    /* Glass */
    --glass-bg: rgba(255, 248, 230, 0.18);
    --glass-border: rgba(255, 235, 180, 0.35);
    --glass-shadow: rgba(180, 140, 60, 0.12);
    --glass-highlight: rgba(255, 245, 210, 0.4);

    /* Text */
    --text-primary: #4a3a1a;
    --text-secondary: #7a6840;
    --text-light: rgba(255, 255, 255, 0.95);

    /* Animation timing */
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(
        135deg,
        #d9c9a3 0%,
        #e0d0aa 25%,
        #cdb88e 50%,
        #d4c49e 75%,
        #c4b48e 100%
    );
    color: var(--text-primary);
    position: relative;
}

/* ---------- Animated Background Spheres ---------- */
.bg-spheres {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.sphere-1 {
    width: 380px;
    height: 380px;
    top: -5%;
    right: -8%;
    background: radial-gradient(circle at 35% 35%,
        #f5e0a0 0%,
        #e8c547 30%,
        #d4a843 60%,
        #b8924a 100%
    );
    box-shadow:
        inset -20px -20px 60px rgba(180, 140, 60, 0.4),
        inset 20px 20px 60px rgba(255, 240, 180, 0.5),
        0 30px 80px rgba(180, 140, 60, 0.25);
    animation: floatSphere1 18s var(--ease-smooth) infinite;
}

.sphere-2 {
    width: 280px;
    height: 280px;
    bottom: 5%;
    left: -6%;
    background: radial-gradient(circle at 40% 30%,
        #f7ecd2 0%,
        #f0d68a 35%,
        #e8c547 65%,
        #c49a3c 100%
    );
    box-shadow:
        inset -15px -15px 50px rgba(180, 140, 60, 0.35),
        inset 15px 15px 50px rgba(255, 245, 200, 0.5),
        0 25px 70px rgba(180, 140, 60, 0.2);
    animation: floatSphere2 22s var(--ease-smooth) infinite;
}

.sphere-3 {
    width: 150px;
    height: 150px;
    top: 35%;
    left: 15%;
    background: radial-gradient(circle at 38% 32%,
        #fff8e6 0%,
        #f0d68a 40%,
        #d4a843 85%
    );
    box-shadow:
        inset -10px -10px 35px rgba(180, 140, 60, 0.3),
        inset 10px 10px 35px rgba(255, 248, 220, 0.5),
        0 15px 50px rgba(180, 140, 60, 0.15);
    animation: floatSphere3 15s var(--ease-smooth) infinite;
}

.sphere-4 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 55%;
    background: radial-gradient(circle at 35% 30%,
        #fff5d0 0%,
        #e8c547 50%,
        #c49a3c 100%
    );
    box-shadow:
        inset -6px -6px 20px rgba(180, 140, 60, 0.3),
        inset 6px 6px 20px rgba(255, 245, 210, 0.5),
        0 10px 30px rgba(180, 140, 60, 0.15);
    animation: floatSphere4 12s var(--ease-smooth) infinite;
}

.sphere-5 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    background: radial-gradient(circle at 35% 35%,
        #f7ecd2 0%,
        #e8c547 35%,
        #c49a3c 70%,
        #9a7535 100%
    );
    box-shadow:
        inset -12px -12px 40px rgba(180, 140, 60, 0.35),
        inset 12px 12px 40px rgba(255, 240, 180, 0.5),
        0 20px 60px rgba(180, 140, 60, 0.2);
    animation: floatSphere5 20s var(--ease-smooth) infinite;
}

.sphere-6 {
    width: 55px;
    height: 55px;
    top: 60%;
    right: 40%;
    background: radial-gradient(circle at 35% 30%,
        #fff8e6 0%,
        #f0d68a 50%,
        #d4a843 100%
    );
    box-shadow:
        inset -4px -4px 15px rgba(180, 140, 60, 0.25),
        inset 4px 4px 15px rgba(255, 248, 220, 0.5),
        0 8px 25px rgba(180, 140, 60, 0.12);
    animation: floatSphere6 14s var(--ease-smooth) infinite;
}

.sphere-7 {
    width: 120px;
    height: 120px;
    top: 75%;
    left: 50%;
    background: radial-gradient(circle at 38% 32%,
        #fff5d0 0%,
        #e8c547 40%,
        #b8924a 85%
    );
    box-shadow:
        inset -8px -8px 30px rgba(180, 140, 60, 0.3),
        inset 8px 8px 30px rgba(255, 245, 200, 0.5),
        0 12px 40px rgba(180, 140, 60, 0.18);
    animation: floatSphere7 16s var(--ease-smooth) infinite;
}

/* ---------- Sphere Animations (Surrealist floating) ---------- */
@keyframes floatSphere1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(-30px, 40px) scale(1.05) rotate(5deg); }
    40% { transform: translate(20px, -20px) scale(0.97) rotate(-3deg); }
    60% { transform: translate(-15px, 60px) scale(1.08) rotate(8deg); }
    80% { transform: translate(25px, 30px) scale(0.95) rotate(-5deg); }
}

@keyframes floatSphere2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    15% { transform: translate(40px, -30px) scale(1.06) rotate(-4deg); }
    35% { transform: translate(-20px, 50px) scale(0.96) rotate(7deg); }
    55% { transform: translate(50px, 20px) scale(1.04) rotate(-6deg); }
    75% { transform: translate(-10px, -40px) scale(1.02) rotate(3deg); }
}

@keyframes floatSphere3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, 30px) scale(1.1); }
    50% { transform: translate(-25px, -15px) scale(0.92); }
    75% { transform: translate(15px, -35px) scale(1.05); }
}

@keyframes floatSphere4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    30% { transform: translate(-40px, 25px) scale(1.15) rotate(10deg); }
    60% { transform: translate(35px, -30px) scale(0.9) rotate(-8deg); }
}

@keyframes floatSphere5 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(35px, 35px) scale(1.03) rotate(-4deg); }
    45% { transform: translate(-25px, -20px) scale(1.07) rotate(6deg); }
    70% { transform: translate(15px, 45px) scale(0.96) rotate(-3deg); }
}

@keyframes floatSphere6 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.2); }
    66% { transform: translate(-30px, 15px) scale(0.85); }
}

@keyframes floatSphere7 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-20px, -30px) scale(1.08) rotate(5deg); }
    50% { transform: translate(30px, 15px) scale(0.94) rotate(-7deg); }
    75% { transform: translate(-15px, 35px) scale(1.06) rotate(3deg); }
}

/* ---------- Main Container ---------- */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Hero Header ---------- */
.hero-header {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    animation: fadeInUp 1s var(--ease-smooth) both;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.logo-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
        #fff5d0 0%,
        #e8c547 40%,
        #d4a843 80%
    );
    box-shadow:
        inset -4px -4px 12px rgba(180, 140, 60, 0.3),
        inset 4px 4px 12px rgba(255, 248, 220, 0.6),
        0 6px 20px rgba(180, 140, 60, 0.2);
    animation: pulseOrb 3s ease-in-out infinite;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-400), var(--gold-700));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-smooth) 0.3s both;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-smooth) 0.6s both;
}

/* ---------- Dashboard Grid ---------- */
.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    padding: var(--space-md) 0;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-smooth) 0.8s both;
}

/* ---------- Glass Card ---------- */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-xl);
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--glass-highlight),
        transparent
    );
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 220, 0.08) 0%,
        transparent 50%,
        rgba(255, 235, 180, 0.04) 100%
    );
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 248, 230, 0.28);
    border-color: rgba(255, 235, 180, 0.55);
    box-shadow:
        0 20px 60px rgba(180, 140, 60, 0.15),
        0 8px 25px rgba(180, 140, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- Card Icon ---------- */
.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
    color: var(--gold-500);
    opacity: 0.8;
    transition: all 0.3s var(--ease-smooth);
}

.glass-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--gold-400);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* ---------- Card Title ---------- */
.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* ---------- Card Content ---------- */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Weather Card Specifics ---------- */
.weather-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.weather-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.weather-emoji {
    font-size: 2rem;
}

/* ---------- Clock Card Specifics ---------- */
.clock-time {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.clock-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    text-transform: capitalize;
}

/* ---------- News Card Specifics ---------- */
.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.news-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(180, 140, 60, 0.1);
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--gold-500);
}

.news-source {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
    opacity: 0.7;
}

/* ---------- Link Cards ---------- */
.card-link {
    cursor: pointer;
    align-items: flex-start;
}

.card-link-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    font-size: 1.4rem;
    color: var(--gold-500);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s var(--ease-smooth);
}

.glass-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Loading Pulse ---------- */
.loading-pulse {
    width: 100%;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        rgba(212, 168, 67, 0.08) 0%,
        rgba(212, 168, 67, 0.18) 50%,
        rgba(212, 168, 67, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s ease-in-out infinite;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
    padding: var(--space-2xl) 0 var(--space-md);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    animation: fadeInUp 1s var(--ease-smooth) 1.2s both;
}

/* ---------- Utility Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

@keyframes pulseOrb {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            inset -4px -4px 12px rgba(180, 140, 60, 0.3),
            inset 4px 4px 12px rgba(255, 248, 220, 0.6),
            0 6px 20px rgba(180, 140, 60, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            inset -4px -4px 12px rgba(180, 140, 60, 0.3),
            inset 4px 4px 12px rgba(255, 248, 220, 0.6),
            0 10px 35px rgba(232, 197, 71, 0.35);
    }
}

@keyframes shimmerLoad {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Error State ---------- */
.card-error {
    font-size: 0.85rem;
    color: var(--gold-700);
    opacity: 0.7;
    text-align: center;
    padding: var(--space-md);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .sphere-1 { width: 260px; height: 260px; }
    .sphere-2 { width: 200px; height: 200px; }
    .sphere-5 { width: 140px; height: 140px; }
}

@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .hero-header {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .glass-card {
        padding: var(--space-lg);
    }

    .clock-time {
        font-size: 2.2rem;
    }

    .weather-temp {
        font-size: 2rem;
    }

    .sphere-1 { width: 180px; height: 180px; }
    .sphere-2 { width: 140px; height: 140px; }
    .sphere-3 { width: 100px; height: 100px; }
    .sphere-5 { width: 100px; height: 100px; }
    .sphere-4, .sphere-6 { display: none; }
}
