/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg: #ffffff;
    --surface: #f5f5f7; /* Apple-style light gray */
    --text: #1d1d1f;
    --text-light: #86868b;
    --accent: #000000; /* Luxury brand black */
    --success: #34c759;
    --easing: cubic-bezier(0.16, 1, 0.3, 1); /* Smooth 'ease-out-expo' */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.brand span { color: var(--text-light); font-weight: 400; }

.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s var(--easing) forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0;
    animation: fadeUp 1s var(--easing) 0.2s forwards;
}

/* --- CARD GRID --- */
.container { padding: 2rem 5%; max-width: 1400px; margin: 0 auto; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
}

.card {
    background: var(--bg);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s var(--easing), box-shadow 0.6s var(--easing);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    z-index: 10;
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--easing);
}

.card:hover .card-img { transform: scale(1.1); }

/* Premium Badge */
.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-info { padding: 24px; }
.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.card-sub { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; }

/* The Action Button */
.action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: var(--accent);
    color: white;
    transition: all 0.3s var(--easing);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: #333;
    transform: scale(0.98);
}

.action-btn.free { background: var(--surface); color: var(--text); }
.action-btn.free:hover { background: #e5e5e5; }

/* --- MODALS & ANIMATIONS --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile bottom sheet style */
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 24px 24px 0 0;
    padding: 40px;
    transform: translateY(100%);
    transition: transform 0.5s var(--easing);
    text-align: center;
    position: relative;
}

@media(min-width: 768px) {
    .modal-overlay { align-items: center; }
    .modal-box { border-radius: 24px; transform: translateY(40px) scale(0.95); }
}

.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

/* Success Animation (Checkmark) */
.checkmark-circle {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--success);
    box-shadow: 0 10px 30px rgba(52, 199, 89, 0.3);
    animation: popIn 0.5s var(--easing);
}

.checkmark { width: 40px; height: 40px; stroke: white; stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawCheck 0.6s 0.3s forwards var(--easing); }

/* Keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* Inputs */
input.clean-input {
    width: 100%; padding: 16px;
    margin: 20px 0;
    border: 2px solid var(--surface);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}
input.clean-input:focus { border-color: var(--accent); }
