/* ================================
   STACKSTORY — LANDING v3
   landing.css — Black & White Premium
================================ */

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,250,250,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .1em;
    color: var(--text);
}

.logo-icon { color: var(--text); font-size: 1rem; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-links a {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .2s;
    letter-spacing: .02em;
}
.navbar-links a:hover { color: var(--text); }

.navbar-cta { font-size: .82rem; padding: 10px 20px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
}
.burger span:last-child { width: 14px; }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.mobile-menu .btn-primary {
    width: fit-content;
    margin-top: .5rem;
}

@media (max-width: 768px) {
    .navbar-links, .navbar-cta { display: none; }
    .burger { display: flex; }
}

/* ---- HERO ---- */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

/* subtle grid pattern background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .4;
    pointer-events: none;
}

/* fade grid at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--surface));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .04em;
    box-shadow: var(--shadow-sm);
    animation: fadeDown .6s ease forwards;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--text);
    max-width: 900px;
    animation: fadeUp .7s ease .1s both;
}

.hero-title-accent {
    color: var(--text-secondary);
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.75;
    animation: fadeUp .7s ease .2s both;
}

.hero-search {
    width: 100%;
    max-width: 560px;
    margin-top: .25rem;
    animation: fadeUp .7s ease .3s both;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 6px 6px 6px 18px;
    box-shadow: var(--shadow-md);
    transition: border-color .2s, box-shadow .2s;
}

.search-bar:focus-within {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.search-icon {
    font-size: 1.1rem;
    color: var(--muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
}
.search-bar input::placeholder { color: var(--muted); }

.search-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: .82rem;
    border-radius: var(--radius-xs);
}

.search-hint {
    margin-top: 12px;
    font-size: .77rem;
    color: var(--muted);
    text-align: left;
    padding-left: 4px;
}

.search-hint span {
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: color .2s;
    border-bottom: 1px dashed var(--border-dark);
}
.search-hint span:hover {
    color: var(--text);
    border-color: var(--text);
}

.hero-proof {
    font-size: .8rem;
    color: var(--muted);
    animation: fadeUp .7s ease .4s both;
}
.hero-proof strong { color: var(--text-secondary); }

/* ---- MARQUEE ---- */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    background: var(--card);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 24s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- SHARED ---- */
.section-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: .75rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: .03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-body {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---- PROBLEM ---- */
.problem-section {
    padding: 7rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.problem-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.problem-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color .3s, transform .2s, box-shadow .2s;
}

.problem-card:hover {
    border-color: var(--border-dark);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.problem-card-icon {
    width: 36px;
    height: 36px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-card-icon svg { stroke: var(--text); width: 16px; height: 16px; }

.problem-card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .25rem;
}

.problem-card p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---- HOW IT WORKS ---- */
.how-section {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.step-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--border-dark);
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: .05em;
}

.step-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .6rem;
}

.step-desc {
    font-size: .83rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- VALUE ---- */
.value-section {
    padding: 7rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.value-card:hover {
    border-color: var(--text);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--text);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.value-icon-wrap svg {
    stroke: var(--white);
    width: 18px;
    height: 18px;
}

.value-card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .4rem;
}

.value-card p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- SOCIAL PROOF ---- */
.proof-section {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.proof-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}

.proof-stat:hover {
    border-color: var(--text);
    box-shadow: var(--shadow-sm);
}

.proof-stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: .03em;
    line-height: 1;
}

.proof-stat-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .5rem;
    font-weight: 500;
    letter-spacing: .04em;
}

/* ---- WHAT'S NEXT ---- */
.next-section {
    padding: 7rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.next-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.next-card:hover {
    border-color: var(--text);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.next-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 10px;
    background: var(--text);
    color: var(--white);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 99px;
}

.next-icon {
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-icon svg { stroke: var(--text); width: 18px; height: 18px; }

.next-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.next-card p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- BOTTOM CTA ---- */
.cta-section {
    padding: 8rem 0;
    background: var(--text);
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-section .section-heading { color: var(--white); }
.cta-section .section-body { color: #888; }

.cta-section .btn-primary {
    background: var(--white);
    color: var(--text);
}
.cta-section .btn-primary:hover {
    background: #e8e8e8;
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.cta-section .btn-ghost {
    border-color: #333;
    color: #888;
}
.cta-section .btn-ghost:hover {
    border-color: #888;
    color: var(--white);
    background: transparent;
}

/* ---- FOOTER ---- */
footer {
    background: var(--text);
    border-top: 1px solid #1a1a1a;
    padding: 2.5rem 0;
    text-align: center;
}

footer p { font-size: .78rem; color: #555; }

footer a {
    color: #888;
    transition: color .2s;
    border-bottom: 1px solid #2a2a2a;
}
footer a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .problem-inner { grid-template-columns: 1fr; gap: 3rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-stats { grid-template-columns: repeat(2, 1fr); }
    .next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 80px 0 70px; }
    .value-grid { grid-template-columns: 1fr; }
    .search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        align-items: stretch;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    .search-hint { text-align: center; }
}
