/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1a2332;
    --navy-light: #243044;
    --accent: #2d7dd2;
    --accent-hover: #2468b0;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-alt: #f7f8fa;
    --bg-dark: #1a2332;
    --border: #e2e5ea;
    --radius: 6px;
    --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ── Nav ── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    height: 120px;
    width: auto;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.82) 30%, rgba(255,255,255,0) 75%);
    padding: 20px 40px;
    border-radius: 8px;
}

.nav-cta {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(rgba(18, 28, 42, 0.7), rgba(18, 28, 42, 0.8)), url('hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding-bottom: 80px;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 0;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 700px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    max-width: 620px;
    margin-top: 20px;
}

.hero-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.hero-btn:hover { background: var(--accent-hover); }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }

.section h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    line-height: 1.2;
}

.section-dark h2 { color: #fff; }

/* ── Two-column layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.col p { margin-bottom: 16px; color: var(--text-light); }
.col p strong { color: var(--text); }

/* ── Stat card ── */
.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}

.stat-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 8px;
}

.stat-detail {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.stat-breakdown-btn {
    margin-top: 14px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 16px;
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.stat-breakdown-btn:hover { background: var(--bg); border-color: var(--accent); }

.stat-breakdown {
    margin-top: 16px;
    text-align: left;
}
.stat-breakdown table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-breakdown td { padding: 5px 8px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.stat-breakdown td:last-child { text-align: right; font-family: -apple-system, monospace; font-weight: 600; color: var(--text); }
.stat-breakdown .breakdown-total { font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--border); }
.breakdown-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; font-style: italic; }

/* ── Workflow comparison diagram ── */
.wf-reveal-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 32px;
    background: #fff;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--accent); font-size: 17px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.3px;
}
.wf-reveal-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wf-arrow { display: inline-block; transition: transform 0.4s ease; font-size: 14px; }
.wf-reveal-btn.wf-open .wf-arrow { transform: rotate(180deg); }

.wf-diagram-wrapper {
    max-height: 0; overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}
.wf-diagram-wrapper.wf-open { opacity: 1; }

.wf-col-header { font-size: 16px; font-weight: 600; fill: #333; }
.wf-arr { stroke: #bbb; stroke-width: 1.5; }

.wf-box-gray rect { fill: #f0f0f0; stroke: #ccc; stroke-width: 0.5; }
.wf-box-gray .wf-title { fill: #555; } .wf-box-gray .wf-sub { fill: #888; }
.wf-box-coral rect { fill: #fff0eb; stroke: #e0825a; stroke-width: 0.5; }
.wf-box-coral .wf-title { fill: #b85a30; } .wf-box-coral .wf-sub { fill: #c07050; }
.wf-box-red rect { fill: #fff0f0; stroke: #d45555; stroke-width: 0.5; }
.wf-box-red .wf-title { fill: #b83030; } .wf-box-red .wf-sub { fill: #c06060; }
.wf-box-teal rect { fill: #edf8f4; stroke: #2a9a70; stroke-width: 0.5; }
.wf-box-teal .wf-title { fill: #1a7a55; } .wf-box-teal .wf-sub { fill: #3a8a65; }
.wf-box-green rect { fill: #f0f8eb; stroke: #5a9a25; stroke-width: 0.5; }
.wf-box-green .wf-title { fill: #3a7a10; } .wf-box-green .wf-sub { fill: #5a8a30; }
.wf-box-amber rect { fill: #fdf6e8; stroke: #c08a20; stroke-width: 0.5; }
.wf-box-amber .wf-title { fill: #8a6010; } .wf-box-amber .wf-sub { fill: #a08030; }

.wf-title { font-size: 14px; font-weight: 500; }
.wf-sub { font-size: 12px; }

.wf-step { opacity: 0; transform: translateY(12px); }
.wf-diagram-wrapper.wf-open .wf-step { animation: wfFadeUp 0.4s ease forwards; }
@keyframes wfFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── Eliminates grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.elim-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.elim-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.elim-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── Hidden costs section ── */
.section-sub {
    font-size: 16px;
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.cost-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.cost-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.cost-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cost-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.cost-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
}

.cost-note {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
}

/* ── Feature list ── */
.feature-list { list-style: none; }

.feature { margin-bottom: 24px; }

.feature dt {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature dd {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Deploy card ── */
.deploy-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.deploy-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.deploy-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.deploy-card p:last-child { margin-bottom: 0; }

/* ── Video demos ── */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.video-card h4 { font-size: 16px; font-weight: 700; margin-top: 14px; }
.video-card p { font-size: 14px; color: var(--text-light); margin-top: 4px; line-height: 1.5; }

.video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-thumb-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.video-thumb-link:hover .video-play-icon { color: #fff; }
.video-thumb-link:hover .video-thumb { opacity: 0.85; }

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Market stats ── */
.market-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.market-stat {
    display: flex;
    flex-direction: column;
}

.ms-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.ms-label {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.4;
}

/* ── Contact ── */
.contact-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.form-wrap {
    max-width: 560px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group select option { color: var(--text); background: #fff; }

.form-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.form-btn:hover { background: var(--accent-hover); }

/* ── Footer ── */
.footer {
    background: #141c28;
    color: rgba(255,255,255,0.5);
    padding: 32px 0;
    text-align: center;
}

.footer-logo {
    height: 96px;
    width: auto;
    margin-bottom: 8px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.65) 30%, rgba(255,255,255,0) 75%);
    padding: 20px 40px;
    border-radius: 8px;
}

.footer-text { font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .nav-logo { height: 80px; padding: 12px 24px; }
    .nav-cta { font-size: 13px; padding: 6px 14px; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .cost-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding-bottom: 56px; }
    .hero-content { padding-top: 40px; }
    .section { padding: 48px 0; }
    .stat-number { font-size: 56px; }
    .ms-num { font-size: 36px; }
}
