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

:root {
    /* Colors - Premium Blue & Neutral Palette */
    --primary-h: 226;
    --primary-s: 70%;
    --primary-l: 18%;
    /* Deep Navy Base */
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));

    --accent-h: 217;
    --accent-s: 91%;
    --accent-l: 60%;
    /* Vibrant Action Blue */
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

    --surface-h: 220;
    --surface-s: 20%;
    --surface-l: 98%;
    --surface: hsl(var(--surface-h), var(--surface-s), var(--surface-l));

    --white: #ffffff;
    --black: #050810;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #f8fafc;

    /* Spacing System */
    --space-unit: 1rem;
    --space-3xs: calc(0.25 * var(--space-unit));
    --space-2xs: calc(0.5 * var(--space-unit));
    --space-xs: calc(0.75 * var(--space-unit));
    --space-sm: var(--space-unit);
    --space-md: calc(1.5 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3 * var(--space-unit));
    --space-2xl: calc(4 * var(--space-unit));
    --space-3xl: calc(6 * var(--space-unit));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Advanced Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s var(--ease-out);
    --transition-fast: 0.2s var(--ease-out);
}

/* ===================================
   Base & Foundation
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ===================================
   Components - Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: hsl(var(--accent-h), var(--accent-s), 55%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   Layout - Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: var(--transition-base);
}

.header.scrolled {
    padding: var(--space-xs) 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    /* Light color by default for Hero transparency */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.logo span {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition-base);
}

.header.scrolled .logo {
    color: var(--primary);
}

.header.scrolled .logo span {
    color: var(--accent);
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    /* Light color by default */
    text-decoration: none;
    transition: var(--transition-base);
}

.header.scrolled .header-phone {
    color: var(--primary);
}

.header-phone:hover {
    color: var(--accent);
}

.header-phone svg {
    color: currentColor;
    /* Use text color */
}

.header.scrolled .header-phone svg {
    color: var(--accent);
}

/* ===================================
   Section - Hero
   =================================== */
.hero {
    position: relative;
    padding: calc(var(--space-3xl) * 2) 0 var(--space-3xl);
    background: linear-gradient(rgba(5, 8, 16, 0.85), rgba(5, 8, 16, 0.85)), url('images/hero-bg-premium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.hero-title .highlight {
    display: block;
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero-trust-badges {
    margin-top: var(--space-3xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===================================
   Section - Brands
   =================================== */
.brands {
    padding: var(--space-3xl) 0;
    background: var(--surface);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition-base);
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.brand-card span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   Section - Support Flow
   =================================== */
.support-flow {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.support-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.support-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    padding: var(--space-2xl);
    flex: 1;
    animation: slideUp 0.6s var(--ease-out) forwards;
}

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

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

.form-step.active {
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
}

.step-header h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Grids in Form */
.brand-select-grid,
.category-grid,
.issue-grid {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.brand-select-card,
.category-card,
.issue-card {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
}

.brand-select-card:hover,
.category-card:hover,
.issue-card:hover {
    background: var(--white);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.brand-select-card.selected,
.category-card.selected,
.issue-card.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card.selected .category-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Call Summary Step */
.call-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.summary-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.summary-card h4 {
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.summary-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.summary-card li {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 0.9375rem;
}

.summary-card li strong {
    color: var(--text-muted);
}

.call-action h4 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.call-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Progress Bar */
.progress-indicator {
    padding: var(--space-lg) var(--space-2xl);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8125rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

.progress-step.active {
    color: var(--accent);
}

.progress-step.active .progress-dot {
    background: var(--accent);
    box-shadow: var(--shadow-glow);
}

.progress-step.completed {
    color: var(--primary);
}

.progress-step.completed .progress-dot {
    background: var(--primary);
}

.progress-line {
    width: 2rem;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

/* ===================================
   Section - Features / Why Us
   =================================== */
.why-us {
    padding: var(--space-3xl) 0;
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.benefit-item {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.benefit-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.benefit-content p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .call-summary {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .header-right {
        gap: var(--space-sm);
    }
}

/* ===================================
   Section - Trust / Team
   =================================== */
.trust {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.trust-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.trust-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary), transparent);
    opacity: 0.3;
}

.trust-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.trust-features {
    list-style: none;
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.trust-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ===================================
   Section - CTA
   =================================== */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0a0f1a 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: #050810;
    color: var(--white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-info .logo {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 320px;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: var(--space-xs);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.legal-disclaimer {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    text-align: center;
}

/* ===================================
   Sticky CTA
   =================================== */
.sticky-cta {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    overflow: hidden;
}

.sticky-btn svg {
    width: 28px;
    height: 28px;
}

.sticky-btn span {
    display: none;
    font-weight: 700;
    white-space: nowrap;
}

.sticky-btn:hover {
    width: 180px;
    border-radius: var(--radius-md);
}

.sticky-btn:hover span {
    display: block;
    margin-left: var(--space-2xs);
}

.sticky-call {
    background: var(--accent);
}

.sticky-whatsapp {
    background: #25D366;
}

/* ===================================
   Animations
   =================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s var(--ease-out);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .trust-content {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .call-summary {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .d-none-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: var(--space-xs) 0;
    }

    .logo {
        font-size: 1.125rem;
        /* Slightly larger than 1rem but still compact */
    }

    .header-right {
        gap: var(--space-xs);
    }

    .header-phone span {
        font-size: 0.8125rem;
        /* Compact phone number */
    }

    .hero-title {
        font-size: 2.25rem;
    }
}