/* Visa Infinity - Design System & Styles */

/* === CSS VARIABLES === */
:root {
    /* Colors - HSL Format */
    --background: 220 40% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --primary: 222 75% 10%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 70% 50%;
    --secondary-foreground: 0 0% 100%;
    --muted: 220 20% 92%;
    --muted-foreground: 222 20% 40%;
    --accent: 45 100% 50%;
    --accent-foreground: 222 75% 10%;
    --border: 220 20% 88%;
    
    /* Gradients */
    --gradient-cosmic: linear-gradient(135deg, hsl(222 75% 10%) 0%, hsl(240 60% 25%) 50%, hsl(260 50% 35%) 100%);
    --gradient-stellar: linear-gradient(to right, hsl(220 70% 50%), hsl(240 60% 55%));
    --gradient-gold: linear-gradient(135deg, hsl(45 100% 50%), hsl(35 100% 55%));
    
    /* Shadows */
    --shadow-glow: 0 0 40px hsl(220 70% 50% / 0.3);
    --shadow-elegant: 0 10px 40px -10px hsl(222 75% 10% / 0.3);
    
    /* Spacing */
    --radius: 0.75rem;
    --container-max: 1400px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* === ANIMATIONS === */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.btn-hero {
    background: var(--gradient-gold);
    color: hsl(var(--accent-foreground));
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    box-shadow: 0 0 60px hsl(220 70% 50% / 0.5);
    transform: translateY(-2px);
}

.btn-hero svg {
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateX(4px);
}

.btn-stellar {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-stellar:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('hero-cosmic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        hsla(222, 75%, 10%, 0.8) 0%, 
        hsla(222, 75%, 10%, 0.6) 50%, 
        hsla(222, 75%, 10%, 0.9) 100%);
}

.float-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.float-globe {
    top: 5rem;
    left: 2.5rem;
    color: hsl(var(--accent) / 0.3);
}

.float-rocket {
    bottom: 8rem;
    right: 5rem;
    color: hsl(var(--secondary) / 0.4);
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 1400px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--primary-foreground) / 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    margin-top: 5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--primary-foreground) / 0.8);
    font-size: 1rem;
}

/* === SERVICES SECTION === */
.services {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--muted)));
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: hsl(var(--secondary));
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-stellar);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    color: hsl(var(--secondary-foreground));
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--card-foreground));
    margin-bottom: 1rem;
}

.service-description {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1.6;
}

/* === PROCESS SECTION === */
.process {
    padding: 5rem 1rem;
    background: var(--gradient-cosmic);
}

.process .section-title,
.process .section-subtitle {
    color: hsl(var(--primary-foreground));
}

.process .section-subtitle {
    color: hsl(var(--primary-foreground) / 0.8);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

.process-step {
    position: relative;
}

.step-badge {
    width: 6rem;
    height: 6rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.step-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--accent-foreground));
}

.step-check {
    position: absolute;
    top: -0.5rem;
    right: 50%;
    transform: translateX(50%);
    width: 2rem;
    height: 2rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid hsl(var(--primary));
}

.step-check svg {
    color: hsl(var(--accent-foreground));
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    text-align: center;
    margin-bottom: 0.75rem;
}

.step-description {
    color: hsl(var(--primary-foreground) / 0.8);
    text-align: center;
    font-size: 1rem;
}

/* === CTA SECTION === */
.cta {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, hsl(var(--muted)), hsl(var(--background)));
}

.cta-box {
    background: var(--gradient-cosmic);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-elegant);
    max-width: 64rem;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--primary-foreground) / 0.9);
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

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

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
}

.email-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 2.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--secondary) / 0.5);
    background: hsl(var(--background) / 0.95);
    font-size: 1rem;
    color: hsl(var(--foreground));
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: hsl(var(--secondary));
}

.cta-note {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.7);
}

/* === FOOTER === */
.footer {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    grid-column: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: hsl(var(--accent));
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: hsl(var(--primary-foreground) / 0.8);
    margin-bottom: 1rem;
    max-width: 32rem;
}

.footer-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    color: hsl(var(--primary-foreground) / 0.8);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-links li:hover {
    color: hsl(var(--primary-foreground));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: hsl(var(--primary-foreground) / 0.7);
}

/* === RESPONSIVE DESIGN === */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-form {
        flex-direction: row;
    }
    
    .cta-form .btn {
        flex-shrink: 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-tagline {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .process-step::after {
        content: '';
        position: absolute;
        top: 3rem;
        left: 100%;
        width: 100%;
        height: 2px;
        background: var(--gradient-stellar);
        z-index: -1;
    }
    
    .process-step:last-child::after {
        display: none;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    .hero-background,
    .float-element {
        display: none;
    }
}
