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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a26;
    --surface: #222233;
    --border: #2a2a3d;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --accent: #ff4d00;
    --accent-glow: rgba(255, 77, 0, 0.3);
    --accent-soft: #ff6a2f;
    --green: #00d47b;
    --yellow: #ffc233;
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-soft) !important; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-soft);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero--start { min-height: 60vh; }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid-anim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, var(--accent-glow) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 60%, rgba(0, 212, 123, 0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.highlight { color: var(--accent); }

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Sections ── */
.section {
    padding: 5rem 0;
}

.section--dark {
    background: var(--bg-card);
}

.section--accent {
    background: linear-gradient(135deg, #1a0800 0%, #0a0a0f 50%, #001a0d 100%);
    border-top: 1px solid rgba(255, 77, 0, 0.15);
    border-bottom: 1px solid rgba(255, 77, 0, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ── Node Grid ── */
.node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.node-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.node-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.node-thumb-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        hsl(var(--hue, 15) 60% 15%) 0%,
        hsl(var(--hue, 15) 40% 8%) 100%
    );
    animation: thumbPulse 4s ease-in-out infinite alternate;
}

@keyframes thumbPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.node-live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #e00;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    animation: livePulse 2s ease-in-out infinite;
}

.node-live-badge--offline {
    background: var(--surface);
    color: var(--text-muted);
    animation: none;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.node-info {
    padding: 1rem 1.25rem 1.25rem;
}

.node-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.node-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.node-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.node-price {
    font-weight: 600;
    color: var(--green);
}

.node-queue { color: var(--text-muted); }

.node-card--coming-soon {
    border-style: dashed;
    border-color: var(--surface);
}

.node-card--coming-soon .node-info {
    text-align: center;
}

/* ── Steps / How It Works ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Use Cases ── */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.usecase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s;
}

.usecase:hover { border-color: var(--accent); }

.usecase-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.usecase h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.usecase p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Gamification Cards ── */
.gamification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.gam-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.gam-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.gam-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gam-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Franchise Block ── */
.franchise-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.franchise-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.franchise-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.franchise-perks {
    list-style: none;
    margin-bottom: 2rem;
}

.franchise-perks li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.franchise-perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Franchise Mockup ── */
.franchise-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-url {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.mockup-body { padding: 1rem; }

.mockup-stream {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a0800 0%, #0d0d15 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    position: relative;
}

.mockup-stream::after {
    content: "LIVE";
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #e00;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.mockup-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mockup-aim {
    flex: 1;
    height: 40px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    position: relative;
}

.mockup-aim::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 300;
}

.mockup-btn {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.mockup-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 1px;
}

/* ── Clips Grid ── */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.clip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.clip-card:hover { border-color: var(--accent); }

.clip-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(
        135deg,
        hsl(var(--hue, 15) 50% 12%) 0%,
        hsl(var(--hue, 15) 30% 6%) 100%
    );
}

.clip-info {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clip-node {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

.clip-stats {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-icon { display: inline-flex; width: 28px; height: 28px; font-size: 0.65rem; }
.footer-brand .logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) { display: none; }

    .hero-stats { gap: 1.5rem; }

    .franchise-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.4rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
