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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Onest', system-ui, sans-serif;
    background: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* ─── Animations ─────────────────────────────────── */

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

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.8; }
}

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

@keyframes blink-caret {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes code-appear {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes preview-fade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

/* ─── Utility classes ────────────────────────────── */

.animate-fade-up  { animation: fadeUp 0.8s ease-out forwards; opacity: 0; }
.animate-fade-in  { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.animate-marquee  { animation: marquee 50s linear infinite; }
.animate-spin     { animation: spin 0.7s linear infinite; }
.mockup-float     { animation: mockup-float 6s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

.glow-lime  { box-shadow: 0 0 60px rgba(198, 241, 53, 0.15), 0 0 120px rgba(198, 241, 53, 0.05); }
.text-glow  { text-shadow: 0 0 80px rgba(198, 241, 53, 0.3); }

::selection { background: rgba(198, 241, 53, 0.3); color: #fff; }

/* ─── Hover lift ──────────────────────────────────── */

.hover-lift { transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ─── Number badge ────────────────────────────────── */

.number-badge {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.65rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ─── Accordion ───────────────────────────────────── */

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.module-arrow { transition: transform 0.3s ease; }
.module-arrow.open { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Scroll reveal ───────────────────────────────── */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Section backgrounds ─────────────────────────── */

.hero-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(198, 241, 53, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(198, 241, 53, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(198, 241, 53, 0.03) 0%, transparent 50%);
}

.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.price-highlight {
    background: linear-gradient(135deg, rgba(198, 241, 53, 0.08) 0%, rgba(198, 241, 53, 0.02) 100%);
}

/* ─── Tag pill ────────────────────────────────────── */

.tag-pill {
    background: rgba(198, 241, 53, 0.08);
    border: 1px solid rgba(198, 241, 53, 0.15);
    color: #c6f135;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── Marquee ─────────────────────────────────────── */

.marquee-wrapper { overflow: hidden; width: 100%; }
.marquee-track   { display: flex; width: max-content; }
.marquee-fade {
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    overflow: hidden;
}

/* ─── Mobile menu ─────────────────────────────────── */

.mobile-menu { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.mobile-menu.open { transform: translateX(0); }

/* ─── Terminal mockup ─────────────────────────────── */

.terminal-window {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-bar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    font-size: 12px;
    line-height: 1.8;
    min-height: 240px;
}

.caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #c6f135;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-caret 1s step-end infinite;
}

.code-line { opacity: 0; }
.code-line.visible { animation: code-appear 0.3s ease-out forwards; }

/* ─── Mini browser mockup ─────────────────────────── */

.mini-browser {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mini-browser-bar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-url {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
}

.preview-el { opacity: 0; }
.preview-el.visible { animation: preview-fade 0.5s ease-out forwards; }

/* ─── WhatsApp button ─────────────────────────────── */

.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.wa-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wa-btn:hover::before { opacity: 1; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3); }
.wa-btn-sm   { padding: 12px 24px; font-size: 11px; border-radius: 14px; }
.wa-btn-lg   { padding: 18px 36px; font-size: 14px; border-radius: 18px; }
.wa-btn-full { width: 100%; }

.wa-btn-outline {
    background: transparent;
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
    box-shadow: none;
}

.wa-btn-outline:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.1);
}

/* ─── Popup / Modal ───────────────────────────────── */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.popup-overlay.open { opacity: 1; pointer-events: auto; }

.popup-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-overlay.open .popup-card { transform: translateY(0) scale(1); }

.popup-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-input::placeholder { color: #555; }
.popup-input:focus {
    border-color: rgba(198, 241, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.08);
}

/* ─── Success animation ───────────────────────────── */

.success-circle { animation: successPop 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.success-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.4s ease 0.3s forwards;
}

/* ─── Path / Journey grid ─────────────────────────── */

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 12px;
}

.path-card-idea  { grid-column: 1/3; }
.path-card-mvp   { grid-column: 3/4; grid-row: 1/3; }
.path-card-users { grid-column: 1/2; }
.path-card-sales { grid-column: 2/3; }
.path-card-demo  { grid-column: 1/4; }

.path-card-idea-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

@media (max-width: 640px) {
    .path-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .path-card-idea,
    .path-card-mvp,
    .path-card-users,
    .path-card-sales,
    .path-card-demo {
        grid-column: 1/2;
        grid-row: auto;
    }

    .path-card-idea-inner { flex-direction: column; }
    .path-card-idea-inner .path-validation { min-width: unset; width: 100%; }
}

/* ─── Article card (articles page) ───────────────── */

.article-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease, box-shadow 0.4s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 241, 53, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.article-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.article-cover-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* ─── Article / Blog post page ────────────────────── */

.prose-dark h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.prose-dark h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e5e5;
    margin: 2rem 0 0.75rem;
}

.prose-dark p {
    color: #a3a3a3;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.prose-dark ul, .prose-dark ol {
    color: #a3a3a3;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose-dark li { margin-bottom: 0.5rem; }

.prose-dark strong { color: #e5e5e5; font-weight: 600; }

.prose-dark blockquote {
    border-left: 3px solid #c6f135;
    padding: 1rem 1.5rem;
    background: rgba(198, 241, 53, 0.04);
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    color: #ccc;
    font-style: italic;
}

.prose-dark code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.875em;
    color: #c6f135;
}

.prose-dark hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0;
}
