:root {
    --blue: #0088cc;
    --accent: #0088cc;
    --ink: #222;
    --text: #222;
    --muted: #707579;
    --line: #e8e8e8;
    --bg: #fff;
    --green: #278351;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #8acdee; outline-offset: 3px; }
.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.nav { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 18px; font-weight: 500; white-space: nowrap; }
.logo { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #2aabee; color: #fff; }
.nav-links, .userbar { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { position: relative; padding: 17px 0; }
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 2px 2px 0 0; background: #179cde; }
.language-switcher { position: relative; margin-left: auto; font-size: 13px; }
.language-switcher details { position: relative; }
.language-switcher summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #d9e8ef; border-radius: 4px; color: var(--blue); cursor: pointer; list-style: none; user-select: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.language-switcher details[open] summary { background: #f3f9fc; border-color: #b9ddec; }
.language-switcher details > div { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; grid-template-columns: repeat(2, minmax(125px, 1fr)); gap: 2px; width: 290px; padding: 8px; border: 1px solid #d9e8ef; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(40, 90, 115, .14); }
.language-switcher details > div a { padding: 8px 9px; border-radius: 4px; color: var(--text); white-space: nowrap; }
.language-switcher details > div a:hover, .language-switcher details > div a[aria-current="true"] { background: #eaf6fc; color: #1677a8; text-decoration: none; }
.userbar { color: var(--muted); }
.logout { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 8px 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 500; }
h1 { font-size: 32px; margin: 0 0 18px; }
h2 { font-size: 25px; margin: 0 0 20px; }
h3 { font-size: 21px; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; }
.muted, .mini, .microcopy { color: var(--muted); }
.mini, .microcopy { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px; border: 1px solid transparent; border-radius: 4px; background: #2481cc; color: #fff; font-size: 15px; font-weight: 600; text-align: center; cursor: pointer; line-height: 1.5; }
.btn:hover { background: #1a8ad5; text-decoration: none; }
.btn-ghost { color: var(--blue); background: #fff; border-color: #c4dfed; }
.btn-ghost:hover { background: #f3f9fc; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 25px 0 12px; }
.landing-hero { text-align: center; padding: 48px 0 42px; }
.product-mark { display: grid; place-items: center; width: 128px; height: 128px; margin: 0 auto 20px; border-radius: 50%; background: #2aabee; color: white; }
.product-mark svg { width: 76px; height: 76px; }
.landing-hero h1 { font-size: 42px; margin-bottom: 6px; letter-spacing: -1px; }
.tagline { margin: 0 0 20px; color: #555; font-size: 21px; font-weight: 300; }
.landing-hero .lead { max-width: 580px; margin: 0 auto; font-size: 16px; }
.demo { max-width: 740px; margin: 0 auto 50px; }
.pipeline { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 16px; }
.post { border: 1px solid #d8e2e8; border-radius: 8px; overflow: hidden; background: #fff; }
.post-head { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--blue); font-weight: 600; font-size: 15px; }
.post-body { padding: 16px; }
.post-body p { margin: 12px 0 0; font-size: 14px; }
.post-body svg { display: block; width: 100%; height: auto; background: #eff8fc; border-radius: 3px; }
.post-caption { display: block; color: var(--blue); text-align: center; margin-top: 16px; font-size: 18px; }
.arrow { color: #64b5dd; text-align: center; font-size: 32px; }
.landing-section { padding: 42px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.section-head p { color: var(--muted); margin: 0; }
.grid-3, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.feature, .step { text-align: center; }
.feature h3, .step h3 { color: var(--blue); }
.feature p, .step p { margin: 0; }
.feature-icon { width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 20px; color: #399fce; background: #eff8fc; border-radius: 50%; }
.feature-icon svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 18px; border: 1px solid #99d2ed; color: var(--blue); border-radius: 50%; font-size: 22px; }
.final-cta { max-width: 690px; margin: 0 auto; text-align: center; padding: 32px 0 54px; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row strong { color: var(--text); font-weight: 500; }
.hero { padding: 48px 0 24px; }
.hero .lead { max-width: 700px; margin: 0; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.grid { display: grid; gap: 24px; max-width: 800px; margin: 0 auto; padding: 12px 0 60px; }
.connect-hero { text-align: center; }
.connect-hero .lead { margin: 0 auto; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 26px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.card.done { border-left: 3px solid #59b3df; }
.step-title, .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.step-title h2, .card-head h2 { font-size: 22px; margin: 0; }
.badge, .state { padding: 4px 9px; border-radius: 3px; background: #f3f5f6; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.badge.ok, .state.active { background: #eaf6fc; color: #1677a8; }
label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 600; }
input, select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid #ccc; border-radius: 3px; }
input::placeholder { color: #82888c; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.preview { margin-top: 18px; padding: 14px; background: #f5f9fb; border-left: 3px solid #79bfdf; overflow-wrap: anywhere; }
.alert, .error { padding: 14px 16px; margin: 16px 0; background: #edf7fc; border-left: 3px solid #5badd6; color: #286789; }
.alert.err, .error { color: #a33c3c; background: #fff3f3; border-color: #d78585; }
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 12px 0; overflow-wrap: anywhere; }
.stat b { display: block; font-size: 14px; }
.shell { width: min(420px, calc(100% - 40px)); margin: 52px auto; }
.shell .card { padding: 0; border: 0; }
.shell h1 { text-align: center; font-size: 28px; }
.shell .muted { text-align: center; }
.shell .btn { width: 100%; margin-top: 24px; }
.social { display: grid; gap: 12px; margin-top: 28px; }
.social a { display: block; border: 1px solid #c4dfed; border-radius: 4px; padding: 11px; text-align: center; font-size: 14px; }
.social a:hover { background: #f3f9fc; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.foot { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 12px 0 60px; }
.empty { text-align: center; border-top: 1px solid var(--line); padding: 60px 20px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.meta { display: grid; gap: 14px; margin: 24px 0; font-size: 14px; color: var(--muted); }
.meta b { display: block; color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.action { padding: 8px 12px; border: 1px solid #c4dfed; border-radius: 3px; background: white; color: var(--blue); cursor: pointer; font-size: 14px; }
.action.danger { color: #a33c3c; border-color: #e7cccc; }
@media (max-width: 760px) {
    .nav { gap: 10px; flex-wrap: wrap; padding-top: 10px; }
    .nav-links { gap: 18px; flex-wrap: wrap; }
    .nav-links a { padding: 10px 0; font-size: 14px; }
    .userbar { margin-left: auto; padding-bottom: 10px; }
    .language-switcher { margin-left: 0; }
    .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
    .cards, .status { grid-template-columns: 1fr; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .step-title { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 32px); }
    .nav-links { gap: 15px; }
    .language-switcher details > div { right: -8px; width: min(290px, calc(100vw - 32px)); }
    .landing-hero { padding-top: 34px; }
    .landing-hero h1 { font-size: 36px; }
    .tagline { font-size: 18px; }
    h1 { font-size: 28px; }
    .pipeline { grid-template-columns: minmax(0, 1fr); max-width: 280px; margin: auto; gap: 14px; }
    .arrow { transform: rotate(90deg); line-height: 1; }
    .grid-3, .steps, .row { grid-template-columns: 1fr; }
    .feature, .step { max-width: 320px; margin: auto; }
    .card { padding: 20px; }
    .userbar span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
    .landing-section { padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
