/* =============================================================
   Obelisk Landing Page — landing.css
   Dark theme: #0a0a0f | Green: #00ff88 | Purple: #8b5cf6
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #00ff88;
    --purple: #8b5cf6;
    --gold: #f59e0b;
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --bg3: #1a1a2e;
    --border: rgba(0,255,136,0.2);
    --text: #e8e4d9;
    --text-muted: #888899;
    --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.badge-green { background: rgba(0,255,136,0.15); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.badge-purple { background: rgba(139,92,246,0.15); color: var(--purple); border: 1px solid rgba(139,92,246,0.3); }

/* ---- HEADER ---- */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.landing-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.header-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #c9a227, #00d4ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #0a0a0f;
}
.header-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.header-nav a:hover { color: var(--green); }
.btn-open-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--green), #00aaff);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-open-app:hover { opacity: 0.9; transform: translateY(-1px); }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(0,255,136,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-glyph {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 30%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 400;
}
.hero-perks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
}
.hero-perks span::before { content: '✦ '; }
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--green), #00aaff);
    color: #0a0a0f;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,255,136,0.5); }
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--green); color: var(--green); }

/* ---- STATS BAR ---- */
.stats-bar {
    background: linear-gradient(90deg, rgba(0,255,136,0.06), rgba(139,92,246,0.06));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 8px 16px;
}
.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: rgba(15,15,26,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(0,255,136,0.3); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}
.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 10px;
    background: rgba(0,255,136,0.1);
    color: var(--green);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- PRODUCTS TABLE ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: rgba(15,15,26,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
}
.product-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.product-apy {
    font-size: 20px;
    font-weight: 800;
    color: var(--green);
}
.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.product-protection {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    position: relative;
}
.step-item {
    text-align: center;
    position: relative;
}
.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green), #00aaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #0a0a0f;
    margin: 0 auto 16px;
}
.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- ROADMAP ---- */
.roadmap-track {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.roadmap-phase {
    flex: 1;
    padding: 28px 24px;
    position: relative;
}
.roadmap-phase:not(:last-child) { border-right: 1px solid var(--border); }
.phase-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.phase-done .phase-status { color: var(--green); }
.phase-wip .phase-status { color: var(--gold); }
.phase-next .phase-status { color: var(--text-muted); }
.phase-done { background: rgba(0,255,136,0.04); }
.phase-wip { background: rgba(245,158,11,0.04); }
.phase-next { background: rgba(255,255,255,0.02); }
.phase-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.phase-items { list-style: none; }
.phase-items li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 3px 0;
}
.phase-items li::before { content: '· '; }

/* ---- FOOTER ---- */
.landing-footer {
    background: rgba(5,5,10,0.95);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-copy {
    font-size: 12px;
    color: rgba(136,136,153,0.6);
}

/* ---- BG GRID DECORATION ---- */
.landing-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .stat-divider { display: none; }
    .roadmap-track { flex-direction: column; }
    .roadmap-phase:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
    .hero { padding: 100px 16px 60px; }
    .section { padding: 60px 0; }

    /* Header mobile — simplifié */
    .landing-header .container {
        height: auto;
        min-height: 56px;
        padding: 10px 16px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    /* Cacher nav, theme, matrix dots, matrix toggle, lang switcher */
    .header-nav,
    .theme-switcher,
    #matrix-colors,
    #matrix-toggle,
    .lang-switcher { display: none !important; }

    /* Bouton Open App — toujours visible et cliquable */
    .btn-open-app {
        display: inline-flex !important;
        white-space: nowrap;
        font-size: 13px !important;
        padding: 10px 18px !important;
        flex-shrink: 0;
        position: relative;
        z-index: 200;
    }
}
