:root {
  --bg-main: #060A16;
  --bg-card: #101725;
  --accent-purple: #6E63B6;
  --accent-cyan: #5AAEBA;
  --text-main: #F7F3F8;
  --text-muted: #8A97A9;
  --text-soft: #C4CAD4;
  --line: rgba(196, 202, 212, 0.18);
  --line-strong: rgba(247, 243, 248, 0.28);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background: var(--bg-main);
}
body.modal-open { overflow: hidden; }
body::before,
.background-grid {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(196, 202, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 202, 212, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; color: var(--text-soft); line-height: 1.72; font-weight: 400; }
h1, h2, h3 { margin: 0 0 18px; font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif; color: var(--text-main); line-height: 1.12; }
h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 650;
  letter-spacing: -0.018em;
  color: #FAF7FB;
  text-shadow: 0 1px 0 rgba(158, 121, 176, 0.18);
}
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 680; letter-spacing: -0.016em; }
h3 { font-size: 23px; font-weight: 640; letter-spacing: -0.01em; }
ul { margin: 0 0 24px; padding-left: 20px; color: var(--text-soft); line-height: 1.65; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; }
.section { padding: 108px 0; scroll-margin-top: 92px; }
.eyebrow { color: var(--accent-cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.lead { color: #DCE1EA; font-size: 19px; }
.tg-gradient {
  color: transparent;
  background: linear-gradient(105deg, #7A6DBA 0%, #6FAFB7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 22, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: grid; gap: 2px; min-width: 190px; }
.logo span { font-size: 25px; font-weight: 720; letter-spacing: -0.03em; color: #fff; }
.logo small { color: var(--text-muted); font-size: 12px; }
.nav { display: flex; gap: 22px; color: var(--text-muted); font-size: 14px; }
.nav a:hover { color: var(--text-main); }

.cta-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  color: var(--text-main);
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.cta-button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn-primary { background: linear-gradient(135deg, #5F56A4, #456F7A); border-color: rgba(247,243,248,.24); box-shadow: var(--shadow); }
.btn-secondary { background: rgba(16, 23, 37, .92); }
.btn-outline { background: rgba(247, 243, 248, .035); }

.hero { padding-top: 150px; }
.hero-grid, .chat-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); align-items: center; gap: 64px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.glow-card { background: rgba(16, 23, 37, 0.88); border: 1px solid var(--line); box-shadow: var(--shadow); }
.video-card { position: relative; aspect-ratio: 9 / 16; width: min(100%, 390px); margin: 0 auto; overflow: hidden; border-radius: 6px; border: 1px solid var(--line-strong); }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0B1120; }
.sound-toggle { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 18px; color: #fff; background: rgba(6,10,22,.72); backdrop-filter: blur(12px); cursor: pointer; }
.video-caption { text-align: center; color: #D5DAE3; font-size: 15px; }
.intro-card, .modules, .support-card, .footer-cta .glow-card { border-radius: 6px; padding: clamp(26px, 5vw, 54px); }

.chat-grid { grid-template-columns: .85fr 1fr; }
.chat-window { border-radius: 6px; overflow: hidden; min-height: 610px; display: flex; flex-direction: column; }
.chat-header { display: flex; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, #5F56A4, #5AAEBA); font-weight: 800; }
.chat-header span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.chat-messages { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 460px; }
.chat-message { max-width: 82%; padding: 13px 16px; border-radius: 6px; line-height: 1.55; white-space: pre-wrap; }
.chat-message-vik { align-self: flex-start; background: rgba(247,243,248,.07); }
.chat-message-user { align-self: flex-end; background: linear-gradient(135deg, rgba(95,86,164,.92), rgba(69,111,122,.88)); }
.chat-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; border-top: 1px solid var(--line); }
.chat-input-row input { min-height: 48px; border-radius: 6px; border: 1px solid var(--line); background: rgba(6,10,22,.72); color: #fff; padding: 0 16px; outline: none; }
.notice, .muted, .section-lead { color: var(--text-muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.pricing-card { border-radius: 6px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.price { color: #F4F0F6; font-weight: 700; }
.pricing-card .cta-button { margin-top: auto; }
.modules, .support-card { margin-top: 26px; }
.module-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.module-chip { border: 1px solid rgba(111, 175, 183, .24); background: rgba(111, 175, 183, .07); color: #DCE1EA; border-radius: 6px; padding: 10px 14px; }
.contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.contract-card { border-radius: 6px; padding: 30px; cursor: pointer; }
.contract-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.contract-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 12, .86); backdrop-filter: blur(14px); }
.modal-panel { position: relative; width: min(980px, 100%); max-height: 88vh; overflow: auto; border-radius: 6px; padding: clamp(24px, 5vw, 54px); background: #0C1220; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.modal-panel pre { white-space: pre-wrap; color: var(--text-soft); font-family: inherit; line-height: 1.65; }
.modal-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: rgba(247,243,248,.06); color: #fff; font-size: 28px; cursor: pointer; }
.signature-fields { display: grid; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.steps-grid article { border-radius: 6px; padding: 24px; }
.steps-grid span { color: var(--accent-cyan); font-weight: 800; }
.centered { margin: 0 auto; }
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--text-muted); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-grid, .chat-grid { gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 112px; }
  .hero-grid, .chat-grid { display: flex; flex-direction: column; align-items: stretch; }
  .order-video { order: 1; }
  .order-content { order: 2; }
  .order-chat-copy { display: contents; }
  .chat-copy .eyebrow,
  .chat-copy h2 { order: 1; }
  .order-chat-window { order: 2; }
  .chat-copy p:not(.eyebrow),
  .chat-copy button,
  .chat-copy .notice,
  .chat-copy .chat-status { order: 3; }
  .chat-window { min-height: 560px; }
  .pricing-grid, .contract-grid { grid-template-columns: 1fr; }
  .chat-input-row { grid-template-columns: 1fr; }
  .header-inner { min-height: 70px; }
  .logo small { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 36px; }
  .site-header .cta-button { padding: 10px 14px; }
  .button-row, .two-rows { flex-direction: column; }
  .cta-button { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .chat-message { max-width: 94%; }
}
