@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(24, 24, 27, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #eab308;
    --accent-hover: #ca8a04;
    --accent-glow: rgba(234, 179, 8, 0.15);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background effects */
.glow-bg {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism */
.glass {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.btn-sm {
    background-color: var(--text-main);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-sm:hover {
    background-color: #cbd5e1;
    color: var(--bg-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
}

.btn-full {
    width: 100%;
}

.mt-auto {
    margin-top: auto !important;
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-hero-container {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.4) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.logo-hero-img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero p strong {
    color: var(--text-main);
}

/* Sections */
.section {
    padding: 120px 0;
}

.bg-gradient {
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 24, 0.4) 50%, transparent 100%);
}

.center {
    text-align: center;
}

.section-title {
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .reverse {
        display: flex;
        flex-direction: column;
    }
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.badge-free {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin-left: 6px;
}

.tag-premium {
    background-color: var(--accent-glow);
    color: var(--accent);
}

.text-content h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.text-content>p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-content>p strong {
    color: var(--accent);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box .lucide {
    color: var(--text-main);
    width: 20px;
    height: 20px;
}

.feature-list strong {
    font-size: 18px;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.feature-list p {
    font-size: 15px;
    color: var(--text-muted);
}

/* VISUAL CONTENT */
.visual-content {
    position: relative;
    perspective: 1000px;
}

/* DASHBOARD MOCKUP */
.mockup-window {
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: rotateY(-3deg) rotateX(1deg);
    transition: transform 0.5s;
}

.mockup-window:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.mockup-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.dsh-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dsh-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.dsh-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* INTERACTIVE TOOLTIPS */
.hoverable {
    position: relative;
}

.s-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 10;
}

.s-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.hoverable:hover .s-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ACTIVITY CHART */
.activity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
}

.stat-bar {
    flex: 1;
    background: rgba(234, 179, 8, 0.4);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.stat-bar:hover {
    background: var(--accent);
}

.stat-bar.current {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.h-30 {
    height: 30%;
}

.h-40 {
    height: 40%;
}

.h-50 {
    height: 50%;
}

.h-60 {
    height: 60%;
}

.h-80 {
    height: 80%;
}

.h-100 {
    height: 100%;
}

.m-lbl {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-muted);
}

/* COUNTRIES */
.hoverable-section {
    cursor: pointer;
}

.hoverable-section .s-tooltip {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.hoverable-section:hover .top-countries {
    filter: blur(2px);
    opacity: 0.5;
}

.hoverable-section:hover .s-tooltip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hoverable-section .s-tooltip::after {
    display: none;
}

.top-countries {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.3s;
}

.c-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.c-flag {
    width: 20px;
}

.c-n {
    width: 90px;
    color: var(--text-muted);
}

.c-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.c-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.c-num {
    width: 30px;
    text-align: right;
    font-weight: 600;
}

/* SCREENSHOT WRAPPER FOR PSYCHOSE */
.screenshot-wrapper {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: rotateY(3deg) rotateX(1deg);
    transition: transform 0.5s;
    border: 1px solid var(--border);
    overflow: visible;
    /* to let badges float out */
}

.screenshot-wrapper:hover {
    transform: rotateY(0) rotateX(0);
}

.psychose-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    background-color: #111;
}

.mb-8 {
    margin-bottom: 80px;
}

.more-graphs-note-outside {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    opacity: 0.8;
}

/* Pricing Section */
.pricing-section {
    background-color: #050505;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 800px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.premium-card {
    border-color: var(--accent);
    box-shadow: 0 10px 40px var(--accent-glow);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.plan-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.premium-card .plan-header h3 {
    color: var(--accent);
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 15px;
}

.plan-desc strong {
    color: var(--text-main);
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 15px;
}

.plan-features li strong {
    color: var(--text-main);
}

.plan-features li .lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.plan-features li .accented {
    color: var(--accent);
}

.sub-list {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.trial-highlight {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px !important;
    border: 1px solid var(--border);
}

.trial-highlight .lucide {
    color: var(--text-main) !important;
}

.secure-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secure-note .lucide {
    width: 14px;
    height: 14px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    background-color: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
}

.logo-img-small {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 500px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.tally-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.tally-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tally-btn .lucide {
    width: 18px;
    height: 18px;
}

.support-promise {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -0.5px;
        line-height: 1.2;
        /* Fix descenders (g, p, y...) coupés avec background-clip: text */
        padding-bottom: 0.15em;
    }

    .hero p {
        font-size: 16px;
    }

    .popular-badge {
        white-space: normal;
        text-align: center;
        max-width: calc(100% - 32px);
    }
}

/* PAYMENT PAGES STYLING */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.container p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(234, 179, 8, 0.1);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    flex-shrink: 0;
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    stroke-width: 2;
}

.icon-wrapper.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.icon-wrapper.error svg {
    color: #ef4444;
}

.btn-secondary {
    display: inline-block;
    margin-top: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}