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

:root {
    /* Brand Colors */
    --color-blue: #00009C;
    --color-blue-dark: #000070;
    --color-blue-light: #1a1aff;
    --color-red: #FE1115;
    --color-red-dark: #cc0e11;
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-600: #6c757d;

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    --gradient-red: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 156, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 156, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 156, 0.2);
    --shadow-glow-blue: 0 0 30px rgba(0, 0, 156, 0.3);
    --shadow-glow-red: 0 0 30px rgba(254, 17, 21, 0.3);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gradient-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    overflow-x: hidden;

    /* Base Blue */
    background-color: var(--color-blue);

    /* Grid Pattern (Ported from BGPattern 'grid' variant) */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Size = 40 */

    /* Mask: Fade Edges (Ported from mask='fade-edges') */
    /* best approximation in CSS body is a radial vignette overlay */
}

/* Vignette Overlay to substitute 'fade-edges' mask */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 156, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: var(--spacing-sm);
}

/* ===== Card ===== */
.card {
    /* Clean, Simple, Premium White Card */
    background: rgba(255, 255, 255, 1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

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

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

/* ===== Logo ===== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(var(--shadow-sm));
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

/* ===== Tagline ===== */
.tagline {
    text-align: center;
    color: var(--color-gray-600);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
}

/* ===== Links ===== */
.links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.link-button:hover::before {
    opacity: 1;
}

.link-button:hover {
    transform: translateY(-3px);
}

.link-button:active {
    transform: translateY(-1px);
}

/* WhatsApp Button */
.link-button.whatsapp {
    background: var(--gradient-whatsapp);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.link-button.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Location Button */
.link-button.location {
    background: var(--gradient-red);
    box-shadow: 0 4px 15px rgba(254, 17, 21, 0.3);
}

.link-button.location:hover {
    box-shadow: 0 8px 25px rgba(254, 17, 21, 0.4);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.footer p {
    color: var(--color-gray-600);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .logo {
        max-width: 220px;
    }

    .link-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.link-button:focus-visible {
    outline: 3px solid var(--color-blue-light);
    outline-offset: 3px;
}