:root {
    color-scheme: light;
    --ink: #163d40;
    --muted: #53696c;
    --accent: #0e655a;
    --line: #d5e2df;
    --surface: #ffffff;
    --page: #f4f7f3;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.8;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #d89529; outline-offset: 5px; }
.site-header, main, footer { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 20px; font-weight: bold; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #d3f1cb; font-size: 25px; }
.phase-badge { font-size: 12px; border: 1px solid var(--line); border-radius: 30px; padding: 5px 14px; background: #eaf1e8; white-space: nowrap; }
.hero { max-width: 800px; padding-block: 55px 32px; }
.eyebrow, .section-label { color: var(--accent); font-size: 13px; font-weight: bold; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 51px); line-height: 1.5; margin: 0 0 18px; letter-spacing: -1px; }
.intro { max-width: 710px; color: var(--muted); font-size: 17px; margin-block: 0 20px; }
.primary-link { display: inline-flex; align-items: center; gap: 28px; min-height: 48px; padding: 10px 20px; background: var(--accent); color: white; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: bold; }
.primary-link + .primary-link { margin-inline-start: 8px; background: var(--ink); }
.primary-link:hover { background: #094e46; }
.scope-note { font-size: 14px; color: #4d6159; padding-inline-start: 14px; border-inline-start: 3px solid #81a679; }
.scope-note strong { color: var(--ink); }
.connection-card { padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 30px #163d4005; }
.card-heading { display: flex; align-items: center; gap: 15px; }
.step-number { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; background: #e8f1ed; border-radius: 14px; color: var(--accent); font-size: 17px; font-weight: bold; }
.section-label { font-size: 11px; margin: 0; }
h2 { font-size: 21px; margin: 0; }
.connection-card > p { color: var(--muted); font-size: 14px; }
.connection-actions { display: flex; align-items: center; gap: 24px; margin-block: 22px; flex-wrap: wrap; }
button { min-height: 48px; border: 0; border-radius: 10px; background: var(--accent); color: white; padding: 10px 22px; font: inherit; font-size: 14px; font-weight: bold; cursor: pointer; display: inline-flex; justify-content: space-between; gap: 32px; align-items: center; }
button:hover { background: #094e46; }
button:disabled { opacity: .65; cursor: wait; }
.api-link { font-size: 13px; }
.connection-card .connection-result { background: #f4f7f5; border-radius: 9px; padding: 12px 15px; margin: 0; overflow-wrap: anywhere; }
.connection-result[data-state="success"] { background: #e7f4e9; color: #1e5936; }
.connection-result[data-state="error"] { background: #fff0eb; color: #9a331d; }
.architecture { margin-block: 42px 50px; }
.section-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.section-topline > span { font-size: 12px; color: var(--muted); }
.architecture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.architecture-grid article { border-top: 1px solid var(--line); padding-top: 20px; }
.item-label { color: var(--accent); font-size: 12px; }
h3 { font-size: 18px; margin: 6px 0; }
.architecture-grid p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.tech { font-size: 11px; color: var(--muted); display: inline-block; }
footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 640px) {
    .site-header, main, footer { width: calc(100% - 32px); }
    .site-header { padding-block: 18px; gap: 8px; flex-wrap: wrap; }
    .brand { font-size: 17px; gap: 8px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
    .phase-badge { padding: 4px 9px; font-size: 10px; }
    .hero { padding-block: 34px 24px; }
    .intro { font-size: 15px; }
    .connection-card { padding: 22px 19px; border-radius: 16px; }
    .connection-actions { gap: 18px; }
    .connection-actions button { width: 100%; }
    h2 { font-size: 19px; }
    .architecture { margin-block: 30px; }
    .architecture-grid { grid-template-columns: 1fr; gap: 23px; }
    footer { flex-wrap: wrap; gap: 6px; }
}
