:root {
  color-scheme: light;
  --background: #fff;
  --ink: #1e1d27;
  --muted: #555361;
  --line: #dcdbe0;
  --accent: #5d42c4;
  --heading: Inter, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--heading);
  background: var(--background);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid #8f69f5; outline-offset: 4px; }
.wrap { width: min(100% - 96px, 1200px); margin-inline: auto; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 18px;
}

.site-header { border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 1.55rem; letter-spacing: -.07em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: .94rem; font-weight: 650; }
.site-header nav a { text-decoration: none; }
.nav-examples:hover, .nav-process:hover { color: var(--accent); }
.nav-contact { border: 1px solid #cecad8; border-radius: 8px; padding: 11px 16px; }
.nav-contact:hover { background: #efecf9; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(30px, 5vw, 75px);
  padding-block: clamp(64px, 8vw, 112px);
}

.intro { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .98rem; font-weight: 650; }
.intro span { width: 12px; height: 12px; display: inline-block; background: #9d81f4; border-radius: 3px; transform: rotate(13deg); }
.hero h1 {
  font-size: clamp(2.8rem, 5.05vw, 4.7rem);
  letter-spacing: -.078em;
  line-height: .99;
  font-weight: 800;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-summary { font-size: clamp(1.05rem, 1.52vw, 1.23rem); line-height: 1.55; color: var(--muted); max-width: 440px; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease;
}
.hero .button { margin-top: 28px; }
.button:hover { background: var(--accent); }

.workflow {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 390px;
  padding: 36px 10px;
  overflow: hidden;
}
.flow-context {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(#e6dff1 1px, transparent 1.3px) center / 17px 17px;
  color: #cdbbe7;
  filter: blur(1.15px);
  mask-image: radial-gradient(ellipse 69% 68% at center, #000 28%, transparent 83%);
  pointer-events: none;
}
.flow-extension {
  position: absolute;
  border: 0 solid currentColor;
}
.flow-extension::after {
  position: absolute;
  content: '';
  width: clamp(38px, 12vw, 72px);
  height: 29px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 9px #62438a1a;
}
.flow-extension-top {
  left: 27%;
  top: 18%;
  width: 22%;
  height: 20%;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 12px;
}
.flow-extension-top::after { top: -16px; left: 100%; }
.flow-extension-left {
  right: 74%;
  top: 47%;
  width: 25%;
  height: 14%;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 12px;
}
.flow-extension-left::after { bottom: -16px; right: 100%; }
.flow-extension-right {
  left: 72%;
  top: 43%;
  width: 23%;
  height: 14%;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 12px;
}
.flow-extension-right::after { top: 100%; right: 0; transform: translateX(50%); }
.flow-extension-bottom {
  left: 49%;
  top: 72%;
  width: 24%;
  height: 13%;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 12px;
}
.flow-extension-bottom::after { bottom: -16px; left: 100%; }
.task-icon i { position: relative; display: inline-block; flex: 0 0 auto; color: inherit; }
.site-icon, .chat-icon, .bot-icon, .calendar-icon, .report-icon { width: 15px; height: 12px; border: 1.6px solid currentColor; border-radius: 2px; }
.site-icon::after { content: ''; position: absolute; inset: 2.5px 0 auto; border-top: 1.5px solid currentColor; }
.chat-icon { border-radius: 4px; }
.chat-icon::after { content: ''; position: absolute; width: 4px; height: 4px; left: 2px; bottom: -3px; border-left: 1.5px solid currentColor; transform: skewY(-40deg); }
.bot-icon { border-radius: 4px; }
.bot-icon::before { content: ''; position: absolute; width: 5px; height: 3px; left: 3px; top: -4px; border: 1.4px solid currentColor; border-radius: 2px 2px 0 0; }
.bot-icon::after { content: ''; position: absolute; width: 2px; height: 2px; left: 3px; top: 3px; border-radius: 50%; background: currentColor; box-shadow: 4px 0 currentColor; }
.calendar-icon { height: 14px; }
.calendar-icon::before { content: ''; position: absolute; inset: 3px 0 auto; border-top: 1.5px solid currentColor; }
.calendar-icon::after { content: ''; position: absolute; width: 6px; height: 4px; left: 3px; top: -3px; border-inline: 1.5px solid currentColor; }
.flow-graph { --flow-gap: 10px; --flow-line: #896fc4; width: min(100%, 336px); margin-inline: auto; }
.flow-row { display: grid; gap: var(--flow-gap); }
.flow-input { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow-output { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-node {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 7px 5px;
  background: #fff;
  border: 1px solid #d3c5e9;
  border-radius: 9px;
  box-shadow: 0 3px 12px #3d236215;
  color: #342160;
  font-size: .9rem;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
}
.flow-path {
  position: relative;
  height: 33px;
  margin-inline: auto;
  background: linear-gradient(var(--flow-line), var(--flow-line)) center / 2px 100% no-repeat;
}
.flow-path::before { content: ''; position: absolute; border: solid var(--flow-line); }
.flow-path-in {
  width: calc((100% + var(--flow-gap)) / 2);
  background-position: center bottom;
  background-size: 2px 50%;
}
.flow-path-in::before { inset: 0 0 calc(50% - 1px); border-width: 0 2px 2px; border-radius: 0 0 9px 9px; }
.flow-path-out { width: calc((100% + var(--flow-gap)) * 2 / 3); }
.flow-path-out::before { inset: calc(50% - 1px) 0 0; border-width: 2px 2px 0; border-radius: 9px 9px 0 0; }
.flow-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-inline: auto;
  padding: 13px 20px 13px 13px;
  border: 1px solid #563f90;
  border-radius: 13px;
  background: linear-gradient(135deg, #503583, #332452);
  box-shadow: 0 9px 22px #42287b42;
  color: #fff;
}
.flow-agent-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #b79bea70;
  border-radius: 8px;
  background: #ffffff14;
  color: #ebddff;
  font-size: 1.45rem;
}
.flow-agent strong, .flow-agent div span { display: block; }
.flow-agent strong { font-size: 1.12rem; font-weight: 800; }
.flow-agent div span { margin-top: 3px; color: #e7dcf8; font-size: .875rem; line-height: 1.2; }

.tasks { border-top: 1px solid var(--line); padding-block: clamp(42px, 6vw, 74px); }
h2 { font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.65rem); letter-spacing: -.065em; line-height: 1.04; text-wrap: balance; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.task {
  background: #fff;
  border: 1px solid #e3e1e7;
  border-radius: 14px;
  padding: clamp(20px, 2.3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 1.5vw, 21px);
  align-items: start;
}
.task h3 { font-weight: 750; font-size: clamp(1.17rem, 1.9vw, 1.55rem); letter-spacing: -.045em; line-height: 1.14; }
.task p { color: var(--muted); font-size: 1rem; line-height: 1.52; margin-top: 9px; max-width: 42ch; }
.task-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; }
.task-icon-inbox { color: #513c9a; background: #ebe2ff; }
.task-icon-link { color: #225b4a; background: #dcf0e8; }
.task-icon-report { color: #774716; background: #f8ecda; }
.task-icon-ai { color: #683960; background: #f5e5f2; }
.task-icon i { font-style: normal; }
.link-icon { width: 20px; height: 12px; transform: rotate(-39deg); }
.link-icon::before, .link-icon::after { content: ''; position: absolute; width: 11px; height: 8px; border: 1.6px solid currentColor; border-radius: 5px; top: 2px; }
.link-icon::before { left: 0; }
.link-icon::after { right: 0; }
.report-icon { width: 13px; height: 16px; }
.report-icon::after { content: ''; position: absolute; top: 4px; left: 2px; right: 2px; height: 5px; border-block: 1.5px solid currentColor; }
.ai-icon { font-size: 1.55rem; line-height: 1; }

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(42px, 6vw, 74px);
  border-top: 1px solid var(--line);
}
.process-steps { margin: 0; padding-left: 25px; }
.process-steps li { padding: 14px 0 14px 6px; }
.process-steps li:first-child { padding-top: 0; }
.process-steps li + li { border-top: 1px solid var(--line); }
.process-steps li::marker { color: var(--accent); font-weight: 800; }
.process-steps h3 { font-size: 1.16rem; line-height: 1.25; letter-spacing: -.025em; }
.process-steps p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: 4px; }

.about {
  padding-block: 25px 42px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 2.8fr);
  gap: 22px;
  align-items: baseline;
  border-top: 1px solid var(--line);
}
.about h2 { font-size: 1.4rem; letter-spacing: -.04em; }
.about p { font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 66ch; }
.about-content p + p { margin-top: 9px; }
.portfolio-link { display: inline-block; margin-top: 13px; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.portfolio-link:hover { color: var(--ink); }
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(34px, 6vw, 76px);
  background: #241e38;
  color: #fff;
  border-radius: 22px;
}
.contact h2 { max-width: 18ch; }
.contact p { max-width: 50ch; font-size: 1.05rem; color: #e2d9f4; line-height: 1.55; margin-top: 17px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.button-light { background: #e2d5ff; color: #241e38; white-space: nowrap; }
.button-light:hover { background: #f3edff; }
.contact-email { color: #f0e7ff; text-underline-offset: 4px; font-size: .95rem; font-weight: 650; }
.site-footer { min-height: 104px; color: var(--muted); font-size: .9rem; }
.site-footer .wordmark { color: var(--ink); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero { column-gap: 24px; }
  .hero h1 { font-size: clamp(2.55rem, 5.7vw, 3.25rem); }
  .workflow { min-height: 340px; }
  .task { gap: 12px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 68px; }
  .site-header nav { font-size: .875rem; gap: 12px; }
  .nav-process { display: none; }
  .nav-contact { padding: 9px 10px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; padding-block: 51px 46px; row-gap: 32px; }
  .hero h1 { font-size: clamp(2.45rem, 8.9vw, 3.8rem); line-height: 1.02; text-wrap: initial; }
  .hero-summary { margin-top: 19px; }
  .hero .button { margin-top: 22px; }
  .workflow { min-height: 310px; padding: 24px 13px; }
  .task-grid { grid-template-columns: 1fr; margin-top: 23px; }
  .process { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 10px; padding-block: 23px 32px; }
  .contact { grid-template-columns: 1fr; padding: 29px 23px; gap: 24px; border-radius: 17px; }
  .contact-actions { align-items: flex-start; }
  .site-footer { min-height: 82px; }
}

@media (max-width: 385px) {
  .nav-examples { display: none; }
}

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