.home-page {
  --home-blue: #2449dc;
  --home-navy: #142044;
  --home-muted: #485a76;
  --home-line: #dee6f5;
  --home-radius: 22px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(49px, 7vw, 99px) clamp(57px, 6.2vw, 88px);
  border-bottom: 1px solid #e6ecf8;
  background:
    radial-gradient(ellipse at 81% 40%, #dce7ff 0%, transparent 56%),
    radial-gradient(ellipse at 100% 1%, #eae6ff 0%, transparent 61%),
    linear-gradient(117deg, #fff 18%, #f4f7ff 76%);
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  background:
    linear-gradient(#4f6ac21a 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, #4f6ac21a 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse at 66% 43%, #000, transparent 74%);
  content: "";
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4.15vw, 65px);
}

.home-kicker {
  color: var(--home-blue);
  font-size: .875rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-intro .home-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.home-intro .home-kicker::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.home-intro h1 {
  margin-top: 19px;
  color: var(--home-navy);
  font-size: clamp(2.4rem, 4.15vw, 3.875rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.home-intro h1 em {
  color: var(--home-blue);
  font-style: normal;
}

.home-description {
  max-width: 31em;
  margin-top: 22px;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.8;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 27px;
}

.home-page .home-actions .button {
  min-height: 48px;
  padding-inline: 18px;
}

.home-install-link { margin-top: 16px; }

.product-demo {
  min-width: 0;
  padding: 7px;
  border: 1px solid #aebfedb8;
  border-radius: 24px;
  background: #ffffffeb;
  box-shadow: 0 28px 64px #283d7621, 0 5px 13px #2d4b8d13;
}

.demo-chrome, .demo-brand, .demo-footer, .demo-session-heading {
  display: flex;
  align-items: center;
  min-width: 0;
}

.demo-chrome, .demo-footer, .demo-session-heading {
  justify-content: space-between;
  gap: 8px 14px;
}

.demo-chrome {
  padding: 12px 15px;
}

.demo-brand {
  gap: 9px;
  color: var(--home-navy);
  font-size: .9375rem;
  font-weight: 750;
}

.demo-brand img { border-radius: 6px; }

.demo-caption {
  color: var(--home-muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 1px 9px 10px;
  padding: 4px;
  border: 1px solid #e3eaf8;
  border-radius: 11px;
  background: #edf2fc;
}

.demo-tabs button {
  min-height: 41px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #425574;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}

.demo-tabs button:hover { color: var(--home-blue); }
.demo-tabs button[aria-selected="true"] {
  border-color: #dbe4fb;
  background: white;
  box-shadow: 0 1px 3px #1f3d7710;
  color: var(--home-blue);
}

.demo-panel {
  min-width: 0;
  min-height: 283px;
  margin-inline: 9px;
  overflow-wrap: anywhere;
  border: 1px solid #e0e8f6;
  border-radius: 12px;
  background: #fff;
}

.demo-panel + .demo-panel { margin-top: 8px; }
.is-interactive .demo-panel { margin-top: 0; }
.demo-panel:focus-visible { outline-offset: 2px; }
.demo-panel h2 { color: var(--home-navy); font-size: 1.0625rem; line-height: 1.35; }

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .28fr) minmax(0, .72fr);
  min-height: inherit;
}

.demo-sidebar {
  min-width: 0;
  padding: 20px 11px;
  border-right: 1px solid #e5ecf9;
  border-radius: 11px 0 0 11px;
  background: #f4f7fd;
  color: #526380;
  font-size: .8125rem;
  line-height: 1.55;
}

.demo-sidebar strong { display: block; margin-top: 5px; color: var(--home-navy); }
.demo-sidebar code { color: #566683; font-size: .75rem; }
.demo-current {
  margin-block: 15px 10px;
  padding: 7px 6px;
  border-radius: 7px;
  background: #e5edff;
  color: #294ab7;
  font-weight: 700;
}

.demo-session { min-width: 0; padding: 18px 16px 16px; }

.demo-status {
  padding: 5px 7px;
  border-radius: 5px;
  background: #def6ec;
  color: #087045;
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}

.demo-request {
  margin-block: 12px 13px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eff4ff;
  color: #324669;
  font-size: .875rem;
  line-height: 1.55;
}

.demo-activity {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-activity li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #293959;
}

.demo-step-icon {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid #c3e7d6;
  border-radius: 50%;
  background: #eaf8f0;
  color: #197448;
  font-size: .75rem;
}

.demo-activity strong, .demo-activity li div > span {
  display: block;
  font-size: .8125rem;
  line-height: 1.45;
}

.demo-activity li div > span { margin-top: 2px; color: #526380; }
.demo-activity code { font-size: .75rem; }

.demo-cli { padding: 19px clamp(14px, 2vw, 24px) 14px; }
.demo-terminal {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #162447;
  color: #c3cfea;
  font-size: .8125rem;
  line-height: 1.55;
}

.demo-terminal p:nth-child(3) { margin-top: 5px; }
.demo-terminal code { color: #fff; font-size: .875rem; }
.demo-terminal span { color: #91aaff; }
.demo-cli .text-link { margin-top: 11px; }

.demo-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(9px, 2vw, 25px);
  padding: 16px clamp(13px, 2vw, 24px);
  background: linear-gradient(135deg, white 30%, #edf2ff);
}

.demo-mobile-copy p { margin-block: 10px; color: var(--home-muted); font-size: .875rem; line-height: 1.65; }
.demo-mobile-copy > span { color: #3954a2; font-size: .8125rem; }
.demo-phone {
  width: min(100%, 161px);
  min-height: 210px;
  justify-self: center;
  padding: 12px 11px;
  border: 4px solid #202e52;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px #283d7526;
  color: var(--home-navy);
  font-size: .8125rem;
}
.demo-phone-line { width: 28px; height: 3px; margin: 0 auto 22px; border-radius: 10px; background: #a8b6d3; }
.demo-phone p:first-of-type { margin: 13px 0 4px; }
.demo-phone code { font-size: .75rem; }
.demo-phone-status {
  width: fit-content;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #fff0cd;
  color: #754712;
  font-size: .75rem;
  font-weight: 650;
}

.demo-footer {
  flex-wrap: wrap;
  padding: 12px 13px 7px;
  color: #526380;
  font-size: .8125rem;
  line-height: 1.4;
}

.demo-footer a, .sample-command a { color: var(--home-blue); font-weight: 650; }
.demo-footer a:hover, .sample-command a:hover { text-decoration: underline; text-underline-offset: .2em; }

.home-section { padding-block: clamp(55px, 6vw, 91px); }
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.home-heading h2, .enterprise-panel h2 {
  color: var(--home-navy);
  font-size: clamp(1.9rem, 3.15vw, 2.875rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.043em;
  text-wrap: balance;
}

.home-heading .home-kicker, .enterprise-panel .home-kicker { margin-bottom: 10px; }
.home-heading > p {
  max-width: 28em;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.home-capabilities, .home-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.capability-card, .scenario-tile {
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: #fff;
}

.capability-card {
  display: grid;
  align-content: start;
  padding: clamp(19px, 2.45vw, 31px);
}

.capability-card:hover, .scenario-tile:hover {
  border-color: #a3b6f0;
  box-shadow: 0 10px 30px #263c7310;
}

.capability-card h3, .scenario-tile h3 {
  color: var(--home-navy);
  font-size: 1.3125rem;
  line-height: 1.35;
  letter-spacing: -.018em;
}

.capability-card p, .scenario-tile-copy p {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.home-card-link {
  display: block;
  margin-top: 16px;
  color: var(--home-blue);
  font-size: .875rem;
  font-weight: 700;
}

.capability-symbol {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #e9efff;
  color: #3255dc;
}

.capability-symbol::before, .capability-symbol::after { position: absolute; content: ""; }
.symbol-project::before { inset: 13px 11px 12px; border: 2px solid; border-radius: 4px; }
.symbol-project::after { top: 20px; right: 12px; left: 12px; border-top: 2px solid; }
.symbol-tools { background: #e7f5ef; color: #21805a; }
.symbol-tools::before { inset: 12px; border: 2px solid; border-radius: 5px; transform: rotate(45deg) scale(.8); }
.symbol-tools::after { inset: 18px; border-radius: 3px; background: currentColor; }
.symbol-review { background: #f1ecff; color: #6349bf; }
.symbol-review::before { inset: 11px 13px; border: 2px solid; border-radius: 5px 5px 8px 8px; }
.symbol-review::after { inset: 19px 17px auto auto; width: 10px; height: 5px; border-bottom: 2px solid; border-left: 2px solid; transform: rotate(-45deg); }

.home-scenarios { background: #f6f8fd; border-block: 1px solid #edf1f8; }
.scenario-tile { overflow: hidden; }
.scenario-preview {
  position: relative;
  display: grid;
  height: 146px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf0ff, #e2e9ff);
}

.scenario-preview::before {
  position: absolute;
  inset: 16px 5% -36px 31%;
  border: 1px solid #8293bd38;
  border-radius: 36px;
  transform: rotate(-20deg);
  content: "";
}

.scenario-preview > div {
  position: relative;
  width: min(83%, 255px);
  padding: 9px 10px 10px;
  border: 1px solid #ffffffb3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 19px #233e6c1c;
  color: #314468;
  font-size: .8125rem;
}

.scenario-preview > div > span { display: block; margin: 0 3px 5px; font-weight: 750; }
.preview-code > div { background: #18274b; color: #e0eaff; }
.preview-code code { display: block; padding: 4px 5px; font-size: .6875rem; line-height: 1.45; overflow-wrap: anywhere; }
.sample-code-remove { background: #372b42; color: #ffc1c8; }
.sample-code-add { background: #193e42; color: #99eac0; }
.preview-video { background: linear-gradient(135deg, #f2eaff, #e8e2ff); }
.preview-office { background: linear-gradient(135deg, #edf9f5, #def1e9); }
.preview-video p, .preview-office p {
  margin-top: 3px;
  padding: 4px 6px;
  border-radius: 3px;
  background: #f4efff;
  color: #51417c;
}
.preview-office p { background: #ebf6f1; color: #285e4d; }
.scenario-tile-copy { padding: 20px clamp(17px, 2vw, 26px) 23px; }

.sample-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 73px);
  align-items: center;
}

.sample-heading { display: block; }
.sample-heading > p { margin-top: 14px; }

.sample-result {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 27px);
  border: 1px solid #d9e4f6;
  border-radius: var(--home-radius);
  background: #f7f9ff;
}

.sample-result-heading, .sample-command {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.sample-result-heading { padding-bottom: 10px; }
.sample-result-heading h3 { color: var(--home-navy); font-size: 1.125rem; }
.sample-result-heading > span { color: var(--home-muted); font-size: .8125rem; }
.sample-result table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; line-height: 1.4; }
.sample-result th, .sample-result td { padding: 11px 3px; border-bottom: 1px solid #dfe7f6; }
.sample-result th:first-child { padding-left: 0; }
.sample-result tr > :not(:first-child) { text-align: center; white-space: nowrap; }
.sample-result thead th { color: var(--home-muted); }
.sample-pass { color: #087045; font-weight: 750; }
.sample-fail { color: #ad344a; font-weight: 750; }
.sample-command { margin-top: 16px; font-size: .875rem; }
.sample-command code { padding: 5px 7px; border-radius: 6px; background: #e7edfb; color: #314771; }

.home-enterprise { padding-top: 0; }
.enterprise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(23px, 4.2vw, 62px);
  border-radius: 27px;
  background: radial-gradient(ellipse at right, #3b56bb 0%, transparent 72%), #17254a;
  color: #fff;
}

.enterprise-panel .home-kicker { color: #aabfff; }
.enterprise-panel h2 { color: #fff; }
.enterprise-panel p:not(.home-kicker) { max-width: 31em; margin-top: 14px; color: #e0e9ff; font-size: 1rem; line-height: 1.7; }
.enterprise-panel img {
  width: min(100%, 323px);
  justify-self: end;
  height: auto;
  border: 1px solid #dde6ff;
  border-radius: 18px;
}
.home-page .enterprise-panel .button-primary { background: #fff; color: #2449c7; }
.home-page .enterprise-panel .button-primary:hover { background: #e5edff; }
.home-page .enterprise-panel .button-outline {
  border-color: #c1d0ff92;
  background: #1b2d5d;
  color: #fff;
}
.home-page .enterprise-panel .button-outline:hover { background: #293f77; }

.home-faq { padding-top: 0; }
.home-faq .home-heading { display: block; }
.home-faq .faq-inner { gap: clamp(13px, 4vw, 70px); }
.home-faq .faq-list p { font-size: .9375rem; }

.home-quickstart { padding-block: 29px; border-top: 1px solid #e0e8f8; background: #f3f6fd; }
.quickstart-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 13px 22px;
}

.quickstart-inner h2 { color: var(--home-navy); font-size: 1.5rem; }
.quickstart-inner > div:first-child p { margin-top: 4px; color: var(--home-muted); font-size: 1rem; line-height: 1.65; }
.quickstart-inner > div:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.quickstart-inner > div:nth-child(2) .text-link { margin-top: 0; }
.quickstart-inner .home-cli-command { grid-column: 1 / -1; margin-top: 0; background: #fff; }
.quickstart-inner .home-cli-command p[dir="ltr"] { white-space: pre-wrap; }

@media (prefers-reduced-motion: no-preference) {
  .capability-card, .scenario-tile { transition: box-shadow .18s ease, border-color .18s ease; }
  .is-interactive .demo-panel:not([hidden]) { animation: show-demo .24s ease-out both; }
  @keyframes show-demo { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 1020px) {
  .demo-layout { grid-template-columns: minmax(0, .27fr) minmax(0, .73fr); }
  .demo-session { padding-inline: 12px; }
}

@media (max-width: 850px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-intro { text-align: center; }
  .home-intro h1 { font-size: clamp(2.6rem, 8vw, 4.25rem); }
  .home-description { margin-inline: auto; }
  .home-intro .home-actions { justify-content: center; }
  .product-demo { width: min(100%, 575px); margin-inline: auto; }
  .home-hero::before { inset: 9% 0 0; }
}

@media (max-width: 670px) {
  .home-heading { display: block; }
  .home-heading > p { margin-top: 11px; }
  .home-capabilities, .home-scenario-grid, .sample-layout, .enterprise-panel, .quickstart-inner { grid-template-columns: minmax(0, 1fr); }
  .home-capabilities, .home-scenario-grid { gap: 11px; margin-top: 21px; }
  .capability-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 13px;
    align-items: start;
  }
  .capability-symbol { grid-row: 1 / 4; margin-bottom: 0; }
  .capability-card p { grid-column: 2; margin-top: 5px; }
  .capability-card .home-card-link { grid-column: 2; margin-top: 9px; }
  .scenario-preview { height: 129px; }
  .sample-heading .home-actions { margin-top: 20px; }
  .enterprise-panel img { width: min(100%, 245px); justify-self: start; }
  .home-faq .text-link { margin-top: 10px; }
}

@media (max-width: 450px) {
  .home-hero { padding-top: 43px; }
  .home-intro h1 { margin-top: 13px; font-size: clamp(1.96rem, 9vw, 2.75rem); }
  .home-description { margin-top: 16px; }
  .home-actions { margin-top: 21px; }
  .home-page .home-actions .button { min-height: 45px; padding-inline: 12px; }
  .product-demo { border-radius: 17px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr); }
  .demo-sidebar { display: none; }
  .demo-chrome { padding-inline: 9px; }
  .demo-tabs, .demo-panel { margin-inline: 3px; }
  .demo-tabs button { font-size: .8125rem; }
  .demo-panel { min-height: 252px; }
  .demo-footer { padding-inline: 7px; font-size: .75rem; }
  .enterprise-panel { border-radius: 21px; }
}
