/* ============================================================================
   Datalumeno — Landing Page Stylesheet
   Light, friendly, boxed design with MARKETBOX branding
   ============================================================================ */

:root {
    /* ── Brand ─────────────────────────────── */
    --primary:       #0ea5e9;
    --primary-dark:  #0284c7;
    --primary-light: #38bdf8;
    --primary-glow:  rgba(14, 165, 233, 0.12);
    --accent:        #f83b54;

    /* ── Surfaces ──────────────────────────── */
    --bg-base:       #f5f7fa;
    --bg-surface:    #ffffff;

    /* ── Borders ───────────────────────────── */
    --border:        #e8ecf1;
    --border-strong: #d1d9e0;

    /* ── Text ──────────────────────────────── */
    --text-primary:  #1e293b;
    --text-muted:    #64748b;
    --text-dim:      #94a3b8;

    /* ── Layout ────────────────────────────── */
    --radius:        12px;
    --radius-sm:     8px;
    --layout-max:    1140px;
    --topnav-height: 58px;
    --shadow:        0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:     0 8px 30px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ══════════════════════════════════════════════
   TOP NAVIGATION (Landing)
   ══════════════════════════════════════════════ */

.landing-nav {
    height: var(--topnav-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-container {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Logo ──────────────────────────────── */
.nav-brand {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-line1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.logo-line2 {
    font-size: 8.5px;
    color: var(--text-dim);
    text-align: right;
    margin-top: 2px;
    letter-spacing: 0.02em;
}
.l-marketbox {
    font-weight: 700;
    color: var(--text-muted);
}
.l-box {
    color: #f83b54;
    font-weight: 700;
}

/* ── Nav Links ─────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    padding: 7px 14px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s;
}
.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-base);
}

/* ── Buttons ───────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(14,165,233,0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(14,165,233,0.35);
}
.btn-outline {
    border: 1.5px solid var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-surface);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}
.btn-lg {
    padding: 12px 30px;
    font-size: 15px;
    border-radius: var(--radius);
}
.btn-full {
    width: 100%;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */

.hero {
    padding: 80px 24px 70px;
    text-align: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.hero-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.8em;
    font-weight: 300;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 16px;
    color: var(--text-primary);
}
.hero h1 strong {
    font-weight: 700;
    color: var(--primary);
}
.hero .subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   DIFFERENTIATOR SECTION
   ══════════════════════════════════════════════ */

.differentiator {
    padding: 70px 24px;
    background: var(--bg-base);
}
.differentiator-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}
.differentiator h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--text-primary);
}
.differentiator h2 strong {
    color: var(--primary);
    font-weight: 700;
}
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.diff-card {
    background: var(--bg-surface);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.2s;
}
.diff-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.diff-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.diff-card h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.diff-card p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════ */

.how-it-works {
    padding: 70px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.how-it-works-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}
.how-it-works h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 40px;
}
.how-it-works h2 strong {
    color: var(--primary);
    font-weight: 700;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.step-item {
    position: relative;
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.step-item h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 6px;
}
.step-item p {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════ */

.pricing {
    padding: 70px 24px;
    background: var(--bg-base);
}
.pricing-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}
.pricing h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 40px;
}
.pricing h2 strong {
    font-weight: 700;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}
.price-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s;
}
.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(14,165,233,0.12);
    position: relative;
}
.price-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.price-card:hover {
    box-shadow: var(--shadow-md);
}
.price-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 4px;
}
.price-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0 2px;
}
.price-card .price-period {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 20px;
}
.price-card ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    text-align: left;
}
.price-card li {
    padding: 8px 0;
    font-size: 0.9em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-base);
}
.price-card li:last-child {
    border-bottom: none;
}

/* ══════════════════════════════════════════════
   FEATURES PAGE
   ══════════════════════════════════════════════ */

.features-hero {
    padding: 60px 24px 40px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.features-hero h1 {
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 12px;
}
.features-hero h1 strong {
    font-weight: 700;
    color: var(--primary);
}
.features-hero p {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.features-section {
    padding: 60px 24px;
}
.features-section:nth-child(even) {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
}
.feature-row {
    display: flex;
    align-items: center;
    gap: 48px;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}
.feature-text {
    flex: 1;
}
.feature-visual {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9em;
}
.feature-text h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-text p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════ */

.cta-section {
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.cta-section h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 12px;
}
.cta-section h2 strong {
    font-weight: 700;
    color: var(--primary);
}
.cta-section p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1em;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.landing-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
}
.footer-container {
    max-width: var(--layout-max);
    margin: 0 auto;
}
.landing-footer p {
    font-size: 0.82em;
    color: var(--text-dim);
    margin: 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero h1 { font-size: 2em; }
    .hero { padding: 50px 20px; }
    .cta-group { flex-direction: column; align-items: center; }
    .diff-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .feature-row,
    .feature-row.reverse { flex-direction: column; gap: 24px; }
    .nav-links { gap: 4px; }
    .nav-links a { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6em; }
    .steps-grid { grid-template-columns: 1fr; }
}
