:root {
    color-scheme: light;
    --paper: #f6f4ef;
    --surface: #ffffff;
    --surface-soft: #efede7;
    --ink: #1c2025;
    --muted: #626971;
    --line: #d8d5ce;
    --line-strong: #b9b5ad;
    --accent: #3854f4;
    --accent-dark: #263ec0;
    --accent-soft: #e8ebff;
    --night: #171a1f;
    --focus: #7357ff;
    --shadow: 0 24px 70px rgb(28 32 37 / 10%);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --content: 1240px;
    --gutter: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
}

button,
input,
textarea { font: inherit; }

a { color: inherit; }

img { max-width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--night);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgb(28 32 37 / 10%);
    background: rgb(246 244 239 / 94%);
    backdrop-filter: blur(16px);
    transition: transform 180ms ease;
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header:focus-within { transform: translateY(0); }

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(100%, var(--content));
    min-height: 76px;
    margin: 0 auto;
    padding: 10px var(--gutter);
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.site-brand__mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
}

.site-brand__mark img { display: block; width: 100%; height: 100%; }

.site-brand__wordmark { display: grid; line-height: 1; }
.site-brand__wordmark strong { font-size: 18px; letter-spacing: .13em; }
.site-brand__wordmark small { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .34em; }
.site-brand__ai { color: var(--accent); }

.site-nav {
    display: flex;
    justify-content: center;
    min-width: 0;
    gap: clamp(14px, 2.5vw, 34px);
}

