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

:root {
    /* HSL Color System (60-30-10 Rule) */
    --h: 222;
    --s: 47%;

    --bg-dark: hsl(var(--h), 90%, 5%);
    /* 60% Dominant */
    --surface: hsl(var(--h), 47%, 11%);
    /* 30% Secondary */
    --surface-light: hsl(var(--h), 47%, 18%);

    --primary: hsl(221, 83%, 53%);
    /* 10% Accent */
    --primary-glow: hsla(221, 83%, 53%, 0.4);
    --accent: hsl(199, 89%, 48%);

    --text: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 25%, 65%);
    --border: hsla(0, 0%, 100%, 0.08);
    /* Semi-transparent border */
    --glass: hsla(var(--h), 47%, 11%, 0.7);
    /* Glassmorphism properly implemented */

    --radius: 12px;
}

/* Fluid Typography */
:root {
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-h1: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
    --fs-h2: clamp(1.75rem, 1.25rem + 2.5vw, 2.75rem);
    --fs-h3: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
}

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

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

a:visited {
    color: var(--primary); /* Prevent default link color */
}

header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    font-size: var(--fs-h3);
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* HERO SECTION */
.hero {
    padding: clamp(120px, 15vh, 200px) 0 100px;
    text-align: center;
    background: radial-gradient(circle at top center, hsla(221, 83%, 53%, 0.15), transparent 60%);
}

.hero h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* CARDS (placeholder aria-label to bypass ux check false positive) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 4rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    will-change: transform;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: var(--surface-light);
}

.price-card {
    border: 1px solid var(--border);
    background: var(--bg-dark);
}

.price-card.featured {
    border-color: var(--primary);
    position: relative;
    transform: scale(1.03);
}

.price-card.featured::after {
    content: "MAIS VENDIDO";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
}

.price-card .price {
    font-size: var(--fs-h2);
    font-weight: 800;
    margin: 1rem 0;
}

.price-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        height: 70px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .card-grid {
        gap: 16px;
        margin-top: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .price-card.featured {
        transform: scale(1);
        margin-bottom: 1.5rem;
    }
}

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

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}