/* ====== CSS Variables ====== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #3b82f6;
    --primary-foreground: #fff;
    --background: #fff;
    --foreground: #1e293b;
    --secondary: #f1f5f9;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --card: #f8fafc;
    --border: #e2e8f0;
    --radius: 0.75rem;
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #3b82f6);
    --gradient-glow: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(59,130,246,0.1));
    --shadow-glow: 0 0 40px rgba(14,165,233,0.12);
    --shadow-card: 0 4px 24px rgba(30,41,59,0.06);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--foreground);
    overflow-x: hidden;
    min-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

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

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

/* ====== Utility Classes ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.text-accent {
    color: var(--primary);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-glow {
    background: var(--gradient-glow);
}

.glow-shadow {
    box-shadow: var(--shadow-glow);
}

.section-label {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ====== Animations ====== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

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

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

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ====== Navigation ====== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.5);
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
}

.site-nav__brand img {
    height: 44px;
}

.site-nav__brand-trust {
    color: var(--foreground);
}

.site-nav__brand-club {
    color: var(--primary);
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav__links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--foreground);
}

.site-nav__cta {
    background: var(--gradient-primary);
    color: var(--primary-foreground) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.site-nav__cta:hover {
    opacity: 0.9;
    color: var(--primary-foreground) !important;
}

/* Hamburger menu (mobile) */
.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--foreground);
}

.site-nav__toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .site-nav__toggle {
        display: block;
    }

    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav__links.open {
        display: flex;
    }

    .site-nav__links a {
        width: 100%;
        text-align: left;
    }
}

/* ====== Page Content ====== */
.page-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

/* ====== Sections ====== */
.section {
    padding: 3rem 0;
}

.section--alt {
    background: rgba(241,245,249,0.5);
}

.section__header {
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.section__header--center {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.section__header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.section__header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .section__header h2 {
        font-size: 3rem;
    }
}

/* ====== Cards ====== */
.card {
    border-radius: 1rem;
    border: 1px solid rgba(226,232,240,0.6);
    background: var(--card);
    padding: 1.75rem;
    transition: all 0.2s;
}

.card:hover {
    border-color: rgba(14,165,233,0.3);
    box-shadow: 0 4px 12px rgba(30,41,59,0.08);
}

.card--dashed {
    border-style: dashed;
    background: rgba(241,245,249,0.3);
}

.card--dashed:hover {
    border-color: rgba(226,232,240,0.6);
    box-shadow: none;
}

.card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.card:hover .card__icon {
    box-shadow: var(--shadow-glow);
}

.card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.card__category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(14,165,233,0.7);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.card__desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--outline {
    background: transparent;
    color: var(--foreground);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.btn--outline:hover {
    background: var(--secondary);
}

.btn--white {
    background: var(--background);
    color: var(--foreground);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn--white:hover {
    opacity: 0.9;
}

/* ====== Download Buttons ====== */
.download-buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.download-buttons a img {
    max-width: 120px;
    margin: 10px;
}

/* ====== Footer ====== */
footer {
    border-top: 1px solid rgba(226,232,240,0.5);
    padding: 2.5rem 1.5rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer__brand img {
    height: 20px;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--foreground);
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.footer__company {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ====== Legacy (app.html / deep-link fallback) ====== */
.app-action {
    margin-bottom: 2rem;
}

.open-app-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.open-app-btn:hover {
    opacity: 0.9;
}

.tagline {
    background-color: white;
    color: #000;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: normal;
    margin-bottom: 2rem;
    display: inline-block;
}

.qr-container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: inline-block;
}

.qr-container canvas {
    display: block;
    margin: 0 auto;
}

.qr-message {
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}