.site-nav a {
    min-height: 44px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover { color: var(--ink); }

.header-action {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 16px;
    gap: 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.header-action span { color: #aeb8ff; font-size: 18px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
    width: min(100%, var(--content));
    min-height: calc(100svh - 76px);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 8vw, 112px);
    align-items: start;
    gap: clamp(36px, 6vw, 84px);
}

.hero__intro { position: relative; max-width: 660px; }

.tag,
.section-label {
    margin: 0 0 18px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tag { display: flex; align-items: center; gap: 10px; }
.tag span { width: 28px; height: 2px; background: var(--accent); }

.hero h1,
.section-heading h2,
.example__copy h2,
.manager h2,
.closing-cta h2 {
    margin: 0;
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 740;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero h1 { max-width: 760px; font-size: clamp(40px, 4.6vw, 64px); }

.hero__lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: #454b52;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    gap: 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--accent); }
.button--primary:hover { background: var(--accent-dark); }
.button--secondary { border-color: var(--line-strong); background: transparent; }
.button--secondary:hover { border-color: var(--ink); background: var(--surface); }
.button--light { color: var(--night); background: #fff; }
.button__icon { font-size: 20px; line-height: 1; }

.hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 36px 0 0;
    padding-top: 22px;
    gap: 20px;
    border-top: 1px solid var(--line);
}

.hero__facts div { display: grid; gap: 4px; }
.hero__facts dt { color: var(--ink); font-size: 13px; font-weight: 850; }
.hero__facts dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.project-chat {
    min-width: 0;
    overflow: clip;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.project-chat__bar {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.project-chat__bar > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
.project-chat__bar img { width: 34px; height: 34px; flex: 0 0 auto; }
.project-chat__bar p { display: grid; min-width: 0; margin: 0; gap: 2px; line-height: 1.2; }
.project-chat__bar p span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-chat__bar p strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.project-chat__bar > a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 10px 4px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.project-chat__bar > a:hover { color: var(--ink); }

.project-chat__frame {
    display: block;
    width: 100%;
    height: 570px;
    min-height: 470px;
    border: 0;
    background: #fbfaf7;
}

.project-chat__privacy,
.project-chat__fallback {
    margin: 0;
    padding: 11px 20px 14px;
    color: var(--muted);
    background: #fbfaf7;
    font-size: 11px;
    line-height: 1.45;
}

.chat-dock {
    position: fixed;
    z-index: 48;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    padding: 8px;
    gap: 8px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 18px;
    color: #fff;
    background: var(--night);
    box-shadow: 0 18px 52px rgb(0 0 0 / 24%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.chat-dock.is-visible { opacity: 1; transform: translateY(0); }
.chat-dock__state { display: flex; min-width: 130px; align-items: center; padding: 0 10px; gap: 9px; }
.chat-dock__state i { width: 8px; height: 8px; border-radius: 50%; background: #aeb8ff; }
.chat-dock__state small { font-size: 12px; font-weight: 750; }
.chat-dock button { min-height: 44px; padding: 9px 13px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; color: #fff; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.chat-dock button:hover { background: rgb(255 255 255 / 10%); }

.section {
    width: min(100%, var(--content));
    margin: 0 auto;
    padding: clamp(72px, 10vw, 132px) var(--gutter);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
    align-items: end;
    margin-bottom: clamp(42px, 7vw, 80px);
    gap: 40px;
}

.section-heading .section-label { grid-column: 1 / -1; margin-bottom: -18px; }
.section-heading h2 { max-width: 760px; font-size: clamp(36px, 5vw, 66px); }
.section-heading > p:last-child { max-width: 630px; margin: 0; color: var(--muted); font-size: 18px; }
.section-heading--compact { grid-template-columns: 1fr; align-items: start; }
.section-heading--compact h2 { max-width: 850px; }

.service { border-top: 1px solid var(--line); }

.service-path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.service-path li { min-width: 0; padding: 24px 22px 12px 0; border-right: 1px solid var(--line); }
.service-path li + li { padding-left: 22px; }
.service-path li:last-child { border-right: 0; }
.service-path span { color: var(--accent); font-size: 12px; font-weight: 850; }
.service-path h3 { min-height: 3em; margin: 34px 0 16px; font-size: 21px; line-height: 1.3; }
.service-path p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.example {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    align-items: center;
    gap: clamp(38px, 7vw, 92px);
}

.example__visual { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: #ddd; }
.example__visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.example__visual figcaption { position: absolute; right: 14px; bottom: 14px; display: grid; max-width: calc(100% - 28px); padding: 10px 12px; gap: 2px; border-radius: 10px; color: #fff; background: rgb(20 23 28 / 84%); backdrop-filter: blur(8px); }
.example__visual figcaption strong { font-size: 12px; }
.example__visual figcaption span { color: #d6d9df; font-size: 10px; }
.example__copy h2 { font-size: clamp(34px, 4.6vw, 58px); }
.example__copy > p:not(.section-label) { margin: 26px 0 0; color: var(--muted); font-size: 18px; }
.example__copy ul { display: grid; margin: 28px 0 0; padding: 0; gap: 14px; list-style: none; }
.example__copy li { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }

.delivery { border-top: 1px solid var(--line); }
.delivery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.delivery article { min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.delivery article > span { color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.delivery h3 { margin: 44px 0 14px; font-size: 23px; line-height: 1.25; }
.delivery p { margin: 0; color: var(--muted); font-size: 15px; }

.live-summary {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: clamp(42px, 8vw, 110px);
    border-top: 1px solid var(--line);
}
.live-summary__copy h2 { max-width: 720px; font-size: clamp(36px, 4.8vw, 62px); }
.live-summary__copy > p:not(.section-label) { max-width: 42ch; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.live-summary__copy .button { margin-top: 28px; }
.request-card { padding: clamp(22px, 4vw, 32px); border-radius: var(--radius-lg); color: #fff; background: var(--night); box-shadow: var(--shadow-card); }
.request-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.request-card header small { color: rgb(255 255 255 / 52%); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.request-card h3 { margin: 5px 0 0; font-size: 30px; line-height: 1.15; }
.request-card header > span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; color: var(--ink); background: #aeb8ff; font-size: 11px; font-weight: 800; }
.request-card dl { display: grid; margin: 24px 0 0; }
.request-card dl div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.request-card dt { color: rgb(255 255 255 / 56%); font-size: 13px; }
.request-card dd { margin: 0; font-size: 13px; font-weight: 750; text-align: right; }

.manager {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, .85fr);
    gap: clamp(42px, 9vw, 120px);
    border-radius: var(--radius-lg);
    color: #fff;
    background: var(--night);
}

.manager .section-label { color: #aeb8ff; }
.manager h2 { font-size: clamp(36px, 4.8vw, 62px); }
.manager__copy { align-self: end; }
.manager__copy p { margin: 0 0 28px; color: #c7cbd1; }
.manager .button--secondary { border-color: #737b86; }
.manager .button--secondary:hover { border-color: #fff; color: var(--night); background: #fff; }

.faq { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(360px, 1.25fr); gap: clamp(42px, 8vw, 100px); }
.faq .section-heading { display: block; margin: 0; }
.faq .section-heading h2 { font-size: clamp(36px, 4.6vw, 60px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 66px; padding: 18px 48px 18px 0; font-size: 17px; font-weight: 800; cursor: pointer; }
.faq-list p { max-width: 690px; margin: -4px 0 22px; color: var(--muted); font-size: 15px; }

.closing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .6fr) auto;
    width: min(calc(100% - 32px), calc(var(--content) - 32px));
    margin: 0 auto 16px;
    padding: clamp(46px, 7vw, 86px);
    align-items: end;
    gap: clamp(28px, 5vw, 64px);
    border-radius: var(--radius-lg);
    color: #fff;
    background: var(--accent);
}

.closing-cta .section-label { color: #fff; }
.closing-cta h2 { max-width: 720px; font-size: clamp(36px, 5vw, 66px); }
.closing-cta > p { margin: 0; color: #e5e8ff; font-size: 15px; }

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    width: min(100%, var(--content));
    margin: 0 auto;
    padding: 38px var(--gutter) max(38px, env(safe-area-inset-bottom));
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer p:last-child { max-width: 330px; text-align: right; }
.site-brand--footer { color: var(--ink); }

@media (max-width: 1080px) {
    .site-header__inner { display: flex; flex-wrap: wrap; }
    .site-header__inner > * { min-width: 0; }
    .site-nav { order: 3; flex: 1 0 100%; }
    .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .header-action { margin-left: auto; max-width: 100%; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .live-summary { grid-template-columns: 1fr; }
    .hero__intro { max-width: 850px; }
    .hero h1 { max-width: 900px; }
    .project-chat { width: min(100%, 820px); }
    .service-path { grid-template-columns: 1fr 1fr; }
    .service-path li:nth-child(2) { border-right: 0; }
    .service-path li:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .service-path li:nth-child(3) { padding-left: 0; }
    .site-footer { grid-template-columns: auto 1fr; }
    .site-footer p:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 132px; }
    body { font-size: 16px; }
    .site-header__inner { min-height: 64px; padding-top: 8px; padding-bottom: 8px; gap: 6px 16px; }
    .site-brand__mark { width: 32px; height: 32px; }
    .site-brand__wordmark strong { font-size: 16px; }
    .header-action { min-height: 44px; padding: 9px 13px; font-size: 12px; }
    .site-nav { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 22px; }
    .site-nav a { font-size: 12px; }
    .hero { padding-top: 40px; gap: 42px; }
    .hero h1 { font-size: clamp(38px, 12vw, 58px); }
    .hero__lead { margin-top: 22px; font-size: 18px; }
    .hero__facts { grid-template-columns: 1fr; gap: 14px; }
    .hero__facts div + div { padding-top: 14px; border-top: 1px solid var(--line); }
    .project-chat { width: 100%; border-radius: 22px; }
    .project-chat__bar { min-height: 68px; padding: 12px 14px; }
    .project-chat__bar img { width: 30px; height: 30px; }
    .project-chat__bar p strong { font-size: 13px; }
    .project-chat__bar > a { font-size: 0; }
    .project-chat__bar > a span { font-size: 18px; }
    .project-chat__frame { height: min(620px, calc(100svh - 190px)); min-height: 360px; }
    .section-heading { grid-template-columns: 1fr; margin-bottom: 42px; gap: 22px; }
    .section-heading .section-label { margin-bottom: 0; }
    .section-heading h2,
    .example__copy h2,
    .manager h2,
    .closing-cta h2 { font-size: clamp(34px, 10.5vw, 48px); }
    .service-path { grid-template-columns: 1fr; }
    .service-path li,
    .service-path li + li { padding: 22px 0; border-right: 0; border-top: 1px solid var(--line); }
    .service-path li:first-child { border-top: 0; }
    .service-path h3 { min-height: 0; margin: 18px 0 10px; }
    .example { grid-template-columns: 1fr; }
    .example__visual { order: 2; }
    .delivery__grid { grid-template-columns: 1fr; }
    .delivery article { min-height: 0; }
    .delivery h3 { margin-top: 26px; }
    .live-summary { grid-template-columns: 1fr; }
    .request-card { padding: 22px; }
    .manager { grid-template-columns: 1fr; margin-inline: 16px; width: auto; padding-inline: 24px; }
    .faq { grid-template-columns: 1fr; }
    .closing-cta { grid-template-columns: 1fr; padding: 34px 24px; align-items: start; }
    .closing-cta .button { justify-self: start; }
    .site-footer { grid-template-columns: 1fr; }
    .chat-dock { left: 12px; right: 12px; grid-template-columns: 1fr auto; }
    .chat-dock__state { min-width: 0; }
    .chat-dock [data-chat-dock-microphone] { grid-column: 1; }
    .chat-dock [data-chat-dock-return] { grid-column: 2; grid-row: 1 / 3; max-width: 144px; }
}

@media (max-width: 420px) {
    .hero__actions { display: grid; }
    .button { width: 100%; }
    .project-chat__privacy { padding-inline: 14px; }
    .request-card header { flex-direction: column; }
    .request-card dl div { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 0; }
    .request-card dd { text-align: left; }
    .closing-cta .button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
