:root {
    --bg: #f4f8ff;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --ink: #101828;
    --muted: #5f677a;
    --line: rgba(16, 24, 40, 0.08);
    --accent: #0d7cff;
    --accent-2: #12c6d1;
    --accent-3: #7af7d3;
    --shadow-soft: 0 18px 50px rgba(21, 34, 69, 0.1);
    --shadow-strong: 0 28px 90px rgba(21, 34, 69, 0.18);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: min(100vw - 24px, 1160px);
    --display: "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
    --body: "Instrument Sans", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    font-family: var(--body);
    line-height: 1.5;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(122, 247, 211, 0.34), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(13, 124, 255, 0.2), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 45%, #f7faff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 86%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    position: relative;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 0;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.92), rgba(249, 252, 255, 0.62));
    border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.brand-mark::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(13, 124, 255, 0.42);
}

.main-nav {
    display: none;
}

.header-cta {
    min-height: 42px;
    padding-inline: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0d7cff, #1a95ff 54%, #12c6d1 100%);
    box-shadow: 0 18px 40px rgba(13, 124, 255, 0.28);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
    border-color: var(--line);
}

.hero,
.section {
    position: relative;
    padding: 36px 0;
}

.scene {
    overflow: clip;
}

.scene-contrast::before,
.scene-cta::before {
    content: "";
    position: absolute;
    inset: 10px 0;
    z-index: -1;
    border-radius: 34px;
}

.scene-contrast::before {
    background:
        radial-gradient(circle at top right, rgba(13, 124, 255, 0.13), transparent 24%),
        linear-gradient(180deg, rgba(231, 239, 255, 0.48), rgba(255, 255, 255, 0.7));
}

.scene-cta::before {
    background:
        radial-gradient(circle at top right, rgba(13, 124, 255, 0.16), transparent 24%),
        radial-gradient(circle at left bottom, rgba(122, 247, 211, 0.14), transparent 22%),
        rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
strong {
    margin: 0;
    font-family: var(--display);
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1 {
    font-size: clamp(2.2rem, 9vw, 4.6rem);
    line-height: 0.96;
}

h2 {
    font-size: clamp(1.75rem, 7vw, 3.2rem);
    line-height: 1.02;
}

h3 {
    font-size: clamp(1.24rem, 5vw, 1.72rem);
    line-height: 1.08;
}

p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.eyebrow,
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.eyebrow::before,
.meta-tag::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-layout,
.service-grid,
.process-grid,
.showcase-stack {
    display: grid;
    gap: 18px;
}

.hero-copy {
    display: grid;
    gap: 14px;
}

.hero-copy p {
    max-width: 46ch;
    font-size: clamp(1rem, 3.8vw, 1.08rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stage {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 247, 255, 0.78)),
        radial-gradient(circle at top right, rgba(13, 124, 255, 0.12), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-strong);
    isolation: isolate;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.85;
    pointer-events: none;
}

.glow-a {
    top: 8%;
    right: -8%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(13, 124, 255, 0.24), transparent 70%);
}

.glow-b {
    left: -10%;
    bottom: 6%;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(122, 247, 211, 0.2), transparent 70%);
}

.hero-flow,
.service-card,
.process-card,
.about-card,
.cta-panel,
.showcase-card,
.tg-scene,
.site-scene {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

.float-layer {
    transform: translate3d(0, var(--scene-offset, 0px), 0);
}

.hero-flow {
    display: grid;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 244, 255, 0.88)),
        radial-gradient(circle at 86% 10%, rgba(13, 124, 255, 0.16), transparent 26%);
}

