/* ==========================================
   LANDING PAGE STYLES - LIGHT VIBRANT THEME
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* Vibrant Light Palette */
    --bg-dark: #f8fafc; /* Soft slate white */
    --bg-card: rgba(255, 255, 255, 0.8); /* Clean white glass */
    --border-card: rgba(15, 23, 42, 0.08); /* Delicate slate border */
    --text-main: #0f172a; /* Deep dark slate */
    --text-muted: #64748b; /* Medium slate grey */
    
    /* Tailored HSL Colors (Optimized for light background readability) */
    --utm-color: 217, 91%, 50%; /* Vibrant Blue (#1e40af) */
    --uf-color: 142, 70%, 35%;   /* Forest Green (#047857) */
    --usd-color: 37, 98%, 40%;   /* Warm Amber (#b45309) */
    
    --utm-glow: rgba(37, 99, 235, 0.08);
    --uf-glow: rgba(4, 120, 87, 0.08);
    --usd-glow: rgba(180, 83, 9, 0.08);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* --- Animated Ambient Mesh Background (Light Pastel) --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12; /* Softer opacity for light background integration */
    animation: float-ambient 25s infinite alternate ease-in-out;
}

.sphere-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 80%);
    animation-delay: 0s;
}

.sphere-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 80%);
    animation-delay: -5s;
}

.sphere-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 80%);
    animation-delay: -10s;
}

@keyframes float-ambient {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 5%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* --- Header & Navigation --- */
header.navbar-floating {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.75); /* Clean white glass */
    border-bottom: 1px solid var(--border-card);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.brand-logo i {
    color: hsl(var(--utm-color));
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.brand-text span {
    font-weight: 700;
    color: hsl(var(--utm-color)); /* Match color theme */
}

.btn-login {
    background: linear-gradient(135deg, hsl(var(--utm-color)) 0%, #1e40af 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* --- Hero Section --- */
.hero-section {
    max-width: 1200px;
    margin: 4rem auto 2.5rem;
    padding: 0 2rem;
    text-align: center;
}

.badge-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #2563eb;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-portal i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* --- Main Layout Grid --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .indicators-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 4rem;
    }
}

/* --- Glassmorphic Indicator Cards --- */
.card-indicator {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.card-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.card-utm::before { background: hsl(var(--utm-color)); }
.card-uf::before { background: hsl(var(--uf-color)); }
.card-usd::before { background: hsl(var(--usd-color)); }

.card-indicator:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.card-utm:hover { box-shadow: 0 20px 40px -10px var(--utm-glow), 0 10px 30px rgba(15, 23, 42, 0.05); }
.card-uf:hover { box-shadow: 0 20px 40px -10px var(--uf-glow), 0 10px 30px rgba(15, 23, 42, 0.05); }
.card-usd:hover { box-shadow: 0 20px 40px -10px var(--usd-glow), 0 10px 30px rgba(15, 23, 42, 0.05); }

/* Card Header */
.card-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title-container i {
    font-size: 1.35rem;
    padding: 0.5rem;
    border-radius: 12px;
}

.card-utm .card-title-container i {
    color: hsl(var(--utm-color));
    background: rgba(37, 99, 235, 0.08);
}
.card-uf .card-title-container i {
    color: hsl(var(--uf-color));
    background: rgba(4, 120, 87, 0.08);
}
.card-usd .card-title-container i {
    color: hsl(var(--usd-color));
    background: rgba(180, 83, 9, 0.08);
}

.card-title-container h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-live .status-dot {
    background-color: hsl(var(--uf-color));
    box-shadow: 0 0 8px hsl(var(--uf-color));
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Card Value Showcase */
.value-showcase {
    margin-bottom: 2rem;
}

.indicator-main-value {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
}

/* Shimmer Loading Skeleton */
.skeleton-loading {
    height: 2.8rem;
    width: 70%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

.value-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.35rem;
}

/* Interactive Calculator */
.calculator-box {
    background: rgba(15, 23, 42, 0.02); /* Soft grey bg */
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.calc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.calc-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    background: #ffffff; /* Solid clean white input */
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.3);
}

.card-utm input:focus { border-color: hsl(var(--utm-color)); box-shadow: 0 0 10px rgba(37, 99, 235, 0.12); }
.card-uf input:focus { border-color: hsl(var(--uf-color)); box-shadow: 0 0 10px rgba(4, 120, 87, 0.12); }
.card-usd input:focus { border-color: hsl(var(--usd-color)); box-shadow: 0 0 10px rgba(180, 83, 9, 0.12); }

.input-unit {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.calc-equals {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Fixed Common Conversions */
.conversions-fixed {
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 1.25rem;
}

.conversions-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.conversions-fixed table {
    width: 100%;
    border-collapse: collapse;
}

.conversions-fixed td {
    padding: 0.45rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.conversions-fixed tr:last-child td {
    border-bottom: none;
}

.conversions-fixed td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.conversions-fixed td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Features Section --- */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.65); /* Elegant light glass card */
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.feature-icon {
    font-size: 1.75rem;
    color: hsl(var(--utm-color));
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-card:nth-child(2) .feature-icon { color: hsl(var(--uf-color)); }
.feature-card:nth-child(3) .feature-icon { color: hsl(var(--usd-color)); }
.feature-card:nth-child(4) .feature-icon { color: #8b5cf6; /* Vibrant Purple */ }

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Footer --- */
footer.landing-footer {
    border-top: 1px solid var(--border-card);
    background: #ffffff;
    padding: 3rem 2rem;
    margin-top: 6rem;
    color: var(--text-muted);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-brand i {
    color: hsl(var(--utm-color));
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-dev {
    font-size: 0.85rem;
}

.footer-dev i {
    color: #ef4444; /* Heart Red */
    margin: 0 0.2rem;
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Login Page Specific Styles --- */
.login-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-back-container {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--text-main);
    transform: translateX(-4px);
}

.login-card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.login-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: hsl(var(--utm-color));
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-header i {
    font-size: 2rem;
    color: hsl(var(--utm-color));
    margin-bottom: 0.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.login-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper i {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.65rem 1rem 0.65rem 2.5rem; /* extra left padding for icon */
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.login-input-wrapper input:focus {
    outline: none;
    border-color: hsl(var(--utm-color));
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.12);
}

.btn-submit-login {
    background: linear-gradient(135deg, hsl(var(--utm-color)) 0%, #1e40af 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.login-footer-links {
    text-align: center;
    margin-top: 0.5rem;
}

.login-footer-links a {
    color: hsl(var(--utm-color));
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.login-footer-links a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Glassmorphic Alerts */
.alert-glass {
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-glass-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.alert-glass-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
    color: #047857;
}
