:root {
  color-scheme: light;
  --ink: #17203a;
  --night: #10182b;
  --body: #4b5367;
  --paper: #fdfdfa;
  --line: #dfe2e9;
  --tint: #f1f2f9;
  --accent: #dbfa80;
  --blue: #3849a4;
  --white: #fff;
  --radius: 16px;
  --sans: "Inter", "Aptos", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 104px; }
body { margin: 0; font: 400 1rem/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6575d6; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1, h2 { letter-spacing: -.054em; }
h3 { letter-spacing: -.032em; }
p { color: var(--body); }
h1 { font-size: clamp(2.8rem, 6.1vw, 5.55rem); font-weight: 690; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.65rem); font-weight: 680; }
h3 { font-size: 1.45rem; font-weight: 660; }

.wrap { width: min(100% - 96px, 1264px); margin-inline: auto; }
.narrow { max-width: 830px; }
.narrow p { margin-top: 16px; max-width: 680px; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 12px; background: var(--accent); }
.skip:focus { top: 12px; }

.header { background: var(--paper); position: relative; z-index: 3; border-bottom: 1px solid #e5e7ed; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; font-size: 1.12rem; font-weight: 690; letter-spacing: -.045em; }
.brand-ai { color: #3d50a1; }
.brand img { width: 38px; height: 38px; flex: none; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 35px); }
.header nav a:not(.button) { text-decoration: none; white-space: nowrap; font-weight: 580; font-size: .94rem; }
.header nav a:not(.button):hover, .header nav [aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .95rem; font-weight: 670; line-height: 1.3; text-align: center; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button.primary { background: var(--accent); color: var(--ink); }
.button.primary:hover { background: #edffb7; border-color: #b9d958; }
.button.nav-button { min-height: 42px; background: var(--ink); color: white; padding-inline: 15px; white-space: nowrap; }
.button.nav-button:hover { background: #344264; }
.button.light-outline { color: var(--white); border-color: #69738c; }
.button.light-outline:hover { background: #28324a; border-color: #b2bad1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero { background: var(--night); color: var(--white); overflow: hidden; }
.hero-inner { min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding-block: 60px; }
.hero-copy { position: relative; z-index: 1; padding-block: 12px; }
.eyebrow, .tag { font-weight: 700; font-size: .83rem; letter-spacing: .088em; text-transform: uppercase; color: var(--blue); }
.hero .eyebrow, .case-intro .eyebrow { color: var(--accent); }
.hero h1 { letter-spacing: -.067em; text-wrap: initial; margin: 16px 0 21px; }
.lead { font-size: clamp(1.11rem, 1.6vw, 1.32rem); line-height: 1.55; max-width: 680px; }
.hero .lead { max-width: 480px; color: #d4dbed; }
.hero .actions { margin-top: 28px; }
.hero-visual { aspect-ratio: 1.38; position: relative; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #151e30; border: 1px solid #38415a; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.section { padding-block: clamp(58px, 7vw, 104px); }
.tint { background: var(--tint); }
.section-head { margin-bottom: 31px; }
.section-head h2 { margin-top: 8px; }
.section-head p:not(.eyebrow) { margin-top: 14px; max-width: 650px; font-size: 1.07rem; }
.service-grid, .project-grid, .engagement-grid, .process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card, .use-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); }
.service-card { text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.service-card:hover, .project-link:hover { border-color: #838fc6; box-shadow: 0 8px 24px #1e2d6310; }
.service-card h3 { margin-top: 17px; }
.service-card p, .use-card p:not(.tag), .project-summary p:not(.tag) { margin-top: 9px; }
.card-action, .text-link { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-action { display: inline-block; margin-top: auto; padding-top: 17px; font-size: .9rem; }
.text-link:hover, .project-link:hover .card-action, .service-card:hover .card-action { color: #1e2c78; text-decoration-thickness: 2px; }
.service-icon { display: block; width: 40px; height: 40px; border-radius: 9px; background: #eaedfc; position: relative; color: #3e50a2; }
.service-icon::before, .service-icon::after { content: ""; display: block; position: absolute; }
.service-icon::before { inset: 10px; border: 2px solid currentColor; border-radius: 4px; }
.service-icon::after { top: 18px; left: 14px; width: 12px; height: 4px; border-top: 2px solid currentColor; }
.service-icon.automation::before { inset: 11px; transform: rotate(45deg); border-radius: 3px; }
.service-icon.automation::after { top: 19px; left: 9px; width: 22px; }
.service-icon.custom-tools::after { top: 14px; left: 18px; width: 7px; height: 12px; border: 0; border-left: 2px solid currentColor; }
.service-icon.knowledge::before { border-radius: 5px 5px 5px 1px; inset: 11px; }
.service-icon.knowledge::after { top: 17px; width: 10px; left: 15px; border-bottom: 2px solid currentColor; height: 6px; }
.service-icon.research::before { inset: 10px 13px 13px 10px; border-radius: 50%; }
.service-icon.research::after { top: 26px; left: 24px; width: 8px; transform: rotate(45deg); }
.service-icon.adoption::before { inset: 10px 10px 14px; }
.service-icon.adoption::after { top: 29px; }

.project-card { min-width: 0; }
.project-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid #dfe1ee; background: var(--white); text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.project-summary { display: flex; flex: 1; flex-direction: column; padding: 22px; align-items: flex-start; }
.project-summary h3 { margin-top: 8px; font-size: 1.55rem; }
.tag { font-size: .73rem; letter-spacing: .07em; }
.art { height: 174px; display: grid; align-items: end; padding: 21px 20px 0; overflow: hidden; }
.art-portfolio { background: #293856; color: #14203b; }
.art-crm { background: #cfd7f4; }
.art-insurance { background: #dae7af; }
.mini { padding: 11px 12px 13px; background: #fff; border-radius: 9px 9px 0 0; box-shadow: 0 12px 30px #18254027; font-size: .78rem; min-height: 142px; }
.mini-top { display: flex; justify-content: space-between; gap: 6px; color: #242e42; border-bottom: 1px solid #e5e8ee; padding-bottom: 6px; font-weight: 660; }
.mini-top span:last-child { color: #4c5871; font-weight: 400; }
.mini-chart { display: grid; grid-template-columns: 1fr max-content; gap: 11px; margin-top: 9px; }
.mini-bars { display: flex; align-items: end; gap: 5px; height: 73px; border-bottom: 1px solid #cbd5e7; padding: 3px 5px 0; background: #f1f4fb; }
.mini-bars i, .demo-bars i { flex: 1; height: var(--v); background: #687bd6; border-radius: 3px 3px 0 0; }
.mini-status { display: grid; align-content: center; gap: 4px; background: #f0f4fb; padding: 5px 7px; border-radius: 5px; color: #2f3a5a; }
.mini-crm { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mini-avatar { display: grid; place-items: center; width: 29px; height: 29px; flex: none; background: #e9edff; border-radius: 50%; color: #3a4a8e; font-weight: 700; }
.mini-crm small { display: block; color: #4c5871; font-size: .7rem; }
.mini-pill { margin-left: auto; color: #334386; background: #e9edff; border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.mini-note, .mini-signal { background: #eff2f9; padding: 5px 8px; border-radius: 5px; margin-top: 6px; display: grid; color: #293553; }
.mini-signal { background: #f1f5e5; }

.engagement-grid > article, .process-grid > article { border-top: 2px solid #b7c67d; padding: 19px 12px 4px 0; }
.engagement-grid p, .process-grid p { margin-top: 9px; }
.process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.cta { background: #1a2440; color: white; padding-block: 40px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.cta p { color: #dce3f4; margin-top: 8px; }
.cta .button { flex: none; }

.page-intro, .case-intro { background: #f0f2f9; padding-block: clamp(54px, 7.5vw, 100px); }
.page-intro h1, .case-intro h1 { margin: 9px 0 16px; font-size: clamp(2.65rem, 5.6vw, 4.85rem); max-width: 970px; }
.page-intro .lead { max-width: 730px; }
.detail-list { padding-top: 38px; }
.service-detail { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 50px; padding-block: 31px; border-bottom: 1px solid var(--line); }
.service-detail h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); margin: 12px 0 8px; }
.service-detail ul, .case-facts ul { margin: 0; padding-left: 21px; color: var(--body); }
.service-detail ul { align-self: center; }
.service-detail li, .case-facts li { margin-bottom: 8px; }
.service-detail li::marker, .case-facts li::marker { color: var(--blue); }
.use-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.use-card h2 { font-size: 1.65rem; margin-top: 11px; letter-spacing: -.038em; }
.use-card .text-link { margin-top: auto; padding-top: 18px; }
.case-intro { background: var(--night); color: white; }
.case-intro .lead { color: #dce2ef; }
.case-intro .back { display: inline-block; color: #e7edff; margin-bottom: 20px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(250px, .64fr); gap: 55px; padding-block: 65px; align-items: start; }
.case-story { display: grid; gap: 29px; }
.case-story h2, .case-facts h2, .contact-grid h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.case-story p { margin-top: 9px; }
.case-facts { background: var(--tint); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.case-facts ul { margin-top: 13px; }
.demo-figure { max-width: 920px; margin: auto; }
.demo-figure figcaption { margin-top: 10px; color: var(--body); font-size: .9rem; }
.demo { background: white; border: 1px solid #d8deeb; border-radius: 13px; overflow: hidden; box-shadow: 0 6px 18px #28355b12; }
.demo-title { background: var(--ink); color: white; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-title span { border: 1px solid #7c87a4; color: #e3e9fa; padding: 3px 7px; border-radius: 4px; font-size: .78rem; white-space: nowrap; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #f1f3f9; border-bottom: 1px solid var(--line); }
.demo-tabs button { padding: 7px 9px; font-size: .9rem; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--body); }
.demo-tabs button[aria-selected="true"] { border-color: #babfe2; background: #e4e9ff; color: #2d3a77; font-weight: 650; }
.demo-tabs button:hover { background: #e8ecf8; }
.demo-panel { padding: 13px; }
.demo-panel:focus-visible, .table-scroll:focus-visible { outline-offset: -3px; }
.demo-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.demo-metrics > div, .demo-chart { background: #f3f5fb; border: 1px solid #e4e8f2; padding: 9px 11px; border-radius: 7px; }
.demo-metrics span { display: block; font-size: .81rem; color: var(--body); }
.demo-metrics strong { font-size: 1.2rem; }
.demo-chart { margin-block: 9px; }
.demo-bars { display: flex; align-items: end; gap: clamp(3px,1vw,11px); height: 100px; padding-top: 7px; border-bottom: 1px solid #ced5e8; }
.chart-times { display: flex; justify-content: space-between; margin-top: 5px; font-size: .81rem; color: var(--body); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: 7px 9px; border-bottom: 1px solid #e7ebf3; }
th { background: #f0f3fa; }
.chip { display: inline-block; border-radius: 4px; padding: 1px 6px; white-space: nowrap; font-size: .79rem; }
.chip.warning { color: #704400; background: #fff0d0; }
.chip.good { color: #1a563a; background: #ddf3e8; }
.chip.info { color: #233681; background: #e4eaff; }
.chip.muted { color: #424c62; background: #eef0f5; }
.demo-records { display: grid; gap: 9px; }
.demo-records article { padding: 13px; border: 1px solid #e4e8f2; border-radius: 7px; background: #f7f8fc; }
.demo-records article span { color: var(--blue); font-size: .84rem; }
.demo-records h3 { font-size: 1.13rem; margin: 4px 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; }
.contact-grid h2 { margin-bottom: 12px; }
.contact-grid .text-link { display: inline-block; margin-top: 11px; }
.project-form { display: flex; flex-direction: column; gap: 13px; background: white; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(17px,4vw,30px); }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.inquiry-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 13px; }
.project-form label { font-weight: 650; }
.optional { font-weight: 400; color: var(--body); }
.project-form input, .project-form textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid #aeb6ca; border-radius: 6px; min-height: 43px; padding: 9px 10px; font-weight: 400; background: var(--white); color: var(--ink); }
.project-form textarea { resize: vertical; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.form-note, .form-status { font-size: .9rem; }
.form-status { color: #25458b; }

.career-group { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: 22px 36px; padding-block: 26px; border-top: 1px solid var(--line); }
.career-group h3 { margin-top: 11px; }
.career-list { display: grid; gap: 10px; min-width: 0; }
.career-role { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.career-role summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.25rem; align-items: center; gap: 12px; min-height: 64px; padding: 13px 19px; border-radius: 11px; cursor: pointer; list-style: none; }
.career-role summary::-webkit-details-marker { display: none; }
.career-role summary:hover, .career-role[open] summary { background: var(--tint); }
.career-role summary::after { content: ""; display: block; width: 14px; height: 14px; justify-self: end; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; }
.career-role[open] summary::after { background-size: 100% 2px, 0 0; }
.career-title { font-size: 1.08rem; font-weight: 680; line-height: 1.35; }
.career-location { color: var(--body); font-size: .9rem; white-space: nowrap; }
.career-detail { padding: 19px; color: var(--body); }
.career-detail h4 { margin: 15px 0 3px; color: var(--ink); }
.career-detail ul { margin: 0; padding-left: 1.2em; }
.career-detail li + li { margin-top: 3px; }
.career-detail .career-apply { margin-top: 16px; overflow-wrap: anywhere; }

.footer { background: var(--night); color: white; padding-block: 38px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer .brand-ai { color: var(--accent); }
.footer p { margin-top: 10px; color: #ced5e8; font-size: .9rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer nav a { text-underline-offset: 4px; color: #e2e7f6; font-size: .92rem; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .wrap { width: min(100% - 64px, 1264px); }
  .hero-inner { min-height: 500px; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
  .desktop-break { display: none; }
  .art { padding-inline: 12px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 67px; flex-wrap: wrap; gap: 0; }
  .has-js .menu-toggle { display: inline-flex; align-items: center; min-height: 42px; border-radius: 7px; padding: 7px 12px; border: 1px solid #cbd0e0; color: var(--ink); background: var(--white); font-weight: 630; }
  .header nav { flex-basis: 100%; padding: 4px 0 15px; align-items: stretch; flex-direction: column; gap: 0; }
  .has-js .header nav:not(.is-open) { display: none; }
  .header nav a:not(.button) { padding: 10px 3px; border-bottom: 1px solid var(--line); }
  .header nav .button { margin-top: 10px; align-self: flex-start; }
  .hero-inner { min-height: 0; padding-block: 40px; grid-template-columns: 1fr; gap: 25px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(3rem, 9vw, 4.9rem); max-width: 690px; }
  .hero-visual { aspect-ratio: 1.9; }
  .service-grid, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-layout, .contact-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px; }
  .contact-grid { padding-block: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .service-detail { gap: 20px; }
  .career-group { grid-template-columns: minmax(0, 1fr); }
  .career-group h3 { margin-top: 0; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.65rem); }
  .hero .actions { margin-top: 21px; }
  .hero-visual { aspect-ratio: 1.47; }
  .service-grid, .project-grid, .use-grid, .engagement-grid, .process-grid, .service-detail, .field-pair { grid-template-columns: 1fr; }
  .project-summary, .service-card, .use-card { padding: 19px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .demo-panel, .demo-tabs { padding-inline: 7px; }
  .demo-metrics > div { padding-inline: 6px; }
  .career-role summary { grid-template-columns: minmax(0, 1fr) 1.25rem; gap: 4px 10px; }
  .career-role summary::after { grid-column: 2; grid-row: 1; }
  .career-location { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