.hero-flow__intro,
.hero-flow__result,
.hero-flow-card {
    display: grid;
    gap: 8px;
    border-radius: 20px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.hero-flow__intro,
.hero-flow__result {
    padding: 16px;
}

.hero-flow__intro strong,
.hero-flow__result strong {
    font-size: clamp(1.02rem, 4vw, 1.28rem);
    line-height: 1.08;
}

.hero-flow__intro p,
.hero-flow__result p {
    font-size: 0.92rem;
    line-height: 1.42;
}

.hero-flow__steps {
    display: grid;
    gap: 10px;
}

.hero-flow-card {
    padding: 14px;
}

.hero-flow-card span,
.hero-flow__label {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(13, 124, 255, 0.08);
    color: #2855a0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-flow-card strong {
    font-size: 1rem;
    line-height: 1.12;
}

.hero-flow-card p {
    font-size: 0.84rem;
    line-height: 1.4;
}

.hero-flow__result {
    background:
        linear-gradient(140deg, rgba(13, 124, 255, 0.12), rgba(18, 198, 209, 0.1)),
        rgba(255, 255, 255, 0.86);
}

.section-intro {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    max-width: 48rem;
}

.service-grid,
.process-grid {
    grid-template-columns: 1fr;
}

.service-card,
.process-card,
.about-card,
.cta-panel,
.showcase-card {
    padding: 18px;
}

.service-card,
.process-card {
    display: grid;
    gap: 10px;
}

.step-badge {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(13, 124, 255, 0.22);
}

.showcase-stack {
    gap: 24px;
}

.showcase-card {
    display: grid;
    gap: 16px;
}

.showcase-copy {
    display: grid;
    gap: 10px;
}

.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-list span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 24, 40, 0.08);
    color: #31415f;
    font-size: 0.83rem;
}

.tg-scene,
.site-scene {
    padding: 14px;
}

.tg-scene {
    border-radius: 28px;
    backdrop-filter: none;
}

.tg-scene--food {
    background: linear-gradient(180deg, rgba(229, 239, 221, 0.94), rgba(214, 230, 201, 0.9));
}

.tg-scene--ai {
    background: linear-gradient(180deg, rgba(229, 239, 255, 0.95), rgba(212, 226, 244, 0.92));
}

.tg-head {
    margin-bottom: 10px;
    padding: 8px 14px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34435b;
}

.tg-chat {
    display: grid;
    gap: 8px;
}

.tg-bubble {
    max-width: 92%;
    width: fit-content;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.34;
    box-shadow: 0 8px 16px rgba(9, 14, 28, 0.09);
}

.tg-bubble--in {
    background: #fff;
    border-bottom-left-radius: 8px;
}

.tg-bubble--out {
    justify-self: end;
    background: #efffc7;
    border-bottom-right-radius: 8px;
}

.tg-bubble--done {
    background: linear-gradient(135deg, rgba(13, 124, 255, 0.18), rgba(18, 198, 209, 0.22));
    color: #0d2a5c;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

.tg-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.tg-options button {
    border: 0;
    border-radius: 10px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.85);
    color: #24334c;
    font-size: 0.78rem;
    font-weight: 600;
}

.tg-options--small button {
    font-size: 0.75rem;
}

.tg-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tg-pills span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 600;
}

.tg-typing {
    width: fit-content;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    display: inline-flex;
    gap: 6px;
}

.tg-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(13, 124, 255, 0.68);
    animation: typingPulse 1.1s ease-in-out infinite;
}

.tg-typing span:nth-child(2) {
    animation-delay: 120ms;
}

.tg-typing span:nth-child(3) {
    animation-delay: 240ms;
}

.site-scene {
    display: grid;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(242, 246, 255, 0.82));
}

.site-desktop,
.site-mobile {
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 24, 40, 0.07);
    background: rgba(255, 255, 255, 0.82);
}

.site-desktop {
    padding: 12px;
}

.site-layout {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.site-hero-block {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(13, 124, 255, 0.13), rgba(18, 198, 209, 0.08));
}

.site-hero-block strong {
    font-size: 1rem;
}

.site-hero-block button {
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d7cff, #12c6d1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    color: #31415f;
}

.site-row span:first-child {
    color: #0e2348;
    font-weight: 700;
}

.site-mobile {
    padding: 12px;
    display: grid;
    gap: 6px;
    max-width: 230px;
}

