/* ============================================================
   SkillBet Landing — Apple-inspired design
   Dark theme with orange brand accents
   ============================================================ */

:root {
    --background:     #000000;
    --surface:        #1D1D1F;
    --surface-light:  #2D2D2D;
    --overlay:        rgba(0, 0, 0, 0.7);

    --primary:        #FF6B00;
    --primary-dark:   #E55D00;
    --accent:         #FFB347;

    --text-primary:   #F5F5F7;
    --text-secondary: #86868B;
    --text-muted:     #6E6E73;

    --success:        #30D158;

    --radius-card:    18px;
    --radius-pill:    980px;

    --max-width:      980px;
    --section-pad:    140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern';
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Gradient text ──────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 17px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.88;
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(245, 245, 247, 0.3);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: rgba(245, 245, 247, 0.6);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.navbar .btn-sm {
    margin: 6px 0;
}

/* ── Scroll-reveal animations ───────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 48px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 107, 0, 0.18) 0%, transparent 65%);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 80px 24px 60px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--success);
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 780px;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Phone + floating cards */
.hero-phone-wrap {
    position: relative;
    width: 300px;
    margin: 20px auto 0;
    flex-shrink: 0;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 107, 0, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--surface);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 36px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: calc(100% + 40px);
    object-fit: cover;
    object-position: center top;
    margin-top: -40px;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
    color: var(--text-primary);
    white-space: nowrap;
}

.floating-card-1 {
    top: 15%;
    right: -30px;
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 22%;
    left: -30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: rgba(255, 107, 0, 0.3);
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 1.75s;
}

.token-icon {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 35%, var(--accent), var(--primary), var(--primary-dark));
    border-radius: 50%;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

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

/* ── Section shared styles ───────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ── Showcase intro ──────────────────────────────────────── */
.showcase-intro {
    padding: var(--section-pad) 0 80px;
    background: var(--background);
    text-align: center;
}

/* ── Showcase sections ──────────────────────────────────── */
.showcase {
    padding: 80px 0;
    background: var(--background);
    overflow: hidden;
}

.showcase:nth-child(even) {
    background: var(--surface);
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-reverse .showcase-row {
    direction: rtl;
}

.showcase-reverse .showcase-row > * {
    direction: ltr;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.showcase-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.showcase-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    letter-spacing: -0.01em;
}

.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.showcase-list li {
    font-size: 16px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.showcase-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.4);
}

/* ── Showcase phone mockup ────────────────────────────── */
.showcase-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.showcase-phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-phone {
    width: 260px;
    height: 520px;
    background: var(--surface);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.showcase-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}

.showcase-phone-screen img {
    width: 100%;
    height: calc(100% + 40px);
    object-fit: cover;
    object-position: center top;
    margin-top: -40px;
}

/* ── Dual phones layout ────────────────────────────────── */
.showcase-phones-dual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 540px;
}

.showcase-phone-back {
    position: absolute;
    left: 0;
    top: 20px;
    opacity: 0.7;
    transform: scale(0.9);
    z-index: 0;
}

.showcase-phone-front {
    position: relative;
    z-index: 1;
    left: 40px;
}

.showcase-row-dual {
    grid-template-columns: 1fr 1.2fr;
}

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
    padding: var(--section-pad) 0;
    background: var(--surface);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 260px;
    flex: 1;
    padding: 0 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.35);
}

.step-connector {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(255, 107, 0, 0.2));
    margin-top: 27px;
    border-radius: 2px;
}

.step-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Stats ───────────────────────────────────────────────── */
.stats {
    padding: var(--section-pad) 0;
    background: var(--background);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 32px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: var(--surface-light);
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: block;
}

.stat-label {
    font-size: 17px;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--background);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 14px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Download CTA ────────────────────────────────────────── */
.download {
    padding: var(--section-pad) 0;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 107, 0, 0.13) 0%, transparent 65%);
    pointer-events: none;
}

.download-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.download-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.download-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 24px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.store-btn:hover {
    border-color: rgba(255, 107, 0, 0.5);
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
}

.store-icon {
    width: 30px;
    height: 30px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.store-small {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.store-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.65;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 50%;
    background: var(--surface-light);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --section-pad: 90px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    .showcase-row,
    .showcase-row-dual {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .showcase-reverse .showcase-row {
        direction: ltr;
    }

    .showcase-text {
        align-items: center;
    }

    .showcase-list {
        text-align: left;
        max-width: 320px;
    }

    .showcase-title {
        font-size: 30px;
    }

    .showcase-phone {
        width: 220px;
        height: 440px;
    }

    .showcase-phones-dual {
        min-height: 460px;
    }

    .showcase-phone-back {
        left: 10px;
    }

    .showcase-phone-front {
        left: 20px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 340px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--primary), rgba(255, 107, 0, 0.2));
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 56px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .download-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-phone-wrap {
        width: 240px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .floating-card-1 {
        right: -10px;
    }

    .floating-card-2 {
        left: -10px;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }
}
