:root {
  --bg: #07090c;
  --bg-soft: #0d1117;
  --card: #11161d;
  --card-2: #151b23;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f6f8;
  --muted: #a8b0bb;
  --gold: #f4a53a;
  --gold-light: #ffc56b;
  --cyan: #63c7e8;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; background: var(--bg); }
body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, li, summary, a, button { overflow-wrap: anywhere; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 9, 12, 0.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.site-header > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand img { width: 36px; height: 39px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #c9cfd7; font-size: 14px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.site-header nav a:hover { color: var(--gold-light); }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(244,165,58,.5); border-radius: 10px; padding: 0 18px; color: var(--gold-light); font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; }

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #07090c;
  border-bottom: 1px solid var(--line);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07090c 0%, rgba(7,9,12,.97) 20%, rgba(7,9,12,.74) 48%, rgba(7,9,12,.06) 76%),
    linear-gradient(0deg, rgba(7,9,12,.9) 0%, transparent 35%, rgba(7,9,12,.2) 100%);
}
.hero-copy { position: relative; z-index: 3; width: min(760px, 58vw); margin-left: max(28px, calc((100vw - var(--max)) / 2)); padding: 130px 0 70px; }
.eyebrow { margin: 0 0 20px; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(46px, 4.8vw, 76px); line-height: .99; letter-spacing: -.045em; font-weight: 720; }
.hero-lead { max-width: 720px; margin: 28px 0 0; color: #c5cbd3; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 0 22px; font-size: 15px; font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #171009; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 15px 45px rgba(244,165,58,.18); }
.button-secondary { color: var(--text); background: rgba(13,17,23,.66); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); }
.hero-facts { display: flex; gap: 26px; margin-top: 38px; color: #9ea7b2; font-size: 12px; line-height: 1.5; }
.hero-facts span { max-width: 152px; padding-left: 12px; border-left: 1px solid rgba(244,165,58,.55); }
.hero-facts b { display: block; color: #eef1f4; font-size: 14px; }

.section { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 900px; margin-bottom: 52px; }
.section-heading.compact { max-width: 780px; }
.section-heading h2, .problem-intro h2, .final-section h2 { margin: 0; font-size: clamp(38px, 4.1vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.section-heading > p:last-child, .problem-intro > p, .final-section > div > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.demo-section { padding-top: 118px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.demo-grid > *, .pain-grid > *, .flow-grid > *, .fit-grid > *, .final-section > * { min-width: 0; }
.demo-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21,27,35,.96), rgba(11,14,19,.96));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.demo-card::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(244,165,58,.14), transparent 70%); }
.demo-card:nth-child(even)::after { background: radial-gradient(circle, rgba(99,199,232,.13), transparent 70%); }
.demo-card:hover { border-color: rgba(244,165,58,.32); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.demo-number { color: #68717d; font-size: 12px; letter-spacing: .16em; }
.demo-card h3 { margin: 44px 0 0; font-size: 28px; letter-spacing: -.02em; }
.demo-card p { max-width: 530px; margin: 13px 0 28px; color: var(--muted); line-height: 1.65; }
.demo-link { position: relative; z-index: 2; width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 0 18px; border: 1px solid rgba(244,165,58,.42); border-radius: 9px; color: #f3f5f7; font-weight: 700; transition: border-color .2s ease, background .2s ease; }
.demo-link:hover { border-color: var(--gold); background: rgba(244,165,58,.09); }
.demo-link span { color: var(--gold); }
.section-note { margin: 22px 0 0; color: #747d87; font-size: 13px; line-height: 1.6; }

.problem-section { width: 100%; padding-left: max(28px, calc((100vw - var(--max)) / 2)); padding-right: max(28px, calc((100vw - var(--max)) / 2)); background: #0a0d11; }
.problem-intro { display: grid; grid-template-columns: 1.15fr .75fr; gap: 80px; align-items: end; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pain-grid article { min-height: 260px; padding: 28px; background: #0d1117; border-right: 1px solid var(--line); }
.pain-grid article:last-child { border-right: 0; }
.pain-grid span, .flow-card > span, .implementation-list article > span { color: var(--gold); font-family: var(--font-geist-mono), monospace; font-size: 12px; }
.pain-grid h3 { margin: 46px 0 12px; font-size: 21px; line-height: 1.2; }
.pain-grid p, .flow-card p, .implementation-list p, .cases-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.flow-card { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-card h3 { margin: 50px 0 12px; font-size: 23px; }

.fit-section { width: 100%; padding-left: max(28px, calc((100vw - var(--max)) / 2)); padding-right: max(28px, calc((100vw - var(--max)) / 2)); background: #0a0d11; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-card { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #10151c; }
.fit-yes { border-color: rgba(244,165,58,.3); }
.fit-label { display: inline-block; margin-bottom: 22px; color: var(--gold-light); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fit-no .fit-label { color: #8d97a3; }
.fit-card ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fit-card li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line); color: #c0c7cf; line-height: 1.5; }
.fit-card li::before { content: "+"; position: absolute; left: 2px; color: var(--gold); font-weight: 800; }
.fit-no li::before { content: "—"; color: #707985; }

.implementation-list { border-top: 1px solid var(--line); }
.implementation-list article { display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.implementation-list h3 { margin: 0 0 8px; font-size: 24px; }

.cases-section { width: 100%; padding-left: max(28px, calc((100vw - var(--max)) / 2)); padding-right: max(28px, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 75% 0%, rgba(244,165,58,.07), transparent 35%), #0a0d11; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cases-grid article { min-height: 320px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,22,29,.8); }
.case-kicker { color: #8c96a2; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cases-grid strong { display: block; margin: 52px 0 14px; color: var(--gold-light); font-size: 54px; letter-spacing: -.04em; }
.cases-grid h3 { margin: 0 0 12px; font-size: 22px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; font-size: 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold); font-size: 26px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 820px; margin: -4px 0 26px; color: var(--muted); line-height: 1.7; }

.final-section { width: min(var(--max), calc(100% - 56px)); min-height: 430px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; margin: 0 auto 70px; padding: 68px; border: 1px solid rgba(244,165,58,.25); border-radius: 22px; background: radial-gradient(circle at 90% 20%, rgba(244,165,58,.18), transparent 35%), linear-gradient(140deg, #141a22, #0a0e13); }
.final-section > div > p:last-child { max-width: 680px; }
.final-actions { display: flex; flex-direction: column; gap: 12px; }

footer { width: min(var(--max), calc(100% - 56px)); display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; margin: 0 auto; padding: 34px 0 100px; border-top: 1px solid var(--line); color: #77818d; font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #f1f3f5; }
.footer-brand img { width: 38px; height: 41px; object-fit: contain; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand span { color: #77818d; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--gold-light); }

.assistant-widget { position: fixed; z-index: 70; right: 24px; bottom: 24px; display: grid; justify-items: end; gap: 12px; }
.assistant-widget-panel { width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 116px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(244,165,58,.34); border-radius: 18px; background: rgba(13,17,23,.98); box-shadow: 0 24px 80px rgba(0,0,0,.52); backdrop-filter: blur(18px); transform-origin: right bottom; animation: widget-in .18s ease-out; }
.assistant-widget-header { flex: 0 0 auto; display: grid; grid-template-columns: 42px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(244,165,58,.12), rgba(99,199,232,.04)); }
.assistant-widget-header > img { width: 40px; height: 43px; object-fit: contain; }
.assistant-widget-header > div { display: grid; gap: 4px; }
.assistant-widget-header b { font-size: 15px; }
.assistant-widget-header span { color: #8e98a4; font-size: 12px; }
.assistant-widget-header i, .assistant-widget-icon i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55cf87; box-shadow: 0 0 0 3px rgba(85,207,135,.12); }
.assistant-widget-header button { width: 44px; height: 44px; border: 0; border-radius: 10px; color: #a9b1bb; background: rgba(255,255,255,.05); cursor: pointer; font-size: 22px; line-height: 1; }
.assistant-widget-header button:hover { color: #fff; background: rgba(255,255,255,.1); }
.assistant-widget-chat { min-height: 280px; max-height: min(430px, calc(100vh - 270px)); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(244,165,58,.35) transparent; }
.assistant-message { width: fit-content; max-width: 86%; padding: 11px 13px; border-radius: 13px; font-size: 14px; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message-assistant { align-self: flex-start; color: #d5dbe2; background: #171d25; border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.assistant-message-user { align-self: flex-end; color: #20160c; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-bottom-right-radius: 4px; }
.assistant-message-error { align-self: center; max-width: 100%; color: #d9a8a8; background: rgba(143,57,57,.13); border: 1px solid rgba(207,92,92,.24); text-align: center; font-size: 12px; }
.assistant-message-loading { min-width: 58px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.assistant-message-loading span { width: 5px; height: 5px; border-radius: 50%; background: #929ca8; animation: assistant-dot 1s infinite ease-in-out; }
.assistant-message-loading span:nth-child(2) { animation-delay: .14s; }
.assistant-message-loading span:nth-child(3) { animation-delay: .28s; }
.assistant-widget-form { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 46px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #0b0f14; }
.assistant-widget-form input { min-width: 0; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; color: #f5f6f8; background: #090c10; }
.assistant-widget-form input:focus { border-color: rgba(244,165,58,.7); }
.assistant-widget-form input::placeholder { color: #69737e; }
.assistant-widget-form button { width: 46px; height: 46px; border: 0; border-radius: 10px; color: #171009; background: linear-gradient(135deg, var(--gold-light), var(--gold)); cursor: pointer; font-size: 22px; font-weight: 800; }
.assistant-widget-form button:disabled { cursor: default; opacity: .38; }
.assistant-widget-launcher { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 9px; border: 1px solid rgba(244,165,58,.45); border-radius: 16px; color: #f4f6f8; background: rgba(14,18,24,.96); box-shadow: 0 14px 45px rgba(0,0,0,.38); backdrop-filter: blur(16px); cursor: pointer; text-align: left; }
.assistant-widget-launcher:hover { border-color: var(--gold); }
.assistant-widget-launcher > span:last-child { display: grid; gap: 3px; }
.assistant-widget-launcher b { font-size: 13px; }
.assistant-widget-launcher small { color: #949da8; font-size: 12px; }
.assistant-widget-icon { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #090c10; }
.assistant-widget-icon img { width: 34px; height: 37px; object-fit: contain; }
.assistant-widget-icon i { position: absolute; right: 1px; bottom: 2px; }
@keyframes widget-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes assistant-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-3px); opacity: 1; } }

.privacy-page { min-height: 100vh; padding: 130px 28px 90px; background: var(--bg); }
.privacy-wrap { max-width: 900px; margin: 0 auto; }
.privacy-back { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 42px; color: var(--gold-light); font-weight: 700; }
.privacy-page h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.04em; }
.privacy-updated { color: #7b8590; }
.privacy-content { margin-top: 50px; padding-top: 10px; border-top: 1px solid var(--line); }
.privacy-content section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.privacy-content h2 { margin: 0 0 12px; font-size: 22px; }
.privacy-content p { margin: 0; color: var(--muted); line-height: 1.75; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero { min-height: 760px; }
  .hero-copy { width: min(700px, 66vw); }
  .hero h1 { font-size: clamp(44px, 5.6vw, 64px); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid article:nth-child(2) { border-right: 0; }
  .pain-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { height: 66px; gap: 12px; padding: 0 18px; }
  .brand img { width: 31px; height: 34px; }
  .brand span { font-size: 13px; }
  .header-cta { flex: 0 0 auto; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .hero { min-height: 760px; align-items: flex-end; }
  .hero-image { object-position: 68% center; opacity: .62; }
  .hero-shade { background: linear-gradient(0deg, #07090c 4%, rgba(7,9,12,.86) 58%, rgba(7,9,12,.3) 100%), linear-gradient(90deg, rgba(7,9,12,.92), transparent); }
  .hero-copy { width: auto; margin: 0; padding: 100px 22px 54px; }
  .hero h1 { font-size: clamp(36px, 11vw, 50px); line-height: 1.03; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-facts { flex-direction: column; gap: 12px; margin-top: 28px; }
  .hero-facts span { max-width: none; }
  .section { width: calc(100% - 36px); padding: 78px 0; }
  .problem-section, .fit-section, .cases-section { padding-left: 18px; padding-right: 18px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .problem-intro h2, .final-section h2 { font-size: clamp(34px, 9.5vw, 38px); line-height: 1.08; }
  .section-heading > p:last-child, .problem-intro > p { font-size: 16px; }
  .demo-grid, .fit-grid, .cases-grid { grid-template-columns: 1fr; }
  .demo-card { min-height: 300px; padding: 24px; }
  .problem-intro { grid-template-columns: 1fr; gap: 10px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid article { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pain-grid article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card { min-height: 210px; }
  .implementation-list article { grid-template-columns: 52px 1fr; }
  .cases-grid article { min-height: 270px; }
  .final-section { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; padding: 36px 24px; }
  footer { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 22px; padding-bottom: 120px; }
  .footer-links { flex-direction: column; gap: 10px; }
  .assistant-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .assistant-widget-panel { width: calc(100vw - 24px); max-height: calc(100dvh - 88px); }
  .assistant-widget-launcher { width: 56px; height: 56px; min-height: 56px; padding: 5px; border-radius: 16px; }
  .assistant-widget-launcher > span:last-child { display: none; }
  .assistant-widget-icon { width: 44px; height: 44px; }
  .assistant-widget.is-open { inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); display: block; }
  .assistant-widget.is-open .assistant-widget-panel { width: 100%; height: 100%; max-height: none; border-radius: 16px; }
  .assistant-widget.is-open .assistant-widget-launcher { display: none; }
  .assistant-widget.is-open .assistant-widget-chat { min-height: 0; max-height: none; flex: 1 1 auto; padding: 14px; }
  .assistant-widget-header { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 10px; padding: 12px; }
  .assistant-widget-header > img { width: 38px; height: 41px; }
  .assistant-message { max-width: 90%; font-size: 15px; }
  .assistant-widget-form { padding: 10px; }
  .privacy-page { padding: 96px 18px 60px; }
  .privacy-page h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.06; overflow-wrap: anywhere; }
  .privacy-content { margin-top: 38px; }
}

@media (max-width: 380px) {
  .site-header { padding: 0 14px; }
  .brand { gap: 8px; }
  .brand img { width: 29px; height: 32px; }
  .brand span { font-size: 12px; }
  .header-cta { padding: 0 10px; font-size: 12px; }
  .hero-copy { padding-left: 18px; padding-right: 18px; }
  .section { width: calc(100% - 28px); }
  .problem-section, .fit-section, .cases-section { padding-left: 14px; padding-right: 14px; }
  .final-section, footer { width: calc(100% - 28px); }
  .final-section { padding: 32px 20px; }
  .privacy-page h1 { font-size: clamp(29px, 8.5vw, 32px); line-height: 1.08; overflow-wrap: break-word; word-break: normal; hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .assistant-message-loading span { animation: none; }
}