.site-mobile span {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(13, 124, 255, 0.1);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #2855a0;
}

.site-mobile strong {
    font-size: 1rem;
}

.clinic-system {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 12%, rgba(13, 124, 255, 0.18), transparent 32%),
        radial-gradient(circle at 12% 100%, rgba(122, 247, 211, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(235, 243, 255, 0.84));
}

.clinic-mockup {
    margin: 0;
    border-radius: 20px;
    padding: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.9)),
        radial-gradient(circle at 88% 18%, rgba(13, 124, 255, 0.16), transparent 35%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.18);
}

.clinic-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

.clinic-explain,
.clinic-summary,
.clinic-steps,
.clinic-step {
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
}

.clinic-explain,
.clinic-summary {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.clinic-explain strong,
.clinic-summary strong {
    font-size: 1.02rem;
    line-height: 1.18;
}

.clinic-explain p,
.clinic-summary p {
    font-size: 0.88rem;
    line-height: 1.38;
}

.clinic-steps {
    display: grid;
    gap: 8px;
}

.clinic-step {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.clinic-step span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #3965aa;
}

.clinic-step strong {
    font-size: 0.95rem;
    line-height: 1.12;
}

.clinic-step p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.section-cta {
    margin-top: 20px;
}

.about-card {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-points span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(16, 24, 40, 0.08);
    color: #243453;
    font-size: 0.84rem;
    font-weight: 600;
}

.cta-panel {
    max-width: 840px;
    display: grid;
    gap: 12px;
}

.cta-panel--closing {
    max-width: 1080px;
    gap: 20px;
}

.cta-content {
    display: grid;
    gap: 12px;
}

.cta-visual {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(circle at 90% 14%, rgba(13, 124, 255, 0.14), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(122, 247, 211, 0.22), transparent 28%),
        rgba(255, 255, 255, 0.7);
}

.cta-chat-card,
.cta-flow-card {
    border-radius: 16px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.cta-chat-card {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.cta-chat-card p {
    color: #2f3f5f;
    font-size: 0.86rem;
    line-height: 1.35;
}

.cta-chat-card--user {
    justify-self: end;
    max-width: 92%;
    background: linear-gradient(160deg, rgba(13, 124, 255, 0.12), rgba(18, 198, 209, 0.12));
}

.cta-chip {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.06);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #24406f;
    font-weight: 700;
}

.cta-flow-card {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.cta-flow-card strong {
    font-size: 0.9rem;
}

.cta-flow-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2b4a7b;
    text-transform: uppercase;
}

.cta-flow-line i {
    width: 12px;
    height: 1px;
    background: linear-gradient(90deg, #0d7cff, rgba(13, 124, 255, 0.24));
}

.mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-sticky-cta .btn {
    width: 100%;
}

.mobile-sticky-cta.is-hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ai-chat-widget {
    position: fixed;
    right: 12px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px);
    z-index: 92;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.ai-chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: var(--body);
    font-size: 0.94rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d7cff, #12c6d1);
    box-shadow: 0 18px 38px rgba(13, 124, 255, 0.3);
    cursor: pointer;
}

.ai-chat-launcher__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7af7d3;
    box-shadow: 0 0 0 5px rgba(122, 247, 211, 0.22);
}

.ai-chat-panel {
    width: min(calc(100vw - 24px), 390px);
    max-height: min(76vh, 620px);
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr) auto auto;
    gap: 10px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background:
        radial-gradient(circle at top right, rgba(13, 124, 255, 0.16), transparent 38%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.89));
    box-shadow: 0 26px 80px rgba(16, 24, 40, 0.24);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.ai-chat-widget.is-open .ai-chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ai-chat-header strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.ai-chat-header p {
    margin-top: 4px;
    font-size: 0.77rem;
    color: #42587e;
}

.ai-chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 24, 40, 0.08);
    color: #1d3358;
    font-size: 1rem;
    cursor: pointer;
}

.ai-chat-messages {
    min-height: 180px;
    overflow: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.ai-msg {
    width: fit-content;
    max-width: 90%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.07);
    background: rgba(255, 255, 255, 0.9);
}

