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

:root {
    /* Color Palette */
    --bg-dark: #000000;
    --card-bg: #0f0f0f;
    --card-border: #1a1a1a;
    --emerald: #00ca72;
    --emerald-glow: rgba(0, 202, 114, 0.2);
    --gold: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-space {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Refined */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
}

.glass-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Components */
.btn-primary {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--emerald-glow);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}

input:focus {
    outline: none;
    border-color: var(--emerald);
    background: rgba(255, 255, 255, 0.08);
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-symbol .symbol {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-with-symbol input {
    padding-left: 45px !important;
}

/* Profile Intro */
.profile-intro {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--emerald);
    box-shadow: 0 0 15px var(--emerald-glow);
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Global Header & Footer */
.global-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.header-contact {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.global-footer {
    padding: 60px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.address-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.address-text p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.address-text .parking-note {
    margin-top: 8px;
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .global-header {
        flex-direction: column;
        gap: 16px;
        position: relative;
    }
    
    .address-card {
        flex-direction: column;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .profile-intro {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 32px;
        justify-content: center;
        width: 100%;
    }
}

/* New Hero Section Styles */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 80px 24px;
    gap: 64px;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero-headline {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-main-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
}

.hero-main-text p {
    margin-bottom: 16px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--border-color);
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 32px;
    object-fit: cover;
    z-index: 2;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--card-bg);
    border: 1px solid var(--emerald);
    padding: 20px 24px;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
    }
}


/* Layout Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Custom Slider Refined */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--emerald);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 15px var(--emerald-glow);
}

.badge-icon {
    background: rgba(0, 202, 114, 0.1);
    padding: 10px;
    border-radius: 10px;
    display: inline-flex;
}

.roi-badge {
    color: var(--emerald);
    font-size: 3rem;
    font-weight: 700;
}

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

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

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

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25d366;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float img {
    width: 32px;
    height: 32px;
}

/* Plans Selection UI */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background: var(--emerald);
    color: white;
    border-color: var(--emerald);
}

.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.plans-grid::-webkit-scrollbar {
    width: 6px;
}

.plans-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.plan-card.selected {
    border-color: var(--emerald);
    background: rgba(0, 202, 114, 0.05);
}

.plan-card .credit-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.plan-card .installment-label {
    color: var(--emerald);
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem !important;
        padding: 0 10px;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .container {
        padding: 0 16px;
    }

    /* Screen Intro Adjustments */
    #screen-intro p {
        font-size: 1rem !important;
        margin-bottom: 32px !important;
    }

    #screen-intro h1 {
        font-size: 2.5rem !important;
    }

    /* Phase 1 Adjustments */
    #screen-phase-1 .glass {
        padding: 24px !important;
    }

    #screen-phase-1 input[type="number"] {
        font-size: 2rem !important;
    }

    /* Simulator Adjustments */
    #screen-simulator {
        padding: 40px 16px !important;
    }

    #screen-simulator .flex {
        flex-direction: column !important;
    }

    #screen-simulator .glass {
        min-width: 100% !important;
        padding: 24px !important;
    }

    #congrat-title {
        font-size: 2.2rem !important;
    }

    .roi-badge {
        font-size: 2rem !important;
        margin-top: 8px;
        text-align: left;
    }

    .flex.justify-between.items-start {
        flex-direction: column !important;
        gap: 16px;
    }

    .flex.flex-col.gap-6.mb-auto {
        gap: 20px !important;
    }

    .flex.gap-4 {
        flex-direction: column !important;
    }

    /* Metrics Adjustments */
    #metric-agio,
    #metric-total-credit,
    #metric-multiplier {
        font-size: 1.8rem !important;
    }

    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}