:root {
  --paper: #fff;
  --soft: #faf9fe;
  --ink: #27243e;
  --muted: #716e81;
  --faint: #898497;
  --line: #eae7f3;
  --accent: #6d57e8;
  --deep: #5140a7;
  --dark: #29243f;
  --max: 1160px;
}

body { background: #fff; color: var(--ink); font-family: inherit; }
.container { width: min(1160px, calc(100% - 44px)); max-width: none; margin-inline: auto; padding: 0; }
.skip { z-index: 40; border-radius: 10px; box-shadow: 0 12px 30px rgba(59, 53, 102, .12); }
.header-inner { height: auto; min-height: 72px; justify-content: initial; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy small { margin-top: 3px; color: #89849e; font-size: 9px; font-weight: 600; letter-spacing: .01em; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; }
.brand b { flex: 0 0 auto; margin: 0; }
.brand-copy { white-space: nowrap; }
.header-cta { margin-left: 0; border: 0; border-radius: 12px; background: var(--accent); box-shadow: 0 10px 22px rgba(94, 71, 216, .18); }
.header-cta:hover { background: var(--deep); }
.crumb { color: var(--faint); border-color: var(--line); }
.hero { padding: 82px 0 90px; background: linear-gradient(180deg, #fbfaff, #f8f8ff 76%, #fff); color: var(--ink); }
.hero-grid { grid-template-columns: 1.08fr .92fr; gap: 58px; }
.eyebrow, .section-kicker { color: #6551c6; letter-spacing: .04em; }
.eyebrow { padding: 7px 12px; border-color: #e7e2ff; border-radius: 999px; box-shadow: 0 7px 25px rgba(120, 97, 224, .07); }
.eyebrow:before { display: none; }
h1 { margin: 22px 0; font-family: inherit; font-size: clamp(42px, 5vw, 68px); line-height: 1.16; font-weight: 900; letter-spacing: -.055em; }
h1 strong { color: var(--accent); }
.hero-lead { max-width: 610px; color: #66647b; font-size: 17px; line-height: 1.85; }
.hero-actions { gap: 12px; }
.btn { min-height: 49px; padding: 0 21px; border-radius: 14px; font-size: 14px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); box-shadow: 0 12px 25px rgba(94, 71, 216, .23); }
.btn-primary:hover { background: var(--deep); box-shadow: 0 15px 30px rgba(94, 71, 216, .3); }
.btn-ghost { border-color: #e7e3f2; border-radius: 14px; background: #fff; color: #5140a7; }
.hero-note { color: #817e92; font-size: 12px; }
.hero-agents { gap: 8px; margin-top: 17px; }
.agent-chip { border-color: #e8e4f2; border-radius: 999px; background: rgba(255,255,255,.78); color: #625f76; }
.agent-chip:before { color: #6d57e8; }
.hero-support { color: #817e92; }
.terminal { position: relative; padding: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: linear-gradient(145deg, #eeeaff, #f8e9f2 70%, #fff0e5); box-shadow: 0 25px 60px rgba(92,79,151,.12); }
.terminal:before { position: absolute; inset: 34px 24px 20px 32px; z-index: 0; border: 1px solid #eeebf5; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 15px 35px rgba(70,55,123,.1); content: ""; }
.terminal-bar { position: relative; z-index: 1; height: 24px; border: 0; }
.terminal-bar i { background: #d9d3e7; }
.terminal-body { position: relative; z-index: 1; padding: 22px 18px 20px; color: #5e5a72; font-size: 12px; }
.terminal-body .prompt { color: #6d57e8; }
.terminal-body .ok { color: #258c74; }
.terminal-body .dim { color: #858196; }
.workflow-label { color: var(--accent); }
.workflow-label:before { background: var(--accent); }
.section { padding: 84px 0; }
.section-soft { background: #faf9fe; }
.section-head { margin-bottom: 34px; }
.section-kicker { margin-bottom: 13px; font-size: 13px; font-weight: 900; }
.section-head h2, .agent-copy h2 { margin: 0 0 14px; font-family: inherit; font-size: clamp(30px, 3.6vw, 43px); line-height: 1.28; font-weight: 800; letter-spacing: -.04em; }
.section-head p, .agent-copy p { color: var(--muted); font-size: 15px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; background: transparent; }
.feature { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(65,54,106,.035); }
.feature:nth-child(2n) { background: #fff; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 17px; border-radius: 14px; background: #eee9ff; color: var(--accent); font-size: 20px; }
.feature h3, .flow-step h3, .license-box h3 { color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 800; }
.feature p, .flow-step p { color: var(--muted); }
.stats { gap: 14px; margin-top: 28px; }
.stat { padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 16px; background: #fff; }
.stat strong { color: var(--deep); font-size: 25px; }
.stat span { color: var(--muted); }
.flow { gap: 14px; }
.flow-step { min-height: 205px; padding: 24px; border-color: var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(65,54,106,.035); }
.flow-step:before { width: 38px; height: 38px; margin-bottom: 20px; border-radius: 12px; background: #eee9ff; color: var(--accent); text-align: center; line-height: 38px; letter-spacing: 0; }
.flow-step em { color: var(--accent); }
.agent-layout { align-items: center; }
.agent-list li { border-color: var(--line); color: #625f76; }
.agent-list li:before { color: var(--accent); }
.prompt-box { border: 1px solid #e9e4f8; border-radius: 20px; background: #29243f; box-shadow: 0 18px 45px rgba(49, 39, 91, .14); }
.prompt-box header { align-items: center; color: #d5cee9; }
.copy-btn { padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; color: #fff; }
.copy-btn:hover { background: rgba(255,255,255,.1); }
.prompt-box .highlight { color: #d4caff; }
.edition-grid { gap: 14px; }
.edition-card { min-height: 300px; padding: 22px; gap: 11px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(65,54,106,.035); transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.edition-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(66,54,108,.09); }
.edition-card:focus-visible { outline: 3px solid #5d49e8; outline-offset: 3px; }
.edition-card.active { border: 2px solid var(--accent); background: #fbfaff; box-shadow: 0 12px 30px rgba(94,71,216,.12); }
.edition-card h3 { font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1.4; }
.edition-card p, .edition-card ul { color: var(--muted); font-size: 13px; }
.edition-card ul { min-height: 84px; padding-left: 18px; }
.edition-card li { margin: 5px 0; }
.edition-card .choose { display: inline-flex; align-self: flex-start; margin-top: auto; padding: 5px 10px; border-radius: 999px; background: #f0ecff; color: var(--deep); }
.download-grid { gap: 14px; }
.download { min-height: 104px; padding: 20px; border-color: var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(65,54,106,.035); }
.download h3 { font-family: inherit; font-size: 17px; font-weight: 800; }
.download p { color: var(--muted); }
.download .btn { white-space: normal; text-align: center; }
.license { gap: 14px; }
.license-box { padding: 25px; border-color: var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(65,54,106,.035); }
.license-box h3 { margin: 0 0 14px; }
.license-box p, .license-box li { color: var(--muted); }
.license-box li { border-color: #f0edf6; }
.code-inline { border-radius: 6px; background: #f0ecff; color: var(--deep); }
.faq { max-width: 830px; }
.faq-item { border-color: var(--line); }
.faq-item summary { color: var(--ink); }
.faq-item summary:after { color: var(--accent); }
.faq-item p { color: var(--muted); }
.cta-strip { padding: 58px 0; background: linear-gradient(110deg, #6250cf, #9a64c2 58%, #d578a8); color: #fff; }
.cta-row h2 { font-family: inherit; font-size: clamp(30px, 3.5vw, 43px); line-height: 1.25; font-weight: 800; letter-spacing: -.04em; }
.cta-row p { color: #f7f2ff; }
.btn-light { border-radius: 14px; color: #5140a7; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-grid h3 { color: var(--ink); font-family: inherit; font-weight: 800; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-color: var(--line); color: #898497; }

@media (max-width: 900px) {
  .hero-grid { gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-grid { grid-template-columns: 1fr; }
  .edition-card { min-height: 0; }
  .edition-card ul { min-height: 0; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 64px; flex-wrap: nowrap; gap: 12px; padding: 0; }
  .brand { font-size: 18px; }
  .header-nav { display: flex; order: initial; flex: 1 1 auto; width: auto; margin-left: auto; padding: 0; overflow-x: auto; gap: 17px; font-size: 12px; }
  .header-nav { scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-cta { flex: 0 0 auto; margin-left: 0; padding: 9px 12px; }
  .hero { padding: 55px 0 65px; }
  .hero-grid, .agent-layout { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(40px, 10vw, 58px); }
  .hero-lead { font-size: 16px; }
  .terminal { max-width: 520px; }
  .section { padding: 68px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: 0; }
  .download { align-items: stretch; flex-direction: column; }
  .download .btn { width: 100%; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .header-nav { order: 3; flex: 0 0 100%; margin: 0; padding: 8px 0 2px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-agents { gap: 6px; }
  .agent-chip { font-size: 11px; }
  .stats { gap: 9px; }
  .stat { padding: 14px 10px; }
  .stat strong { font-size: 22px; }
  .prompt-box { padding: 19px; }
  .cta-row .btn { width: 100%; }
}

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