.ai-msg p {
    margin: 0;
    font-size: 0.88rem;
    color: #1f3152;
    line-height: 1.42;
}

.ai-msg--assistant {
    border-bottom-left-radius: 6px;
}

.ai-msg--user {
    justify-self: end;
    border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, rgba(13, 124, 255, 0.14), rgba(18, 198, 209, 0.16));
}

.ai-msg-cta {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f4ca8;
    background: rgba(13, 124, 255, 0.12);
}

.ai-msg--typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-msg--typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(13, 124, 255, 0.68);
    animation: typingPulse 1.1s ease-in-out infinite;
}

.ai-msg--typing span:nth-child(2) {
    animation-delay: 120ms;
}

.ai-msg--typing span:nth-child(3) {
    animation-delay: 240ms;
}

.ai-chat-status {
    display: none;
    font-size: 0.76rem;
    color: #3d5783;
}

.ai-chat-status.is-visible {
    display: block;
}

.ai-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.ai-chat-form textarea {
    width: 100%;
    min-height: 48px;
    max-height: 180px;
    resize: none;
    border: 1px solid rgba(16, 24, 40, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 14px;
    font-family: var(--body);
    font-size: 0.9rem;
    line-height: 1.35;
    color: #10203d;
}

.ai-chat-form textarea:focus-visible {
    outline: 2px solid rgba(13, 124, 255, 0.36);
    outline-offset: 1px;
}

.ai-chat-submit {
    min-height: 48px;
    padding-inline: 16px;
}

.ai-chat-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
    transition: opacity 420ms cubic-bezier(.2,.7,.2,1), transform 420ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scene-stage .stagger-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 360ms ease, transform 360ms ease;
    transition-delay: calc(var(--delay, 0) * 78ms);
}

.scene-stage--fast .stagger-item {
    transition: opacity 280ms ease, transform 280ms ease;
    transition-delay: calc(var(--delay, 0) * 46ms);
}

.scene-stage.in-view .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 700px) {
    .ai-chat-widget {
        right: 18px;
        bottom: 18px;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .showcase-card {
        padding: 24px;
    }

    .site-scene {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .clinic-system {
        padding: 16px;
    }

    .about-card,
    .cta-panel {
        padding: 26px;
    }
}

@media (min-width: 1100px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .main-nav {
        display: inline-flex;
        justify-self: center;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.48);
        border: 1px solid rgba(255, 255, 255, 0.62);
        box-shadow: var(--shadow-soft);
    }

    .main-nav a {
        padding: 8px 14px;
        border-radius: 999px;
        color: var(--muted);
        font-size: 0.94rem;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        background: rgba(13, 124, 255, 0.09);
        color: var(--ink);
        outline: none;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 28px;
    }

    .hero-stage {
        min-height: 640px;
        padding: 28px;
    }

    .hero-flow {
        width: min(100%, 520px);
        margin-left: auto;
    }

    .hero-flow__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .showcase-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: 24px;
    }

    .showcase-card:nth-child(2n) .showcase-copy {
        order: 2;
    }

    .showcase-card:nth-child(2n) .tg-scene,
    .showcase-card:nth-child(2n) .site-scene {
        order: 1;
    }

    .clinic-mockup {
        margin-bottom: 6px;
    }

    .clinic-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta-panel--closing {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        align-items: center;
        gap: 28px;
    }

    .cta-visual {
        min-height: 290px;
        align-content: center;
    }

    .mobile-sticky-cta {
        display: none;
    }
}

@media (max-width: 699px) {
    .ai-chat-widget.is-open {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
        z-index: 96;
        background: rgba(5, 12, 25, 0.32);
        backdrop-filter: blur(3px);
    }

    .ai-chat-widget.is-open .ai-chat-launcher {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

    .ai-chat-widget.is-open .ai-chat-panel {
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }

    .reveal,
    .scene-stage .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

@keyframes typingPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}
