:root {
    --ink: #171923;
    --muted: #697080;
    --line: #e7e9ef;
    --blue: #2563eb;
    --purple: #7c3aed;
    --soft: #f6f7fb;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--ink);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
    width: min(1180px, calc(100% - 48px));
    height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.topbar > a { display: inline-flex; flex: 0 0 auto; align-items: center; }
.topbar img { display: block; width: 86px; height: auto; }

.topnav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
}

.topnav a {
    color: #555d6c;
    text-decoration: none;
    transition: color .2s ease;
}

.topnav a:hover, .text-link:hover { color: var(--blue); }

.hero {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;
    padding: 88px 0 72px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -.06em;
}

.hero .intro {
    max-width: 740px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.button.secondary {
    border-color: var(--line);
    background: #f4f5fa;
    color: #34405b;
}

.visual {
    width: min(1180px, calc(100% - 48px));
    min-height: 340px;
    margin: 0 auto 88px;
    padding: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e3e7f2;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, .16), transparent 54%),
        linear-gradient(145deg, #f6f7ff, #f4f2fb 55%, #fafbff);
}

.visual img {
    display: block;
    width: min(900px, 100%);
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

.visual.image-only {
    width: min(1000px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto 88px;
    padding: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.visual.image-only img {
    width: 100%;
    border-radius: 18px;
}

.diagram {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.diagram-card {
    min-height: 130px;
    padding: 22px;
    border: 1px solid #e6e9f5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 32px rgba(43, 53, 98, .06);
}

.diagram-card strong { display: block; margin-bottom: 8px; font-size: 15px; }
.diagram-card span { color: var(--muted); font-size: 12px; }
.diagram-card.featured { border-color: #b8c7ff; box-shadow: 0 12px 32px rgba(59, 91, 219, .13); }

.content {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.content h2 {
    margin: 0 0 16px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.content h3 { line-height: 1.3; }
.content p { color: #555d6c; }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin: 72px 0;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.panel h3 { margin: 0 0 10px; font-size: 20px; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.step { padding: 24px; border-radius: 16px; background: var(--soft); }
.step:before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.callout { margin: 78px 0; padding: 38px; border-radius: 20px; background: #f5f6fc; }
.callout p { margin-bottom: 20px; }
.text-link { color: var(--blue); }

.site-footer {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    color: #818797;
    font-size: 12px;
}

.site-footer > a { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (max-width: 700px) {
    .topbar { width: calc(100% - 32px); height: 70px; }
    .topnav { gap: 14px; font-size: 11px; }
    .topbar .topnav a:first-child { display: none; }
    .hero { width: calc(100% - 36px); padding: 62px 0 48px; }
    .hero h1 { font-size: clamp(38px, 11vw, 54px); }
    .visual { width: calc(100% - 32px); min-height: 220px; margin-bottom: 60px; padding: 14px; }
    .visual.image-only { width: calc(100% - 32px); min-height: 0; margin-bottom: 60px; padding: 0; }
    .visual img { border-radius: 12px; }
    .diagram, .split, .feature-list, .steps { grid-template-columns: 1fr; gap: 14px; }
    .diagram-card { min-height: 90px; }
    .content { width: calc(100% - 36px); margin-bottom: 64px; }
    .split { margin: 48px 0; }
    .callout { margin: 52px 0; padding: 26px; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px; }
}
