:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f0f3fa;
  --ink: #121826;
  --ink-2: #253047;
  --muted: #626b7a;
  --line: #d9dee7;
  --line-dark: #c7ceda;
  --accent: #315cff;
  --accent-dark: #2448d8;
  --accent-soft: #edf2ff;
  --navy: #111a33;
  --success: #147a55;
  --danger: #b42318;
  --shadow-sm: 0 8px 24px rgba(19, 31, 59, 0.08);
  --shadow-md: 0 24px 70px rgba(19, 31, 59, 0.13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1180px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open, body.modal-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
p, h1, h2, h3, h4 { margin-top: 0; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
[hidden] { display: none !important; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-tight { padding-top: 70px; padding-bottom: 70px; }
.section-alt { background: #fff; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .muted, .section-dark p { color: #c8d0e3; }
.section-dark .eyebrow { color: #aebeff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(40px, 4.8vw, 60px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 20px; }
h3 { font-size: clamp(22px, 2.1vw, 30px); margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 52px); max-width: 920px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font-size: 16px; font-weight: 750; color: var(--accent); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-links a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid rgba(49,92,255,.24);
  outline-offset: 3px;
}
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 26px rgba(49,92,255,.22); }
.button-primary:hover { background: var(--accent-dark); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #000; }
.button-outline { border-color: var(--line-dark); background: transparent; }
.button-outline:hover { background: #fff; border-color: #aeb7c5; }
.button-light { color: var(--ink); background: #fff; }
.button-small { min-height: 40px; padding: 9px 14px; border-radius: 11px; font-size: 14px; }
.button-danger { color: #fff; background: var(--danger); }
.text-link { color: var(--accent); font-weight: 760; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--accent); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247,246,242,.90);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: rgba(201,207,219,.8); box-shadow: 0 7px 22px rgba(15, 27, 52, .05); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 850; letter-spacing: -0.02em; }
.brand-mark {
  width: 35px; height: 35px; display: grid; place-items: center;
  border-radius: 11px; color: #fff; background: var(--ink); font-size: 15px; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 999px; background: var(--accent); transition: right .2s ease;
}
.nav-links > a:not(.nav-cta):hover::after, .nav-links > a[aria-current="page"]::after { right: 0; }
.nav-cta { padding: 11px 16px; color: #fff; background: var(--ink); border-radius: 12px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-button span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }

.home-hero { padding: 90px 0 94px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(460px, 1.07fr); gap: 70px; align-items: center; }
.hero-copy h1 { max-width: 720px; }
.hero-copy .lead { max-width: 650px; margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-visual { position: relative; min-height: 545px; }
.hero-orbit { position: absolute; inset: 5% 2% auto auto; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 36%, rgba(49,92,255,.24), rgba(49,92,255,.05) 55%, transparent 72%); filter: blur(4px); }
.browser-shell {
  position: absolute;
  inset: 40px 0 auto auto;
  width: min(100%, 650px);
  overflow: hidden;
  border: 1px solid #d4d9e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(1.1deg);
}
.browser-bar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f3f4f7; border-bottom: 1px solid #e4e7ed; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c5c9d1; }
.browser-bar span { width: 46%; height: 10px; margin-left: 8px; border-radius: 999px; background: #e0e3e8; }
.browser-shot { aspect-ratio: 16/10; width: 100%; object-fit: cover; object-position: top; background: #ececec; }
.hero-phone {
  position: absolute;
  right: -6px;
  bottom: 7px;
  width: 194px;
  padding: 8px;
  border-radius: 28px;
  background: #101317;
  box-shadow: 0 25px 45px rgba(18,24,38,.28);
  transform: rotate(-3.3deg);
}
.hero-phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 55px; height: 8px; border-radius: 999px; background: #181d23; transform: translateX(-50%); z-index: 2; }
.hero-phone img { width: 100%; aspect-ratio: 9/17; object-fit: cover; object-position: top; border-radius: 21px; }
.hero-label {
  position: absolute;
  left: 3%;
  bottom: 35px;
  width: 250px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 17px;
  color: #fff;
  background: rgba(17,26,51,.94);
  box-shadow: var(--shadow-sm);
}
.hero-label b { display: block; margin-bottom: 3px; }
.hero-label small { color: #cbd2e2; }

.logo-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip .container { display: grid; grid-template-columns: repeat(4,1fr); }
.logo-strip span { padding: 21px 20px; text-align: center; font-size: 14px; font-weight: 760; border-right: 1px solid var(--line); }
.logo-strip span:last-child { border-right: 0; }

.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 560px; }

.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px .9fr 1.3fr auto; gap: 28px; align-items: start; padding: 35px 0; border-bottom: 1px solid var(--line); }
.service-row .index { color: var(--accent); font-weight: 850; }
.service-row h3 { font-size: 26px; }
.service-row p { color: var(--muted); margin: 3px 0 0; }
.service-row .service-action { align-self: center; }

.work-list { display: grid; gap: 88px; }
.work-item { display: grid; grid-template-columns: 1.13fr .87fr; gap: 70px; align-items: center; }
.work-item:nth-child(even) .work-visual { order: 2; }
.work-item:nth-child(even) .work-copy { order: 1; }
.work-visual {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 26px;
  background: #e8ecf4;
  box-shadow: var(--shadow-sm);
}
.work-visual img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: top; transition: transform .5s ease; }
.work-item:hover .work-visual img { transform: scale(1.015); }
.work-copy .work-no { display: block; margin-bottom: 26px; color: var(--muted); font-size: 14px; font-weight: 750; }
.work-copy h3 { font-size: clamp(32px, 3.3vw, 46px); }
.work-copy p { max-width: 510px; color: var(--muted); font-size: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 30px; }
.tag { padding: 7px 11px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.64); }

.process { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.2); }
.process article { padding: 30px 30px 8px 0; border-right: 1px solid rgba(255,255,255,.18); }
.process article:not(:first-child) { padding-left: 30px; }
.process article:last-child { border-right: 0; }
.process b { display: block; margin-bottom: 42px; color: #aebeff; font-size: 13px; }
.process h3 { font-size: 24px; }
.process p { color: #bdc6d9; }

.pricing-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.pricing-intro { position: sticky; top: 120px; }
.pricing-intro p { color: var(--muted); font-size: 18px; }
.price-table { border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.price-row b { display: block; font-size: 21px; }
.price-row small { color: var(--muted); font-size: 14px; }
.price-row strong { font-size: 22px; white-space: nowrap; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.cta-band { padding: 76px 0; background: var(--accent); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 760px; margin-bottom: 12px; }
.cta-band p { color: #dfe6ff; font-size: 18px; }

.page-hero { padding: 86px 0 72px; }
.page-hero p { max-width: 760px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; }
.page-hero-side { padding: 24px; border-left: 1px solid var(--line-dark); color: var(--muted); }

.detail-list { border-top: 1px solid var(--line); }
.detail-item { display: grid; grid-template-columns: 80px .9fr 1.25fr; gap: 36px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.detail-item > span { color: var(--accent); font-weight: 850; }
.detail-item p { color: var(--muted); }
.detail-item ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.story-copy { font-size: 18px; color: var(--muted); }
.story-copy p + p { margin-top: 22px; }
.person-block { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person-avatar { width: 130px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(145deg, var(--accent), #788cff); font-size: 34px; font-weight: 850; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 0; border: 0; background: none; text-align: left; font-weight: 780; font-size: 19px; cursor: pointer; }
.faq-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-dark); border-radius: 50%; transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; color: var(--muted); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > div { padding-bottom: 25px; max-width: 780px; }

.form-shell { display: grid; grid-template-columns: .72fr 1.28fr; gap: 66px; align-items: start; }
.form-aside { position: sticky; top: 118px; }
.contact-lines { display: grid; gap: 14px; margin-top: 28px; }
.contact-lines a, .contact-lines span { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label, .field > span { font-weight: 740; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(49,92,255,.1); outline: none; }
.field small { color: var(--muted); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { margin-top: 5px; }
.form-status { min-height: 24px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.config-shell { display: grid; grid-template-columns: 1fr 390px; gap: 58px; align-items: start; }
.config-main { display: grid; gap: 34px; }
.config-step { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.config-step h2 { font-size: 30px; margin-bottom: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.choice:hover { border-color: #aeb7c7; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(49,92,255,.08); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice b { display: block; }
.choice small { display: block; margin-top: 3px; color: var(--muted); }
.config-summary { position: sticky; top: 112px; padding: 28px; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: var(--shadow-sm); }
.config-summary h2 { font-size: 28px; }
.config-total { display: block; margin: 22px 0 4px; font-size: 42px; font-weight: 880; letter-spacing: -0.04em; }
.config-summary small { color: #c8d0e0; }
.summary-list { display: grid; gap: 10px; margin: 24px 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.summary-list div { display: flex; justify-content: space-between; gap: 20px; color: #d6dcec; }

.examples-intro { display: grid; grid-template-columns: 1fr .72fr; gap: 60px; align-items: end; }
.example-index { border-top: 1px solid var(--line); }
.example-index-item { display: grid; grid-template-columns: 84px .9fr 1.4fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.example-index-item span { color: var(--muted); }
.example-index-item p { margin: 0; color: var(--muted); }

.site-footer { padding: 72px 0 26px; color: #e6eaf3; background: #0c1325; }
.footer-top { display: grid; grid-template-columns: 1.45fr repeat(3,.7fr); gap: 56px; padding-bottom: 54px; }
.footer-main p { max-width: 370px; color: #aeb8cc; }
.footer-main .brand { margin-bottom: 20px; }
.footer-main .brand-mark { color: var(--ink); background: #fff; }
.footer-links { display: grid; align-content: start; gap: 11px; }
.footer-links strong { margin-bottom: 8px; color: #fff; }
.footer-links a, .footer-links span { color: #aeb8cc; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.13); color: #8f9ab0; font-size: 13px; }
.footer-bottom button { color: inherit; }

/* Chat */
.chat-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 17px 8px 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 15px 36px rgba(14,23,44,.24);
  font-weight: 760;
  cursor: pointer;
}
.chat-launch i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-style: normal; font-size: 14px; }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 120;
  width: min(390px, calc(100vw - 30px));
  height: min(650px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(11,20,42,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.chat-head { display: flex; justify-content: space-between; gap: 18px; padding: 17px 18px; color: #fff; background: var(--navy); }
.chat-head b { display: block; }
.chat-head small { color: #c6cee0; }
.chat-head-actions { display: flex; gap: 6px; }
.chat-head-actions button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: transparent; cursor: pointer; }
.chat-messages { overflow-y: auto; padding: 18px; background: #f6f7fa; }
.chat-message { display: flex; margin: 0 0 13px; }
.chat-message.user { justify-content: flex-end; }
.chat-bubble { max-width: 84%; padding: 11px 13px; border-radius: 15px 15px 15px 5px; background: #fff; box-shadow: 0 2px 8px rgba(20,32,60,.06); white-space: pre-wrap; font-size: 14px; }
.chat-message.user .chat-bubble { color: #fff; background: var(--accent); border-radius: 15px 15px 5px 15px; }
.chat-meta { display: block; margin-top: 5px; color: #8a93a3; font-size: 11px; }
.chat-message.user .chat-meta { color: rgba(255,255,255,.75); text-align: right; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chat-suggestion { padding: 8px 10px; border: 1px solid #cfd6e3; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.chat-thinking .chat-bubble { display: inline-flex; gap: 4px; align-items: center; }
.chat-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #8d96a8; animation: blink 1s infinite alternate; }
.chat-thinking i:nth-child(2) { animation-delay: .18s; }
.chat-thinking i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { to { opacity: .25; transform: translateY(-2px); } }
.chat-foot { border-top: 1px solid var(--line); background: #fff; }
.chat-disclaimer { padding: 9px 14px 0; color: #7c8595; font-size: 11px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 12px 13px; }
.chat-form input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 11px; }
.chat-form button { width: 44px; height: 44px; border: 0; border-radius: 11px; color: #fff; background: var(--accent); cursor: pointer; }

/* Cookies */
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200; }
.cookie-inner { width: min(980px,100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px; border: 1px solid var(--line-dark); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.cookie-inner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.cookie-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.cookie-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 20px; background: rgba(12,19,37,.56); }
.cookie-dialog { width: min(570px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-md); }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.cookie-option p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c8cfda; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Portal */
.portal-page { min-height: 100vh; background: #eef1f7; }
.portal-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; border-bottom: 1px solid #d8deea; background: #fff; }
.portal-header-actions { display: flex; gap: 9px; align-items: center; }
.portal-login-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 34px 20px; }
.portal-login { width: min(470px,100%); padding: 36px; border: 1px solid #d7ddea; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-login h1 { font-size: 40px; }
.portal-login form { display: grid; gap: 18px; margin-top: 26px; }
.portal-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 250px 1fr; }
.portal-sidebar { padding: 24px 16px; color: #d8dfef; background: #111a31; }
.portal-sidebar small { display: block; padding: 0 12px 14px; color: #8f9bb6; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.portal-tab { width: 100%; padding: 12px; border: 0; border-radius: 10px; color: #b8c2d8; background: transparent; text-align: left; font-weight: 700; cursor: pointer; }
.portal-tab:hover, .portal-tab.active { color: #fff; background: rgba(255,255,255,.09); }
.portal-content { min-width: 0; padding: 34px; }
.portal-view { display: none; }
.portal-view.active { display: block; }
.portal-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.portal-topline h1 { font-size: 38px; margin-bottom: 8px; }
.portal-topline p { color: var(--muted); }
.portal-status-pill { padding: 8px 12px; border-radius: 999px; color: #2741a8; background: #dfe6ff; font-size: 13px; font-weight: 800; }
.portal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.portal-panel { padding: 24px; border: 1px solid #d8deea; border-radius: 16px; background: #fff; box-shadow: 0 5px 15px rgba(19,31,59,.04); }
.portal-panel h2 { font-size: 22px; margin-bottom: 18px; }
.portal-span { grid-column: 1/-1; }
.portal-progress { height: 10px; margin: 14px 0 20px; overflow: hidden; border-radius: 999px; background: #e7ebf2; }
.portal-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.portal-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.portal-meta small { display: block; margin-bottom: 3px; color: var(--muted); }
.portal-list { display: grid; gap: 10px; }
.portal-list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #e4e8ef; }
.portal-list-item:last-child { border-bottom: 0; }
.portal-list-item small { color: var(--muted); }
.portal-empty { padding: 22px; border: 1px dashed #cbd2df; border-radius: 12px; color: var(--muted); text-align: center; }
.portal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.portal-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.portal-form label.full { grid-column: 1/-1; }
.portal-form input, .portal-form textarea, .portal-form select { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #cbd2df; border-radius: 10px; background: #fff; }
.portal-form textarea { min-height: 112px; resize: vertical; }
.portal-message-list { height: 360px; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid #d8deea; border-radius: 12px; background: #f6f8fb; }
.portal-message { max-width: 78%; padding: 10px 12px; border-radius: 13px 13px 13px 5px; background: #fff; }
.portal-message.mine { margin-left: auto; color: #fff; background: var(--accent); border-radius: 13px 13px 5px 13px; }
.portal-message small { display: block; margin-top: 4px; opacity: .7; }
.portal-message-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.portal-message-form input { min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid #cbd2df; border-radius: 10px; }
.portal-admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.portal-admin-client-list { display: grid; gap: 8px; }
.portal-client-button { width: 100%; padding: 12px; border: 1px solid #d8deea; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.portal-client-button.active { border-color: var(--accent); background: var(--accent-soft); }
.portal-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; color: #694c13; background: #fff0c8; }
.portal-mobile-menu { display: none; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.divider { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 20px; }
.align-end { align-self: end; }

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

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 84px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 12px; border-radius: 10px; }
  .nav-links a:hover { background: #f5f6f8; }
  .nav-links > a::after { display: none; }
  .nav-cta { margin-top: 4px; text-align: center; }
  .menu-button { display: block; }
  .hero-grid, .page-hero-grid, .section-head, .pricing-wrap, .form-shell, .config-shell, .examples-intro, .two-col { grid-template-columns: 1fr; }
  .home-hero { padding-top: 70px; }
  .hero-grid { gap: 45px; }
  .hero-visual { min-height: 520px; }
  .section-head { gap: 16px; }
  .section-head p { max-width: 720px; }
  .work-item, .work-item:nth-child(even) { grid-template-columns: 1fr; gap: 34px; }
  .work-item:nth-child(even) .work-visual, .work-item:nth-child(even) .work-copy { order: initial; }
  .process { grid-template-columns: repeat(2,1fr); }
  .process article:nth-child(2) { border-right: 0; }
  .process article:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .pricing-intro, .form-aside, .config-summary { position: static; }
  .footer-top { grid-template-columns: 1.3fr repeat(2,1fr); }
  .footer-main { grid-column: 1/-1; }
  .portal-shell { grid-template-columns: 210px 1fr; }
  .portal-content { padding: 24px; }
  .portal-admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 76px 0; }
  .section-sm { padding: 54px 0; }
  .nav-wrap { min-height: 68px; }
  .nav-links { top: 74px; left: 14px; right: 14px; }
  h1 { font-size: clamp(39px, 12vw, 51px); }
  h2 { font-size: clamp(30px, 9vw, 40px); }
  .page-hero h1 { font-size: clamp(37px, 10vw, 46px); }
  .home-hero { padding: 58px 0 66px; }
  .hero-copy .lead { font-size: 18px; }
  .hero-facts { display: grid; gap: 9px; }
  .hero-visual { min-height: 395px; }
  .browser-shell { width: calc(100% - 20px); right: 10px; top: 20px; border-radius: 18px; }
  .browser-shot { aspect-ratio: 16/11; }
  .hero-phone { width: 132px; right: 0; bottom: 0; border-radius: 22px; }
  .hero-phone img { border-radius: 16px; }
  .hero-label { left: 0; bottom: 17px; width: 215px; padding: 13px 14px; }
  .logo-strip .container { grid-template-columns: repeat(2,1fr); }
  .logo-strip span:nth-child(2) { border-right: 0; }
  .logo-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-row { grid-template-columns: 42px 1fr; gap: 12px 18px; }
  .service-row p, .service-row .service-action { grid-column: 2; }
  .work-list { gap: 64px; }
  .work-visual, .work-visual img { min-height: 360px; }
  .process { grid-template-columns: 1fr; }
  .process article, .process article:not(:first-child) { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .process article:first-child { border-top: 0; }
  .process b { margin-bottom: 18px; }
  .cta-band .container { display: grid; }
  .detail-item { grid-template-columns: 42px 1fr; gap: 12px 18px; }
  .detail-item p, .detail-item ul { grid-column: 2; }
  .person-block { grid-template-columns: 1fr; }
  .person-avatar { width: 90px; }
  .form-card { padding: 22px; }
  .form-grid, .choice-grid, .portal-form { grid-template-columns: 1fr; }
  .field.full, .portal-form label.full { grid-column: auto; }
  .example-index-item { grid-template-columns: 42px 1fr auto; gap: 14px; }
  .example-index-item p { grid-column: 2/-1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-main { grid-column: 1/-1; }
  .footer-bottom { display: grid; }
  .chat-launch { right: 14px; bottom: 14px; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 8px; }
  .chat-panel { right: 10px; bottom: 70px; width: calc(100vw - 20px); height: min(620px, calc(100dvh - 90px)); }
  .cookie-inner { display: grid; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; }
  .portal-header { padding: 0 14px; }
  .portal-mobile-menu { display: inline-flex; }
  .portal-shell { display: block; }
  .portal-sidebar { position: fixed; left: 0; top: 70px; bottom: 0; z-index: 80; width: 250px; transform: translateX(-110%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(11,20,42,.25); }
  .portal-sidebar.open { transform: none; }
  .portal-content { padding: 18px 14px 36px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-span { grid-column: auto; }
  .portal-topline { display: grid; }
  .portal-topline h1 { font-size: 32px; }
  .portal-meta { grid-template-columns: 1fr; }
  .portal-message-list { height: 320px; }
}

/* V8 interactive example showcase */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.showcase-screen {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #e9edf5;
  border-right: 1px solid var(--line-dark);
}
.showcase-browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid #d8dde6;
  background: #f5f6f8;
}
.showcase-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c5cad3; }
.showcase-browser-bar span { margin-left: 8px; color: #8b93a1; font-size: 11px; }
.showcase-screen img {
  width: 100%;
  height: calc(100% - 42px);
  min-height: 528px;
  object-fit: cover;
  object-position: top;
  transition: opacity .18s ease, transform .35s ease;
}
.showcase-screen:hover img { transform: scale(1.012); }
.showcase-screen.changing img { opacity: .2; }
.showcase-menu { display: grid; align-content: stretch; }
.showcase-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 25px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.showcase-option:last-child { border-bottom: 0; }
.showcase-option > span { color: #9aa2b0; font-size: 12px; font-weight: 800; padding-top: 3px; }
.showcase-option small { display: block; margin-bottom: 2px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.showcase-option b { display: block; font-size: 21px; letter-spacing: -.025em; }
.showcase-option p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.showcase-option.active { background: var(--navy); box-shadow: inset 4px 0 0 var(--accent); }
.showcase-option.active > span, .showcase-option.active p { color: #bfc8da; }
.showcase-option.active small { color: #9cb0ff; }
.showcase-option.active b { color: #fff; }
.showcase-caption {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 28px;
  border-top: 1px solid var(--line-dark);
  background: #fff;
}
.showcase-caption span { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.showcase-caption h3 { margin: 3px 0 5px; font-size: 28px; }
.showcase-caption p { max-width: 630px; margin: 0; color: var(--muted); }
.showcase-more { margin-top: 26px; text-align: center; }

body.cookie-open .chat-launch { opacity: 0; pointer-events: none; transform: translateY(8px); }

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-screen { min-height: 480px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .showcase-screen img { min-height: 438px; }
  .showcase-menu { grid-template-columns: repeat(3, 1fr); }
  .showcase-option { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); padding: 20px; }
  .showcase-option:last-child { border-right: 0; }
  .showcase-option > span, .showcase-option p { display: none; }
  .showcase-option.active { box-shadow: inset 0 -4px 0 var(--accent); }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(36px, 10.2vw, 40px); }
  h2 { font-size: clamp(29px, 8vw, 36px); }
  .page-hero h1 { font-size: clamp(34px, 9vw, 39px); }
  .home-hero { padding-top: 52px; }
  .hero-copy .lead { font-size: 17px; }
  .showcase { border-radius: 18px; }
  .showcase-screen { min-height: 310px; }
  .showcase-screen img { min-height: 268px; }
  .showcase-browser-bar { height: 36px; }
  .showcase-menu { grid-template-columns: 1fr; }
  .showcase-option { grid-template-columns: 31px 1fr; padding: 16px 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .showcase-option:last-child { border-bottom: 0; }
  .showcase-option > span { display: block; }
  .showcase-option p { display: none; }
  .showcase-option.active { box-shadow: inset 4px 0 0 var(--accent); }
  .showcase-caption { display: grid; padding: 20px; }
  .showcase-caption h3 { font-size: 25px; }
  .showcase-caption .button { width: 100%; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-inner { gap: 14px; padding: 15px; border-radius: 16px; }
  .cookie-inner p { font-size: 13px; line-height: 1.45; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .cookie-actions [data-cookie-settings] { grid-column: 1 / -1; order: 3; min-height: 36px; }
  .cookie-actions .button { min-height: 43px; padding: 9px 10px; font-size: 13px; }
}
.portal-list-item > div:first-child { min-width: 0; }
.portal-list-item b { display: block; }
.portal-list-item small { display: block; margin-top: 4px; line-height: 1.45; }
