:root {
    --brand: #0d47a1;
    --brand-strong: #0a3880;
    --accent: #eb9414;
    --bg: #ffffff;
    --bg-alt: #f4f6fa;
    --card: #ffffff;
    --text: #2b2d33;
    --muted: #5d6270;
    --line: #dde2ec;
    --code-bg: #0f1a2e;
    --code-text: #d7e1f3;
    --code-key: #7fb2ff;
    --code-str: #f5b14c;
    --code-num: #8fd9a8;
    --code-dim: #7d8aa3;
    --radius: 12px;
    --max: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #5b9bf5;
        --brand-strong: #82b4fa;
        --bg: #14161b;
        --bg-alt: #1b1e25;
        --card: #20242c;
        --text: #e6e8ee;
        --muted: #a3a9b7;
        --line: #2f343f;
        --code-bg: #0b1220;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

code, pre { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; color: var(--brand); }
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a, .lang span { padding: 4px 9px; color: var(--muted); }
.lang span { background: var(--brand); color: #fff; }
.lang a:hover { text-decoration: none; color: var(--text); }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Code card */
.code-card { background: var(--code-bg); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(13, 71, 161, .45); overflow: hidden; }
.code-card .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-card .bar span { margin-left: 8px; font-size: 12px; color: var(--code-dim); font-family: ui-monospace, Consolas, monospace; }
.code-card pre { margin: 0; padding: 16px 18px; color: var(--code-text); font-size: 13.5px; line-height: 1.55; overflow-x: auto; }
.code-card .c { color: var(--code-dim); }
.code-card .k { color: var(--code-key); }
.code-card .s { color: var(--code-str); }
.code-card .n { color: var(--code-num); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 42em; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.icon svg { width: 22px; height: 22px; fill: currentColor; }

.problems .card { border-left: 3px solid var(--accent); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* Get started */
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.start ol { margin: 0; padding-left: 20px; color: var(--muted); }
.start ol li { margin-bottom: 10px; }
.start code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--text); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-weight: 600; }
.links a:hover { border-color: var(--brand); text-decoration: none; }
.links small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { text-align: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
    .hero .wrap, .start { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .lang { margin-left: auto; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 56px; }
    section { padding: 56px 0; }
    .code-card pre { font-size: 12px; }
}

/* AI */
section.ai { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.ai > .wrap > .icon { margin-bottom: 14px; }

/* Screenshots */
.screen { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 24px 60px -28px rgba(13, 71, 161, .5); }
.screen img { display: block; width: 100%; height: auto; }
section.shot { padding: 0 0 72px; }
section.shot .screen { max-width: 820px; margin: 0 auto; }
.tour-row { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.tour-row:first-of-type { margin-top: 0; }
.tour-row.rev { grid-template-columns: 1fr minmax(0, 460px); }
.tour-row.rev .screen { order: 2; }
.tour-row h3 { font-size: 22px; margin: 0 0 8px; }
.tour-row p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
    .tour-row, .tour-row.rev { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
    .tour-row.rev .screen { order: 0; }
    section.shot { padding-bottom: 48px; }
}

/* Enlarged screenshot (CSS only: the page runs no scripts) */
.screen a { display: block; cursor: zoom-in; }
.zoom { display: none; position: fixed; inset: 0; z-index: 100; padding: 24px; background: rgba(8, 12, 20, .88); cursor: zoom-out; align-items: center; justify-content: center; }
.zoom:target { display: flex; }
.zoom picture { display: contents; }
.zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
