:root {
  --ink: #17191c;
  --muted: #68707d;
  --line: #e1e4e8;
  --soft: #f6f7f8;
  --accent: #c9362b;
  --green: #16855b;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(225, 228, 232, .86);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px);
}
.brand, .stage-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.desktop-nav { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.desktop-nav a:hover { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.language-button { border: 0; background: transparent; color: var(--muted); padding: 9px 10px; cursor: pointer; }
.sign-in { border: 1px solid var(--ink); border-radius: 7px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.sign-in:hover { background: var(--ink); color: var(--white); }

.hero { min-height: 94vh; padding: 136px 24px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 900px; margin: 0 auto 64px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(58px, 8vw, 112px); line-height: .96; letter-spacing: 0; font-weight: 680; }
.hero-deck { max-width: 680px; margin: 28px auto 0; color: #525964; font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 34px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; background: var(--ink); color: white; font-size: 15px; font-weight: 650; }
.primary-action:hover { background: var(--accent); }
.text-action { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }

.workspace-stage { max-width: 1320px; height: 520px; margin: 0 auto; overflow: hidden; border: 1px solid #d7dade; border-bottom: 0; border-radius: 9px 9px 0 0; background: white; box-shadow: 0 28px 70px rgba(26, 31, 38, .13); }
.stage-topbar { height: 48px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.stage-brand img { width: 22px; height: 22px; border-radius: 5px; }
.stage-tabs { display: flex; gap: 25px; color: var(--muted); }
.stage-tabs span:first-child { color: var(--accent); font-weight: 650; }
.live-state { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.live-state i, .agent-title i { width: 7px; height: 7px; border-radius: 50%; background: #27be6b; }
.stage-body { height: calc(100% - 48px); display: grid; grid-template-columns: 210px 1fr 300px; }
.stage-sidebar { display: flex; flex-direction: column; gap: 3px; padding: 22px 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.stage-sidebar > b, .stage-sidebar > span:not(.section-label) { padding: 9px 11px; border-radius: 6px; }
.stage-sidebar > b { background: #f8eceb; color: var(--accent); }
.section-label { padding: 0 10px 8px; color: #9aa1ac; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.section-label.recent { margin-top: 20px; }
.stage-sidebar small { padding: 7px 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage-main { min-width: 0; padding: 30px; }
.market-heading { display: flex; align-items: start; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.market-heading small, .metric-strip small { color: #89919d; font-size: 9px; letter-spacing: .07em; }
.market-heading h2 { margin: 8px 0 0; font-size: 25px; letter-spacing: 0; }
.neutral-tag { border: 1px solid #ddaa55; color: #a16b12; border-radius: 5px; padding: 5px 7px; font-size: 9px; font-weight: 700; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.metric-strip div { display: flex; flex-direction: column; gap: 5px; padding: 20px 15px; border-right: 1px solid var(--line); }
.metric-strip div:first-child { padding-left: 0; }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { font-size: 14px; }
.metric-strip span { color: var(--muted); font-size: 10px; }
.chart-panel { margin-top: 24px; }
.chart-header { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.chart-header span:first-child { color: var(--ink); font-weight: 650; }
.chart-grid { position: relative; height: 190px; margin-top: 14px; border-bottom: 1px solid #bfc4ca; background-size: 100% 46px; background-image: linear-gradient(#edf0f2 1px, transparent 1px); }
.chart-line { position: absolute; inset: 25px 12px 15px; display: flex; align-items: flex-end; gap: 5%; }
.chart-line i { width: 4%; background: #252a31; min-height: 20px; }
.chart-line i:nth-child(1) { height: 22%; } .chart-line i:nth-child(2) { height: 35%; } .chart-line i:nth-child(3) { height: 30%; }
.chart-line i:nth-child(4) { height: 54%; } .chart-line i:nth-child(5) { height: 47%; } .chart-line i:nth-child(6) { height: 66%; background: var(--accent); }
.chart-line i:nth-child(7) { height: 59%; } .chart-line i:nth-child(8) { height: 74%; } .chart-line i:nth-child(9) { height: 68%; }
.chart-line i:nth-child(10) { height: 82%; background: var(--green); } .chart-line i:nth-child(11) { height: 72%; } .chart-line i:nth-child(12) { height: 88%; }
.stage-agent { display: flex; flex-direction: column; padding: 20px 16px; border-left: 1px solid var(--line); font-size: 12px; }
.agent-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.stage-agent > p { align-self: flex-end; max-width: 210px; margin: 65px 0 35px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.agent-response { display: flex; flex-direction: column; gap: 9px; line-height: 1.55; }
.agent-response span { color: var(--muted); }
.agent-input { margin-top: auto; display: flex; justify-content: space-between; padding: 11px 12px; border: 1px solid #d2d6db; border-radius: 8px; color: #a0a6ae; }

.principles, .architecture { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.section-intro { max-width: 760px; }
.section-intro h2, .research-band h2, .closing h2 { margin: 0; font-size: clamp(35px, 4.5vw, 62px); line-height: 1.08; letter-spacing: 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.principle-grid article { min-height: 260px; padding: 24px 30px 20px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 30px; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid article > span { color: var(--accent); font-size: 12px; }
.principle-grid h3 { margin: 70px 0 12px; font-size: 23px; }
.principle-grid p { max-width: 310px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.research-band { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: end; padding: 110px max(24px, calc((100vw - 1200px) / 2)); background: #17191c; color: white; }
.research-band .eyebrow { color: #e06a61; }
.research-flow { border-top: 1px solid #444950; }
.research-flow div { display: flex; align-items: center; gap: 20px; min-height: 74px; border-bottom: 1px solid #444950; }
.research-flow b { color: #e06a61; font-size: 12px; }
.research-flow span { font-size: 17px; }
.research-flow i { display: none; }

.access-table { margin-top: 64px; border-top: 1px solid var(--ink); }
.access-row { display: grid; grid-template-columns: 1fr 180px 220px; min-height: 66px; align-items: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.access-row span:not(:first-child) { color: var(--muted); }
.access-head { min-height: 44px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.access-row .available { color: var(--green); font-weight: 650; }

.closing { padding: 120px 24px; text-align: center; border-top: 1px solid var(--line); }
.closing img { width: 58px; height: 58px; border-radius: 13px; }
.closing h2 { max-width: 720px; margin: 25px auto 34px; }
footer { display: flex; justify-content: space-between; padding: 26px max(24px, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 24px; }

.pricing-hero { padding: 154px 24px 76px; text-align: center; border-bottom: 1px solid var(--line); }
.pricing-hero h1 { max-width: 990px; margin: 0 auto; font-size: clamp(46px, 6.5vw, 86px); line-height: 1.02; }
.pricing-hero .hero-deck { max-width: 740px; }
.pricing-section { max-width: 1200px; margin: 0 auto; padding: 72px 24px 120px; }
.billing-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.billing-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f5f6f7; }
.billing-toggle button { min-width: 88px; border: 0; border-radius: 6px; padding: 8px 13px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.billing-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 24, 30, .1); font-weight: 650; }
.catalog-status { color: #8a919b; font-size: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.price-plan { display: flex; min-height: 500px; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); }
.price-plan:last-child { border-right: 0; }
.price-plan.featured { background: #f7f8f9; }
.plan-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.price-plan h2 { margin: 18px 0 8px; font-size: 28px; }
.plan-price { min-height: 57px; font-size: 38px; font-weight: 680; line-height: 1.1; }
.plan-description { min-height: 78px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.plan-features { display: flex; flex-direction: column; gap: 0; margin: 22px 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plan-features li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); color: #454c56; font-size: 14px; line-height: 1.45; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: auto; border: 1px solid var(--ink); border-radius: 7px; font-size: 14px; font-weight: 650; }
.plan-action:hover, .featured .plan-action { background: var(--ink); color: white; }
.featured .plan-action:hover { background: var(--accent); border-color: var(--accent); }
.compare-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 110px; }
.compare-section h2, .faq-section h2 { margin: 0 0 38px; font-size: clamp(32px, 4vw, 50px); }
.compare-table { border-top: 1px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 1fr repeat(3, 150px); min-height: 58px; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.compare-row span:not(:first-child) { text-align: center; }
.compare-row.head { min-height: 42px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.yes { color: var(--green); font-weight: 700; }
.faq-section { max-width: 900px; margin: 0 auto; padding: 0 24px 120px; }
.faq-item { padding: 25px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 9px; font-size: 18px; }
.faq-item p { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .desktop-nav { display: none; }
  .hero { min-height: auto; padding: 120px 16px 0; }
  .hero-copy { margin-bottom: 46px; }
  h1 { font-size: clamp(51px, 16vw, 76px); }
  .hero-deck { font-size: 19px; }
  .workspace-stage { height: 475px; width: 760px; margin-left: 0; transform-origin: left top; }
  .stage-body { grid-template-columns: 150px 1fr 230px; }
  .stage-topbar { grid-template-columns: 150px 1fr auto; }
  .principles, .architecture { padding: 88px 20px; }
  .principle-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .principle-grid article, .principle-grid article + article { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid h3 { margin-top: 30px; }
  .research-band { grid-template-columns: 1fr; gap: 55px; padding: 84px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-plan:last-child { border-bottom: 0; }
  .compare-row { grid-template-columns: minmax(120px, 1fr) repeat(3, 80px); font-size: 12px; }
}

@media (max-width: 620px) {
  .brand span { font-size: 14px; }
  .language-button { padding: 7px 5px; font-size: 12px; }
  .sign-in { padding: 8px 12px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .primary-action { width: 100%; max-width: 300px; }
  .workspace-stage { width: 700px; transform: scale(.54); margin-bottom: -218px; }
  .access-row { grid-template-columns: 1fr 70px 95px; gap: 8px; font-size: 12px; }
  .access-row strong { font-size: 13px; }
  footer { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: space-between; }
  .pricing-hero { padding: 124px 20px 64px; }
  .pricing-hero h1 { font-size: 46px; }
  .pricing-section { padding: 48px 16px 90px; }
  .billing-controls { align-items: flex-start; flex-direction: column; }
  .price-plan { padding: 26px 20px; }
  .compare-section { overflow-x: auto; padding: 0 16px 80px; }
  .compare-table { min-width: 510px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
