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

:root {
    --blue:   #1a73e8;
    --blue-d: #1557b0;
    --navy:   #0d1b2a;
    --text:   #202124;
    --muted:  #5f6368;
    --border: #e0e0e0;
    --bg:     #f8f9fa;
    --white:  #ffffff;
    --radius: 16px;
    --font: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 24px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26,115,232,0.35);
}

.btn-primary:hover {
    background: var(--blue-d);
    box-shadow: 0 4px 16px rgba(26,115,232,0.45);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
    border-radius: 32px;
}

/* ===== Nav ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d4d 60%, #1a3d6e 100%);
    padding: 80px 24px 60px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ===== App mockup ===== */
.mock-browser {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.mock-bar {
    background: #2a2a3e;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-url {
    margin-left: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}

.mock-map {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.mock-map-bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px),
        repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px),
        linear-gradient(160deg, #2d4a6b 0%, #1e3a55 40%, #263d5a 100%);
}

/* Fake topo contour lines */
.mock-map-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='100' cy='100' rx='90' ry='60' stroke='rgba(255,255,255,0.06)' fill='none' stroke-width='1'/%3E%3Cellipse cx='100' cy='100' rx='70' ry='45' stroke='rgba(255,255,255,0.06)' fill='none' stroke-width='1'/%3E%3Cellipse cx='100' cy='100' rx='50' ry='30' stroke='rgba(255,255,255,0.08)' fill='none' stroke-width='1'/%3E%3C/svg%3E") center/cover;
}

.mock-sidebar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 130px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 10px;
    font-size: 10px;
    color: #202124;
}

.ms-header { margin-bottom: 8px; }
.ms-title { font-size: 11px; font-weight: 700; display: block; }
.ms-hint { color: #5f6368; font-size: 9px; }

.ms-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 9px;
}

.ms-toggle {
    width: 24px; height: 14px;
    background: #bdc1c6;
    border-radius: 7px;
    position: relative;
    flex-shrink: 0;
}
.ms-toggle::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: white;
    border-radius: 50%;
    top: 2px; left: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.ms-toggle.on { background: #1a73e8; }
.ms-toggle.on::after { left: 12px; }

.ms-route {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.ms-node {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid #CC4400;
    font-size: 7px;
    font-weight: 700;
    color: #882200;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ms-node.start { border-color: #22bb44; color: #116622; }
.ms-node.end   { border-color: #cc2200; color: #881100; }
.ms-arrow { font-size: 8px; color: #5f6368; }
.ms-dist { font-size: 10px; font-weight: 600; color: #1a73e8; }

.mock-junctions {
    position: absolute;
    inset: 0;
}

.junc {
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border: 2.5px solid #CC4400;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 700;
    color: #882200;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}
.junc.active { border-color: #ff8800; }
.junc.end    { border-color: #cc2200; }

.route-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== Regions ===== */
.regions {
    background: var(--bg);
    padding: 80px 24px;
    text-align: center;
}

.regions h2, .features h2, .how h2, .cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text);
}

.region-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
}

.region-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow 0.2s;
}

.region-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.region-flag { font-size: 40px; margin-bottom: 16px; }

.region-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.region-card p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.region-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.region-card ul li::before {
    content: '✓ ';
    color: var(--blue);
    font-weight: 700;
}

/* ===== Features ===== */
.features {
    padding: 80px 24px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.feature {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s;
}

.feature:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    background: var(--white);
}

.feature-icon { font-size: 32px; margin-bottom: 14px; }

.feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== How it works ===== */
.how {
    background: var(--bg);
    padding: 80px 24px;
    text-align: center;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 0 20px;
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.step-arrow {
    font-size: 28px;
    color: var(--border);
    padding-top: 14px;
    flex-shrink: 0;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1a3d6e, var(--navy));
}

.cta h2, .cta p { color: white; }

.cta p {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 32px;
}

/* ===== Footer ===== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

footer p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--blue); }
.footer-attr { font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { order: -1; }
    .region-cards { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); padding: 0; margin: 8px 0; }
    .hero { padding: 48px 24px 40px; }
    nav .nav-cta { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
}
