:root {
    --bg: #080c10;
    --bg2: #0d1219;
    --bg3: #141c26;
    --surface: #141c26;
    --surface2: #1a2436;
    --text: #e8edf2;
    --text2: #8a9bac;
    --muted: #6b7d8f;
    --muted2: #6b7d8f;
    --accent: #00e5a0;
    --accent-hover: #00ffc0;
    --accent-dim: rgba(0,229,160,0.12);
    --blue: #3b8ef0;
    --blue-dim: rgba(59,142,240,0.12);
    --amber: #f0a23b;
    --amber-dim: rgba(240,162,59,0.12);
    --red: #f05252;
    --red-dim: rgba(240,82,82,0.12);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.12);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.page-content { position: relative; z-index: 2; }

/* Alpine.js cloak - hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'DM Mono', monospace; }
.font-body { font-family: 'DM Sans', sans-serif; }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8,12,16,0.7);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    display: inline-block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.2s;
}

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

.locale-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.locale-toggle button {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: transparent;
    color: var(--muted);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.locale-toggle button.active {
    background: var(--accent);
    color: #080c10;
}

.btn-primary {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 20px;
    background: var(--accent);
    color: #080c10;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,229,160,0.3);
}

.btn-secondary {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
}

/* ── Mobile Navigation ── */
.navbar-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s;
}

.mobile-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.active span:nth-child(2) { opacity: 0; }
.mobile-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13,18,25,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text2);
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0,229,160,0.08), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0,229,160,0.2);
    border-radius: 100px;
    background: var(--accent-dim);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fade-up 0.6s ease both;
    animation-delay: 0.2s;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fade-up 0.6s ease both;
    animation-delay: 0.3s;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-subtitle {
    color: var(--muted2);
    max-width: 540px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    animation: fade-up 0.6s ease both;
    animation-delay: 0.45s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fade-up 0.6s ease both;
    animation-delay: 0.6s;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    animation: fade-up 0.6s ease both;
    animation-delay: 0.75s;
}

.hero-stat-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.625rem;
    color: var(--text);
}

.hero-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Ticker ── */
.ticker-wrap {
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    overflow: hidden;
    padding: 12px 0;
}

.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2rem;
    white-space: nowrap;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
}

.ticker-category { color: var(--muted); }
.ticker-title { color: var(--text); }
.ticker-price-up { color: var(--accent); font-weight: 500; }
.ticker-price-down { color: var(--red); font-weight: 500; }
.ticker-price-neutral { color: var(--amber); font-weight: 500; }
.ticker-vol { color: var(--muted); font-size: 0.7rem; }

/* ── Sections ── */
.section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header h2 em {
    color: var(--accent);
    font-style: normal;
}

.section-header p {
    color: var(--muted2);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.9375rem;
}

/* ── Market Cards ── */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.market-card {
    background: var(--bg2);
    padding: 1.5rem;
    position: relative;
    transition: background 0.3s;
    display: block;
}

.market-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.market-card:hover { background: var(--bg3); }
.market-card:hover::after { opacity: 1; }

.market-card-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.market-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.odds-bar {
    height: 6px;
    background: var(--surface2);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.odds-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;
}

.market-card-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-yes {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--accent);
}

.price-no {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--red);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
}

.mini-chart-bar {
    width: 6px;
    background: var(--accent-dim);
    border-radius: 2px;
    transition: height 0.5s ease;
}

.mini-chart-bar:last-child {
    background: var(--accent);
}

.market-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.market-volume {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
}

.edge-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 100px;
}

.edge-positive { background: var(--accent-dim); color: var(--accent); }
.edge-negative { background: var(--red-dim); color: var(--red); }

/* ── Tool Cards ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    border-color: var(--border-hover);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tool-icon-accent { background: var(--accent-dim); color: var(--accent); }
.tool-icon-blue { background: var(--blue-dim); color: var(--blue); }
.tool-icon-amber { background: var(--amber-dim); color: var(--amber); }
.tool-icon-red { background: var(--red-dim); color: var(--red); }

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.8125rem;
    color: var(--muted2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-credit-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-credit-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

/* ── Dashboard Preview ── */
.dashboard-preview {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.preview-topbar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.preview-dot { width: 12px; height: 12px; border-radius: 50%; }
.preview-dot-red { background: #f05252; }
.preview-dot-yellow { background: #f0a23b; }
.preview-dot-green { background: #00e5a0; }

.preview-url {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
}

.preview-body { display: flex; min-height: 400px; }

.preview-sidebar {
    width: 220px;
    background: var(--bg3);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.preview-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.preview-nav-item.active {
    color: var(--accent);
    background: var(--surface2);
}

.preview-credit-widget {
    margin-top: auto;
    padding: 1rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0,229,160,0.2);
    border-radius: 10px;
    margin-top: 2rem;
}

.preview-credit-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
}

.preview-credit-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--muted);
}

.preview-main { flex: 1; padding: 1.5rem; }

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.preview-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.preview-metric-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.preview-metric-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.preview-metric-change {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    margin-top: 2px;
}

.change-up { color: var(--accent); }
.change-down { color: var(--red); }

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.preview-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
}

.preview-table tbody tr {
    border-radius: 8px;
    transition: background 0.2s;
}

.preview-table tbody tr:hover { background: var(--surface); }

.signal-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
}

.signal-bull { background: var(--accent-dim); color: var(--accent); }
.signal-bear { background: var(--red-dim); color: var(--red); }
.signal-neutral { background: var(--amber-dim); color: var(--amber); }

/* ── Pricing Cards ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: center;
}

.pricing-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: rgba(0,229,160,0.3);
    background: linear-gradient(135deg, var(--bg3), rgba(0,229,160,0.04));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #080c10;
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

.pricing-credits {
    font-size: 0.8125rem;
    color: var(--muted2);
    margin-bottom: 0.25rem;
}

.pricing-bonus {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    min-height: 1.2em;
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

.pricing-feature::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 10px;
}

/* ── CTA Section ── */
.cta-section {
    padding: 120px 2rem;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0,229,160,0.08), transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-section h2 em {
    color: var(--accent);
    font-style: normal;
}

.cta-section p {
    color: var(--muted2);
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.cta-section .btn-primary {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ── Footer ── */
.footer-wrap {
    border-top: 1px solid var(--border);
}

.footer {
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-mobile-actions { display: flex; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; justify-content: center; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; max-width: 320px; }
    .preview-sidebar { display: none; }
    .preview-metrics { grid-template-columns: repeat(2, 1fr); }
    .market-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-left { align-items: center; }
    .footer-links { gap: 1rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .section { padding: 60px 1rem; }
    .hero { padding: 100px 1rem 60px; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .tools-grid { grid-template-columns: 1fr; }
}