:root {
  --paper: #ffffff;
  --ink: #141414;
  --muted: #8a8a86;
  --line: #e8e8e5;
  --soft: #f5f5f3;
  --blue: #3978f6;
  --telegram: #229ed9;
  --telegram-hover: #168dcc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

@font-face {
  font-family: "Source Serif 4 Hero";
  src: url("fonts/source-serif-4-600-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cody Glyph";
  src: url("fonts/cody-glyph.woff2?v=bold-2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: inherit; }
button, textarea { font: inherit; }
[hidden] { display: none !important; }

.hero { min-height: 100svh; padding: 0 clamp(22px, 5vw, 76px) 54px; display: flex; flex-direction: column; }
.topbar { width: min(100%, 1400px); min-height: 78px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark { justify-self: start; font-size: 18px; font-weight: 650; letter-spacing: -.03em; text-decoration: none; }
.wordmark span { color: var(--muted); font-weight: 450; }
.topbar nav { display: flex; gap: 34px; color: #666662; font-size: 12px; }
.topbar nav a, .nav-action { text-decoration: none; }
.nav-action { justify-self: end; padding: 10px 15px; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; }

.hero-content { --composer-bottom: 104px; width: min(100%, 1260px); flex: 1; min-height: 0; margin: 0 auto; position: relative; text-align: center; }
.hero-presentation { width: 100%; position: absolute; right: 0; bottom: calc(var(--composer-bottom) + 246px); left: 0; transition: opacity .3s ease, transform .45s ease; }
.hero-intro { width: 100%; max-height: 300px; overflow: visible; opacity: 1; transform: translateY(0); transition: max-height .55s ease, opacity .3s ease, transform .45s ease; }
.eyebrow { margin: 0 0 21px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .01em; }
h1, h2 { letter-spacing: -.03em; }
.hero h1 { width: 100%; max-width: 1100px; margin: 0 auto; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; font-weight: 560; letter-spacing: -.05em; text-wrap: balance; }
.hero h1 span { color: inherit; font-family: "Source Serif 4 Hero", Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: -.05em; }
.hero h1 .hero-cody-inline { font-family: "Cody Glyph"; font-size: 1em; font-style: normal; font-weight: 400; letter-spacing: 0; }
.hero-copy { max-width: 680px; margin: 22px auto 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.hero-cody-mobile { display: none; font-family: "Cody Glyph"; font-style: normal; font-weight: 400; line-height: 1; }
.hero.is-chatting .hero-intro { max-height: 0; opacity: 0; transform: translateY(-24px); pointer-events: none; }
.hero.is-chatting .hero-presentation { opacity: 0; pointer-events: none; }

.conversation { position: absolute; inset: 0; }
.chat-header { display: none; }
.hero.is-chatting .chat-header { width: min(100%, 840px); position: absolute; top: 70px; left: 50%; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; transform: translateX(-50%); }
.chat-avatar { width: 72px; height: 72px; position: relative; overflow: hidden; border: 1px solid #d9d9d5; border-radius: 50%; background: white; }
.chat-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chat-identity { align-self: center; text-align: center; line-height: 1.1; }
.chat-identity strong, .chat-identity span { display: block; }
.chat-identity strong { font-size: 30px; font-weight: 580; letter-spacing: -.04em; }
.chat-identity span { margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 450; }
.chat-header-balance { width: 72px; }
.chat-body { display: flex; flex-direction: column; gap: 9px; text-align: left; scrollbar-width: thin; scrollbar-color: #c8c8c4 transparent; }
.chat-body::-webkit-scrollbar { width: 7px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { min-height: 42px; border: 2px solid transparent; border-radius: 999px; background: #c8c8c4; background-clip: padding-box; }
.chat-body::-webkit-scrollbar-thumb:hover { background: #aaa9a5; background-clip: padding-box; }
.chat-body::-webkit-scrollbar-button { width: 0; height: 0; display: none; }
.chat-body:empty { display: none; }
.hero.is-chatting .chat-body { width: min(100%, 840px); position: absolute; top: 168px; bottom: calc(var(--composer-bottom) + 82px); left: 50%; padding: 0 2px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-50%); }
.hero.is-chatting .chat-body > :first-child { margin-top: auto; }
.message { max-width: 76%; padding: 11px 14px; border-radius: 15px; font-size: 14px; line-height: 1.45; }
.message p { margin: 0; }
.message.assistant { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--soft); }
.message.user { align-self: flex-end; border-bottom-right-radius: 5px; color: white; background: var(--ink); }
.message.thinking { color: var(--muted); animation: pulse 1.2s ease-in-out infinite; }

.chat-form { width: min(100%, 840px); min-height: 58px; position: absolute; bottom: var(--composer-bottom); left: 50%; padding: 7px 8px 7px 20px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid #dededb; border-radius: 999px; background: white; box-shadow: 0 8px 28px rgba(15,15,15,.07); transform: translateX(-50%); }
.chat-form textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 116px; padding: 10px 3px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.5; }
.chat-form textarea::placeholder { color: #aaa9a5; }
.chat-form button { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; }
.chat-form .send { color: white; background: var(--ink); font-size: 20px; }
.chat-form .send:disabled { opacity: .38; }
.chat-note { width: 100%; position: absolute; bottom: calc(var(--composer-bottom) - 22px); left: 0; color: #aaa9a5; font-size: 10px; }

.brief-card { width: min(100%, 620px); margin: 15px auto; padding: 22px 16px; align-self: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.brief-card strong, .brief-card span { display: block; }
.brief-card strong { margin-bottom: 8px; font-size: 15px; }
.brief-card span { color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.brief-card button { position: relative; margin-top: 17px; padding: 11px 15px; overflow: hidden; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .22s ease, color .22s ease; }
.brief-card button:disabled { opacity: .45; cursor: default; }
.brief-card button.is-transferring { min-width: 142px; opacity: 1; cursor: wait; }
.brief-card button.is-transferring::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.22) 48%, transparent 78%); transform: translateX(-120%); animation: transfer-sheen .82s ease-in-out infinite; }
.brief-card button.is-transferred { opacity: 1; background: #aaa9a5; cursor: default; animation: transfer-complete .28s ease-out; }
.telegram-cta { min-height: 48px; margin: 20px 0 24px; padding: 0 20px; align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; color: white; background: var(--telegram); font-size: 13px; font-weight: 650; text-decoration: none; transition: background-color .18s ease; }
.telegram-cta:hover { background: var(--telegram-hover); }
.telegram-cta:focus-visible { outline: 3px solid rgba(34,158,217,.24); outline-offset: 3px; }
.telegram-cta svg { width: 18px; height: 18px; flex: 0 0 auto; }
.telegram-cta-arrow { opacity: .72; }

.how, .possibilities, .lifecycle, .cases, .roles, .engine, .access, .plans, .closing { padding: clamp(90px, 11vw, 165px) clamp(22px, 7vw, 105px); }
.how { border-top: 1px solid var(--line); }
.section-intro { width: min(100%, 1240px); margin: 0 auto; }
.section-intro h2, .closing h2 { margin: 0; font-size: clamp(43px, 6vw, 86px); line-height: 1.02; font-weight: 520; }
.steps { width: min(100%, 1240px); margin: 95px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps article { min-height: 230px; padding: 23px 32px 20px 0; border-right: 1px solid var(--line); }
.steps article + article { padding-left: 32px; }
.steps article:last-child { border-right: 0; }
.steps span, .possibility-list > article > span { color: var(--muted); font-size: 10px; }
.steps h3 { margin: 76px 0 10px; font-size: 22px; font-weight: 560; letter-spacing: -.025em; }
.steps p { max-width: 285px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.possibilities { background: #fafaf9; }
.possibility-list { width: min(100%, 1240px); margin: 90px auto 0; border-top: 1px solid #dcdcd8; }
.possibility-list article { min-height: 114px; display: grid; grid-template-columns: 70px 1fr 1fr; align-items: center; gap: 28px; border-bottom: 1px solid #dcdcd8; }
.possibility-list h3 { margin: 0; font-size: clamp(24px, 3vw, 39px); font-weight: 520; letter-spacing: -.03em; }
.possibility-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.lifecycle { overflow: hidden; }
.lifecycle-intro h2 span, .engine-intro h2 span, .access h2 span, .privacy h2 span, .closing h2 span { font-family: "Source Serif 4 Hero", Georgia, serif; font-style: italic; font-weight: 600; }
.section-copy { max-width: 650px; margin: 34px 0 0 auto; color: var(--muted); font-size: 17px; line-height: 1.55; }
.lifecycle-line { width: min(100%, 1240px); margin: clamp(82px, 9vw, 132px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); list-style: none; }
.lifecycle-line li { min-height: 160px; padding: 20px 20px 22px 0; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); font-size: clamp(21px, 2.4vw, 34px); font-weight: 520; letter-spacing: -.03em; }
.lifecycle-line li + li { padding-left: 20px; }
.lifecycle-line li:last-child { border-right: 0; }
.lifecycle-line span { color: var(--muted); font-size: 10px; font-weight: 450; letter-spacing: 0; }

.cases { border-top: 1px solid var(--line); background: #fafaf9; }
.case-list { width: min(100%, 1240px); margin: clamp(68px, 8vw, 112px) auto 0; border-top: 1px solid #dcdcd8; }
.case-row { min-height: 280px; padding: 24px 0; display: grid; grid-template-columns: 50px minmax(160px, 240px) minmax(280px, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 46px); border-bottom: 1px solid #dcdcd8; text-decoration: none; }
.case-number, .case-type, .case-link { color: var(--muted); font-size: 10px; }
.case-media { width: 100%; height: 230px; overflow: hidden; background: #efefec; }
.case-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; filter: saturate(.86); transition: transform .5s ease, filter .3s ease; }
.case-media-wide img { object-fit: contain; background: #e9e9e6; }
.case-text h3 { max-width: 560px; margin: 11px 0 14px; font-size: clamp(27px, 3.1vw, 42px); line-height: 1.04; font-weight: 530; letter-spacing: -.035em; }
.case-text > p:last-child { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.case-link { align-self: end; padding-bottom: 4px; white-space: nowrap; transition: color .2s ease; }
.case-row:hover .case-media img { transform: scale(1.025); filter: saturate(1); }
.case-row:hover .case-link { color: var(--ink); }

.roles { border-bottom: 1px solid var(--line); }
.role-columns { width: min(100%, 1240px); margin: clamp(68px, 8vw, 112px) auto 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.role-columns article { min-height: 360px; padding: 24px 7vw 36px 0; border-right: 1px solid var(--line); }
.role-columns article + article { padding-right: 0; padding-left: 7vw; border-right: 0; }
.role-label { margin: 0; color: var(--muted); font-size: 11px; }
.role-columns ul { margin: 105px 0 0; padding: 0; list-style: none; }
.role-columns li { padding: 11px 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; font-weight: 520; letter-spacing: -.035em; }

.engine { border-bottom: 1px solid var(--line); }
.engine-list { width: min(100%, 1240px); margin: clamp(68px, 8vw, 112px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.engine-list article { min-height: 310px; padding: 22px clamp(22px, 3vw, 42px) 28px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.engine-list article + article { padding-left: clamp(22px, 3vw, 42px); }
.engine-list article:last-child { padding-right: 0; border-right: 0; }
.engine-list > article > span, .access-list > article > span { color: var(--muted); font-size: 10px; }
.engine-list h3, .access-list h3 { margin: auto 0 12px; font-size: clamp(25px, 3vw, 40px); line-height: 1.04; font-weight: 530; letter-spacing: -.035em; }
.engine-list p, .access-list p { max-width: 350px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.engine-list a { margin-top: 20px; align-self: flex-start; color: var(--ink); font-size: 12px; text-underline-offset: 4px; }

.access { background: #fafaf9; }
.access-list { width: min(100%, 1240px); margin: clamp(68px, 8vw, 112px) auto 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dcdcd8; }
.access-list article { min-height: 260px; padding: 22px clamp(28px, 5vw, 74px) 28px 0; display: flex; flex-direction: column; border-right: 1px solid #dcdcd8; }
.access-list article + article { padding-right: 0; padding-left: clamp(28px, 5vw, 74px); border-right: 0; }

.privacy { min-height: min(82svh, 820px); padding: clamp(100px, 13vw, 190px) clamp(22px, 7vw, 105px); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: white; text-align: center; }
.privacy .eyebrow { color: #8f8f8b; }
.privacy h2 { max-width: 1000px; margin: 0; font-size: clamp(52px, 8vw, 112px); line-height: .94; font-weight: 520; letter-spacing: -.055em; }
.privacy p:last-child { max-width: 650px; margin: 38px auto 0; color: #a7a7a2; font-size: 15px; line-height: 1.55; }

.plans { background: #fafaf9; }
.plan-list { width: min(100%, 1240px); margin: clamp(68px, 8vw, 112px) auto 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dcdcd8; border-bottom: 1px solid #dcdcd8; }
.plan { min-height: 570px; padding: 25px clamp(24px, 4vw, 60px) 34px 0; display: flex; flex-direction: column; border-right: 1px solid #dcdcd8; }
.plan + .plan { padding-right: 0; padding-left: clamp(24px, 4vw, 60px); border-right: 0; }
.plan-name { margin: 0 0 52px; color: var(--muted); font-size: 11px; }
.plan-price { margin: 0; font-size: clamp(48px, 6vw, 80px); line-height: 1; font-weight: 540; letter-spacing: -.05em; }
.plan-price span { color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: 0; }
.plan-description { max-width: 420px; min-height: 64px; margin: 34px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan ul { margin: 0 0 45px; padding: 0; list-style: none; }
.plan li { padding: 12px 0; border-top: 1px solid #e3e3df; font-size: 13px; }
.plan a { margin-top: auto; align-self: flex-start; padding: 12px 16px; display: inline-flex; align-items: center; gap: 18px; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; text-decoration: none; }

.closing { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closing h2 { margin-bottom: 24px; }
.closing > p:not(.eyebrow) { max-width: 550px; margin: 0 0 31px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.closing > a { display: inline-flex; align-items: center; gap: 20px; padding: 12px 17px; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; text-decoration: none; }
footer { min-height: 78px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer a { color: inherit; text-underline-offset: 3px; }

@keyframes pulse { 50% { opacity: .42; } }
@keyframes transfer-sheen { to { transform: translateX(120%); } }
@keyframes transfer-complete { 50% { transform: scale(1.025); } }

@media (max-width: 720px) {
  .hero { padding: 0 16px 30px; }
  .topbar { min-height: 62px; grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero-content { --composer-bottom: clamp(12px, calc(100svh - 728px), 116px); }
  .hero-presentation { bottom: calc(var(--composer-bottom) + 77px); }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero h1 .hero-cody-inline { display: none; }
  .hero-copy { max-width: 300px; font-size: 13px; }
  .hero-cody-mobile { margin: 0 0 24px; display: block; font-size: 112px; }
  .hero.is-chatting .hero-cody-mobile { display: none; }
  .hero.is-chatting .chat-header { top: 54px; grid-template-columns: 58px 1fr 58px; }
  .chat-avatar { width: 54px; height: 54px; }
  .chat-header-balance { width: 54px; }
  .chat-identity strong { font-size: 26px; }
  .chat-identity span { font-size: 11px; }
  .hero.is-chatting .chat-body { top: 130px; bottom: calc(var(--composer-bottom) + 74px); }
  .message { max-width: 88%; font-size: 13px; }
  .chat-form { min-height: 54px; }
  .chat-form button { width: 38px; height: 38px; }
  .chat-form textarea { min-height: 38px; font-size: 13px; }
  .how, .possibilities, .lifecycle, .cases, .roles, .engine, .access, .plans, .closing { padding: 88px 20px; }
  .section-intro h2, .closing h2 { font-size: 42px; }
  .steps { margin-top: 58px; grid-template-columns: 1fr; }
  .steps article, .steps article + article { min-height: 155px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin: 40px 0 8px; }
  .possibility-list { margin-top: 55px; }
  .possibility-list article { min-height: 130px; grid-template-columns: 34px 1fr; gap: 10px; }
  .possibility-list p { grid-column: 2; padding-bottom: 20px; }
  .section-copy { margin: 28px 0 0; font-size: 15px; }
  .lifecycle-line { margin-top: 58px; grid-template-columns: 1fr; }
  .lifecycle-line li, .lifecycle-line li + li { min-height: 82px; padding: 16px 0; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .lifecycle-line li:last-child { border-bottom: 0; }
  .case-list { margin-top: 58px; }
  .case-row { padding: 24px 0 30px; grid-template-columns: 30px 1fr; gap: 18px 10px; }
  .case-media { height: 190px; }
  .case-text, .case-link { grid-column: 2; }
  .case-text h3 { font-size: 30px; }
  .case-link { align-self: auto; }
  .role-columns, .plan-list { grid-template-columns: 1fr; }
  .role-columns article, .role-columns article + article { min-height: auto; padding: 20px 0 48px; border-right: 0; border-bottom: 1px solid var(--line); }
  .role-columns ul { margin-top: 48px; }
  .role-columns li { font-size: 30px; }
  .engine-list, .access-list { grid-template-columns: 1fr; }
  .engine-list article, .engine-list article + article, .access-list article, .access-list article + article { min-height: 210px; padding: 20px 0 28px; border-right: 0; border-bottom: 1px solid #dcdcd8; }
  .engine-list article:last-child, .access-list article:last-child { border-bottom: 0; }
  .engine-list h3, .access-list h3 { margin-top: 62px; }
  .privacy { min-height: 650px; padding: 100px 20px; }
  .privacy h2 { font-size: 58px; }
  .plan, .plan + .plan { min-height: 510px; padding: 24px 0 34px; border-right: 0; border-bottom: 1px solid #dcdcd8; }
  .plan:last-child { border-bottom: 0; }
  .plan-description { min-height: 0; }
  .closing { min-height: 520px; }
}

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