/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: #6366f1; text-decoration: none; transition: color 0.2s; }
a:hover { color: #4f46e5; }

img { max-width: 100%; display: block; }

/* ─── Typography ──────────────────────────────────── */
h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: #1e293b; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #1e293b; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
p { color: #475569; }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    background: #6366f1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.btn:hover { background: #4f46e5; color: #fff; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4); transform: translateY(-1px); }

.btn-sm { padding: 8px 18px; font-size: 13px; box-shadow: 0 1px 4px rgba(99, 102, 241, 0.25); }
.btn-lg { padding: 16px 40px; font-size: 16px; border-radius: 10px; }

.btn-orange { background: #f97316; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }
.btn-orange:hover { background: #ea580c; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4); color: #fff; }

.btn-emerald { background: #10b981; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.btn-emerald:hover { background: #059669; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); color: #fff; }

/* ─── Badge ───────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
    margin-bottom: 16px;
}
.badge-green {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}
.badge-orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

/* ─── Header ──────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: -0.02em;
}
.logo span { font-weight: 400; color: #a5b4fc; }
.logo-sm { font-size: 18px; }

.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-size: 13px; font-weight: 500; color: #64748b; transition: color 0.2s; }
.header-nav a:hover { color: #6366f1; }
.header-nav .btn { color: #fff; }
.header-nav .btn:hover { color: #fff; }

.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #6366f1; }

/* ─── Hero ────────────────────────────────────────── */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.hero-inner { max-width: 740px; margin: 0 auto; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { color: #6366f1; }
.hero-sub { font-size: 17px; color: #475569; margin-bottom: 40px; line-height: 1.8; }
.hero-sub strong { color: #1e293b; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.stat-item {
    background: #fff;
    padding: 22px 16px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.stat-item:nth-child(1) { border-top: 3px solid #6366f1; }
.stat-item:nth-child(2) { border-top: 3px solid #f97316; }
.stat-item:nth-child(3) { border-top: 3px solid #10b981; }
.stat-item:nth-child(4) { border-top: 3px solid #ec4899; }

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-item:nth-child(1) .stat-number { color: #6366f1; }
.stat-item:nth-child(2) .stat-number { color: #f97316; }
.stat-item:nth-child(3) .stat-number { color: #10b981; }
.stat-item:nth-child(4) .stat-number { color: #ec4899; }

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Sections ────────────────────────────────────── */
.section { padding: 80px 0; }
.section-purple {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.section-blue {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.section-mint {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 16px; color: #64748b; }

/* ─── Grid Layouts ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4x2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── Cards ───────────────────────────────────────── */
.card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.card:nth-child(1)::before { background: #6366f1; }
.card:nth-child(2)::before { background: #f97316; }
.card:nth-child(3)::before { background: #10b981; }
.card:nth-child(4)::before { background: #ec4899; }
.card:nth-child(5)::before { background: #0ea5e9; }
.card:nth-child(6)::before { background: #f59e0b; }
.card:nth-child(7)::before { background: #14b8a6; }
.card:nth-child(8)::before { background: #8b5cf6; }

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    line-height: 1;
}
.card:nth-child(1) .card-icon { background: #ede9fe; }
.card:nth-child(2) .card-icon { background: #fff7ed; }
.card:nth-child(3) .card-icon { background: #ecfdf5; }
.card:nth-child(4) .card-icon { background: #fce7f3; }
.card:nth-child(5) .card-icon { background: #e0f2fe; }
.card:nth-child(6) .card-icon { background: #fef3c7; }
.card:nth-child(7) .card-icon { background: #ccfbf1; }
.card:nth-child(8) .card-icon { background: #ede9fe; }

.card h3 { margin-bottom: 8px; color: #1e293b; }
.card p { font-size: 14px; color: #64748b; line-height: 1.65; }

/* ─── Charts ──────────────────────────────────────── */
.chart-container {
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* ─── Tables ──────────────────────────────────────── */
.table-title {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.projection-table-wrap {
    max-width: 700px;
    margin: 0 auto;
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.projection-table, .cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.projection-table th, .cost-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    border-bottom: 1px solid #e2e8f0;
    background: #faf5ff;
}
.cost-table th { background: #fff; }
.projection-table td, .cost-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.projection-table tr:last-child td, .cost-table tr:last-child td {
    border-bottom: none;
}
.row-highlight td {
    background: #ede9fe;
    font-weight: 600;
    color: #4c1d95 !important;
    border-top: 1px solid #c4b5fd;
}
.row-profit td {
    background: #ecfdf5;
    font-weight: 600;
    color: #065f46 !important;
    border-top: 1px solid #6ee7b7;
}
.projection-notes {
    max-width: 700px;
    margin: 16px auto 0;
}
.projection-notes p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ─── Cost Highlights ─────────────────────────────── */
.cost-highlight-box {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cost-highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.cost-highlight-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.cost-highlight-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1.1;
    margin-bottom: 6px;
}
.cost-highlight-number.green { color: #059669; }
.cost-highlight-sub {
    font-size: 13px;
    color: #64748b;
}
.margin-green {
    border-color: #6ee7b7;
    background: #ecfdf5;
}
.featured-box {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.15);
    border-width: 2px;
}
.featured-box .cost-highlight-label {
    color: #065f46;
}

.profit-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.scaling-note {
    margin-top: 40px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
}
.scaling-note strong { color: #6366f1; }

/* ─── Timeline ────────────────────────────────────── */
.scaling-timeline {
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.scaling-timeline h3 {
    text-align: center;
    margin-bottom: 28px;
    color: #1e293b;
}
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #c4b5fd;
}
.timeline-item {
    position: relative;
    margin-bottom: 28px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c4b5fd;
}
.timeline-marker.current {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
.timeline-marker.orange {
    border-color: #fdba74;
}
.timeline-marker.blue {
    border-color: #93c5fd;
}
.timeline-content strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}
.timeline-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ─── CTA Section ─────────────────────────────────── */
.section-cta {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 80px 0;
}
.cta-section {
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
    padding: 48px 36px;
    background: #fff;
    border: 2px solid #c4b5fd;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}
.cta-section h2 { color: #1e293b; margin-bottom: 16px; }
.cta-text {
    font-size: 16px;
    color: #475569;
    margin-bottom: 36px;
    line-height: 1.7;
}
.cta-text strong { color: #6366f1; }

.cta-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    text-align: left;
    margin-bottom: 40px;
}
.cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}
.cta-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ede9fe;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* ─── Market Comparison ───────────────────────────── */
.market-comparison {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    height: 100%;
}
.market-comparison .cost-table th:last-child { color: #059669; }
.td-yes { color: #059669 !important; font-weight: 600; }
.td-no { color: #dc2626 !important; }

.market-insight-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 20px;
}
.market-insight-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.market-insight-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 10px;
}
.market-insight-card p:last-child { margin-bottom: 0; }
.market-insight-card em { color: #6366f1; font-style: italic; }
.highlight-card {
    border-color: #6ee7b7;
    background: #ecfdf5;
}
.highlight-card h3 { color: #065f46; }

/* ─── Footer ──────────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand p { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.footer-contact p { font-size: 12px; color: #94a3b8; margin-bottom: 2px; }
.footer-contact a { font-size: 14px; font-weight: 600; color: #6366f1; }
.footer-copy p { font-size: 12px; color: #94a3b8; }

/* ─── Mobile Nav (open state) ─────────────────────── */
.header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4x2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .header-nav { display: none; }
    .mobile-toggle { display: block; }

    .hero { padding: 110px 0 60px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .section { padding: 56px 0; }

    .grid-2, .grid-3, .grid-4x2 { grid-template-columns: 1fr; gap: 20px; }

    .cta-highlights { grid-template-columns: 1fr; }
    .cta-section { padding: 32px 20px; }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cost-highlight-number { font-size: 2rem; }
    .stat-number { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 15px; }
    .btn-lg { padding: 14px 28px; font-size: 14px; }
}
