:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0c1219;
  --panel-2: #111923;
  --text: #f8fafc;
  --muted: #9aa7b7;
  --line: rgba(255,255,255,.1);
  --gold: #f5c451;
  --teal: #33d1aa;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar, .admin-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(7,11,16,.88); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.brand-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(245,196,81,.35); border-radius: 8px; background: rgba(245,196,81,.12); color: var(--gold); font-weight: 800; font-size: 13px; overflow: hidden; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 1px; }
nav { display: flex; gap: 24px; color: #cbd5e1; font-size: 14px; }
nav a:hover { color: white; }
nav a[aria-current="page"] { color: var(--gold); }
.top-actions, .hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.primary, .ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 6px; padding: 0 16px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.primary { background: var(--gold); color: #171006; }
.ghost { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.16); color: #f8fafc; }
.large { min-height: 46px; padding-inline: 20px; }
.hero { position: relative; min-height: min(630px, calc(100svh - 116px)); display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: end; gap: 32px; padding: 54px clamp(18px, 5vw, 72px) 40px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #070b10 0%, rgba(7,11,16,.92) 32%, rgba(7,11,16,.56) 66%, rgba(7,11,16,.2) 100%), linear-gradient(0deg, #070b10 0%, rgba(7,11,16,0) 34%); }
.hero-content, .metric-panel { position: relative; z-index: 1; }
.hero-content { max-width: 880px; align-self: center; }
.eyebrow, .gold { color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: 0; }
h1, h2 { margin: 0; letter-spacing: 0; line-height: 1.03; }
h1 { margin-top: 16px; max-width: 940px; font-size: 64px; overflow-wrap: anywhere; }
h2 { font-size: 44px; overflow-wrap: anywhere; }
.lede { max-width: 700px; color: #d3dbe6; font-size: 18px; line-height: 1.55; margin: 18px 0 22px; }
.metric-panel { align-self: end; border: 1px solid var(--line); border-radius: 8px; background: rgba(12,18,25,.82); padding: 22px; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.metric-panel p { margin: 0 0 16px; color: #e5edf7; }
dl, dd { margin: 0; }
.metric-panel div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { text-align: right; font-weight: 800; }
.segments { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; padding: 18px clamp(18px, 5vw, 72px); border-block: 1px solid var(--line); background: #0a1017; color: #cad5e2; font-size: 14px; }
.segments span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--teal); }
.band { padding: 80px clamp(18px, 5vw, 72px); }
.dark { background: #070b10; }
.light { background: #edf2f7; color: #0b1118; }
.section-head { max-width: 860px; margin-bottom: 34px; }
.section-head p { color: var(--gold); font-weight: 800; margin: 0 0 12px; }
.section-head span, .light p { color: #526172; line-height: 1.7; }
.cards, .steps { display: grid; gap: 16px; }
.three, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards article, .steps article, .lead-card, .login-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 24px; }
.cards strong, .steps strong { display: block; font-size: 20px; margin-bottom: 10px; }
.cards span, .steps span { color: var(--muted); line-height: 1.65; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); align-items: center; gap: 42px; max-width: 1240px; margin: 0 auto; }
.platform-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 22px; }
.platform-feature-link { color: #145c58; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.platform-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 90px; border: 1px solid #c5d0dc; border-radius: 6px; padding: 18px; background: white; }
.platform-links a:hover { border-color: #608a92; background: #f8fbfc; }
.platform-links strong { font-size: 18px; }
.platform-links span { color: #5e7281; font-size: 13px; }
.steps b { color: var(--gold); display: block; margin-bottom: 14px; }
.process-more { display: inline-block; margin-top: 24px; font-weight: 700; }
.process-hero { position: relative; display: flex; align-items: center; min-height: 390px; padding: 56px clamp(18px, 5vw, 72px); overflow: hidden; }
.process-hero-content { position: relative; z-index: 1; max-width: 860px; }
.process-hero h1 { font-size: clamp(38px, 4.5vw, 58px); }
.process-phases { max-width: 1100px; border-top: 1px solid var(--line); }
.process-phase { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.phase-number { color: var(--gold); font-size: 17px; font-weight: 800; }
.process-phase h3, .process-offer h3, .process-msp h3 { margin: 0 0 8px; font-size: 22px; }
.process-phase p, .process-offer p, .process-msp p, .process-boundary p, .process-next p { max-width: 760px; margin: 0; line-height: 1.65; }
.process-phase p, .process-boundary p, .process-next p { color: var(--muted); }
.light .section-head p { color: #896014; }
.offer-list { max-width: 1100px; border-top: 1px solid #c5d0dc; }
.process-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, auto); gap: 36px; align-items: center; padding: 26px 0; border-bottom: 1px solid #c5d0dc; }
.process-offer p, .process-msp p { color: #526172; }
.offer-price { text-align: right; }
.offer-price strong, .offer-price span { display: block; }
.offer-price strong { font-size: 24px; }
.offer-price span { margin-top: 4px; color: #526172; font-size: 14px; }
.process-msp { max-width: 1100px; padding-top: 28px; }
.process-close { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-top: 1px solid var(--line); }
.process-close h2 { font-size: 30px; line-height: 1.2; }
.process-next .primary { margin-top: 22px; }
.feature-hero { min-height: 470px; }
.feature-hero .process-hero-content { max-width: 930px; }
.feature-demo-note { max-width: 760px; margin: 24px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); color: #bdcbd8; font-size: 14px; line-height: 1.6; }
.feature-band-inner { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); max-width: 1280px; margin: 0 auto; }
.feature-intro { max-width: 500px; }
.feature-eyebrow { color: var(--gold); font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.feature-intro h2 { font-size: 38px; line-height: 1.12; }
.feature-intro > p:last-child { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.feature-rows { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1fr); gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.feature-row h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.feature-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-band.light .feature-eyebrow { color: #896014; }
.feature-band.light .feature-intro > p:last-child, .feature-band.light .feature-row p { color: #526172; }
.feature-band.light .feature-rows { border-top-color: #c5d0dc; }
.feature-band.light .feature-row { border-bottom-color: #c5d0dc; }
.feature-boundary { display: flex; align-items: end; justify-content: space-between; gap: 32px; background: #0a1017; border-top: 1px solid var(--line); }
.feature-boundary > div { max-width: 820px; }
.feature-boundary h2 { font-size: 34px; }
.feature-boundary p:last-child { color: var(--muted); line-height: 1.7; }
.feature-boundary .primary { flex: 0 0 auto; }
.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: 42px; background: #0a1017; border-top: 1px solid var(--line); }
.contact-copy p { color: #c7d2df; line-height: 1.7; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 22px; }
label { display: grid; gap: 8px; color: #dce5f0; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; background: var(--panel-2); color: white; min-height: 42px; padding: 10px 12px; font: inherit; }
textarea { min-height: 126px; resize: vertical; }
.full, .lead-form button, .form-result { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -10000px; }
.form-result { min-height: 24px; color: #b8fff0; margin: 0; }
.admin-body { background: #081018; }
.login-panel { width: min(430px, calc(100vw - 36px)); margin: 12vh auto; }
.login-panel h1 { font-size: 34px; margin: 28px 0 18px; }
.login-panel form { display: grid; gap: 14px; }
.error { color: #ffc9c9; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.admin-nav { display: flex; flex-direction: column; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); gap: 3px; padding: 24px 12px; border-right: 1px solid var(--line); background: #0a141c; }
.admin-nav a { display: block; padding: 11px 13px; border-radius: 6px; color: #b4c2d0; font-size: 14px; }
.admin-nav a:hover, .admin-nav a.active { background: #1b2b35; color: white; }
.admin-nav a.active { box-shadow: inset 3px 0 var(--teal); }
.admin-shell { width: min(100%, 1320px); margin: 0 auto; padding: 30px clamp(18px, 3vw, 42px) 80px; min-width: 0; }
.admin-view-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; }
.admin-view-head h1 { font-size: 32px; margin: 0 0 5px; }
.admin-view-head p { margin: 0; color: var(--muted); }
.admin-section { border-top: 1px solid var(--line); padding: 24px 0 34px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.admin-section h2 { font-size: 21px; line-height: 1.25; }
.admin-section-actions, .reply-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-section-actions button { min-width: 80px; }
.content-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.content-fields .wide { grid-column: 1 / -1; }
.content-fields textarea { min-height: 94px; }
.admin-feedback { min-height: 22px; margin: 12px 0 0; color: #9aefde; font-size: 13px; }
.admin-feedback.error { color: #ffc9c9; }
.lead-card { margin-bottom: 16px; }
.lead-main { display: grid; grid-template-columns: 1fr 210px; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.lead-main h2 { font-size: 24px; }
.lead-main p, .lead-main small { color: var(--muted); }
.lead-message { white-space: pre-wrap; color: #dbe5f1; line-height: 1.65; }
.text-link { color: #8ce4d0; text-decoration: underline; text-underline-offset: 3px; }
.conversation-list { border-top: 1px solid var(--line); }
.conversation-list a { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.conversation-list a:hover { background: rgba(255,255,255,.035); }
.conversation-list strong, .conversation-list small { display: block; }
.conversation-list small, .conversation-excerpt { color: var(--muted); }
.conversation-excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread { display: grid; gap: 12px; margin-bottom: 26px; }
.message { max-width: min(78%, 720px); border: 1px solid var(--line); border-radius: 6px; padding: 12px 15px; background: #111d27; }
.message.admin { justify-self: end; background: #16332f; }
.message.system { justify-self: center; background: transparent; }
.message small { color: var(--muted); }
.message p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.5; }
.telegram-reply, .settings-form { display: grid; gap: 10px; max-width: 760px; }
.setting-value, .status-text { color: var(--muted); font-size: 14px; }
.setting-value { margin-top: 16px; overflow-wrap: anywhere; }
.empty { border: 1px solid var(--line); border-radius: 8px; padding: 42px; text-align: center; color: var(--muted); }
.notice { border: 1px solid rgba(51,209,170,.28); border-radius: 8px; background: rgba(51,209,170,.08); color: #d8fff6; padding: 12px; line-height: 1.5; }
@media (max-width: 920px) {
  h1 { font-size: 54px; }
  h2 { font-size: 38px; }
  .metric-panel { display: none; }
  .topbar { flex-wrap: wrap; gap: 12px 20px; padding-block: 10px; }
  .topbar nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; white-space: nowrap; }
  .topbar .top-actions { margin-left: auto; }
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .feature-band-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .three, .steps, .lead-form { grid-template-columns: 1fr; }
  .lead-main { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav a { white-space: nowrap; }
  .conversation-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .conversation-excerpt { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .admin-top { padding: 12px 18px; }
  .topbar { height: auto; align-items: flex-start; flex-direction: column; padding-block: 14px; }
  .top-actions { width: 100%; }
  .topbar .top-actions { margin-left: 0; }
  .topbar nav { order: 2; gap: 14px; font-size: 13px; }
  .topbar .top-actions { order: 3; }
  .top-actions a { flex: 1; }
  .hero { padding-top: 44px; padding-bottom: 40px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .lede { font-size: 16px; line-height: 1.5; margin: 16px 0 22px; }
  .content-fields, .platform-links { grid-template-columns: 1fr; }
  .admin-section-head, .admin-view-head { align-items: flex-start; flex-direction: column; }
  .message { max-width: 94%; }
  .process-hero { min-height: 0; padding-block: 48px; }
  .process-hero h1 { font-size: 38px; }
  .process-phase { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .process-offer, .process-close { grid-template-columns: 1fr; gap: 18px; }
  .offer-price { text-align: left; }
  .feature-hero { min-height: 0; padding-block: 36px; }
  .feature-band { padding-block: 46px; }
  .feature-demo-note { margin-top: 18px; }
  .feature-intro h2 { font-size: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .feature-boundary { align-items: flex-start; flex-direction: column; }
}
