@font-face {
  font-family: Inter;
  src: url("fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-700.woff") format("woff");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --ink: #21192f;
  --muted: #655c73;
  --purple: #6b3df1;
  --line: #e9e2f2;
  --lavender: #f0eaff;
  --soft: #f8f6fc;
  --content-canvas: #f3eff9;
  --card-surface: #fdfbff;
  --page: 1380px;
  --gutter: clamp(24px, 5.5vw, 78px);
  --section-space: clamp(64px, 6.4vw, 88px);
  --header-height: 72px;
  --header-offset: calc(var(--header-height) + 1px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 16px); }
body { margin: 0; background: var(--content-canvas); color: var(--ink); font: 15px/1.6 Inter, Arial, sans-serif; }
::selection { background: #dcccff; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.05em; }
img { display: block; max-width: 100%; }
svg { display: block; width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid #946dfa; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.section { width: min(100%, var(--page)); margin-inline: auto; padding: var(--section-space) var(--gutter); }
.section-title { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.055em; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

.button {
  min-height: 52px;
  padding: 8px 8px 8px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.button svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  transition: transform .2s;
}

.button:hover:not(:disabled) svg, .text-button:hover svg, .icon-button:hover svg { transform: translateX(3px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.primary { background: var(--ink); color: white; }
.button.primary svg { background: var(--purple); }
.button.primary:hover { background: #3d2859; }
.button.light { background: white; color: var(--ink); }
.button.light svg { background: var(--lavender); color: var(--purple); }
.button.light:hover { background: #f6f0ff; }

.site-header { position: sticky; top: 0; z-index: 40; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--purple); transform: scaleX(var(--page-progress, 0)); transform-origin: left; pointer-events: none; }
.nav-shell, .footer-inner {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-shell { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand-wordmark { width: 144px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); color: var(--muted); font-size: 14px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.nav-links a:hover, .nav-links a[aria-current], .back-top:hover { color: var(--purple); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: radial-gradient(ellipse at 90% 42%, #f1e9ff, transparent 54%), linear-gradient(110deg, #fff 28%, #faf7ff);
  border-bottom: 1px solid var(--line);
}

.hero-data-stream { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; opacity: .48; }
.hero-data-stream span {
  position: absolute;
  left: -18%;
  width: 138%;
  height: 1px;
  background: linear-gradient(90deg, transparent 3%, #aa8bf266 25%, #6b3df1aa 48%, #9ed7ff77 69%, transparent 96%);
  transform: rotate(-7deg) translateX(-8%);
  animation: data-drift 12s linear infinite;
}
.hero-data-stream span::after { content: ""; position: absolute; left: 42%; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #7b4df5; box-shadow: 0 0 12px #7650ef; }
.hero-data-stream span:nth-child(1) { top: 20%; animation-duration: 15s; }
.hero-data-stream span:nth-child(2) { top: 43%; animation-duration: 18s; animation-delay: -7s; opacity: .55; }
.hero-data-stream span:nth-child(3) { top: 68%; animation-duration: 13s; animation-delay: -3s; }
.hero-data-stream span:nth-child(4) { top: 87%; animation-duration: 20s; animation-delay: -11s; opacity: .4; }
@keyframes data-drift { to { transform: rotate(-7deg) translateX(13%); } }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 58px); padding-block: clamp(64px, 7.5vw, 104px); }
.hero-label { display: flex; align-items: center; gap: 9px; color: #625078; margin-bottom: 19px; }
.hero-label::before { content: ""; width: 16px; height: 2px; background: var(--purple); border-radius: 3px; }
.hero h1 { font-size: clamp(45px, 6.3vw, 84px); letter-spacing: -.072em; line-height: .98; }
.heading-line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.heading-line > span { display: inline-block; animation: heading-rise .72s cubic-bezier(.16,1,.3,1) both; }
.heading-line.accent-line > span { color: var(--purple); animation-delay: .1s; }
@keyframes heading-rise { from { opacity: 0; transform: translateY(108%) rotate(2deg); } to { opacity: 1; transform: none; } }
.hero-description { max-width: 420px; font-size: clamp(15px, 1.8vw, 18px); margin: 24px 0 28px; text-wrap: pretty; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 22px; }
.demo-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; transition: color .2s; }
.demo-link:hover { color: var(--purple); }
.demo-link span, .back-top span { transition: transform .2s; }
.demo-link:hover span { transform: translateY(3px); }
.back-top:hover span { transform: translateY(-3px); }

.hero-canvas {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid #e5dbf8;
  border-radius: 24px;
  background-color: #eee5fb;
  background-image: radial-gradient(circle, #b9a5db9e 1px, transparent 1.25px), linear-gradient(135deg, #f8f3ff, #eae0fa);
  background-size: 16px 16px, auto;
  animation: enter .7s .14s both;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
}

.hero-copy { animation: enter .65s both; }
.preview-panel { padding: clamp(14px, 2vw, 23px); border-radius: 16px; background: #fffffffa; border: 1px solid #fff; box-shadow: 0 16px 36px #3c23691a, 0 0 0 1px #dacbeb; }
.preview-panel { transform: translateZ(26px); }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.preview-header .eyebrow { color: #715c86; font-size: 10px; margin-bottom: 5px; }
.preview-header h2 { font-size: clamp(20px, 2.2vw, 29px); }
.preview-mark { color: var(--purple); font-size: 28px; line-height: 1; }
.preview-mark { animation: mark-breathe 2.8s ease-in-out infinite; }
@keyframes mark-breathe { 50% { transform: rotate(18deg) scale(1.16); filter: drop-shadow(0 0 7px #9d75ff); } }
.preview-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.preview-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf8fd;
  animation: preview-signal .88s calc(.6s + var(--step, 0) * .76s) ease-in-out;
}
.preview-step:nth-child(2) { --step: 1; }
.preview-step:nth-child(3) { --step: 2; }
.preview-step:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 100%; height: 13px; width: 1px; background: #c9b7eb; }
.preview-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--purple); background: var(--lavender); border-radius: 8px; }
.preview-icon svg { width: 19px; height: 19px; }
.preview-step strong, .preview-step small { display: block; line-height: 1.35; }
.preview-step strong { font-size: 13px; }
.preview-step small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.preview-stage { font-size: 10px; color: #665282; padding: 3px 6px; border-radius: 5px; background: #f0ebf8; white-space: nowrap; }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes preview-signal { 45%, 65% { border-color: #bda1fc; background: #f0e8ff; } }

.capability-rail { position: relative; overflow: hidden; border-block: 1px solid #ded1f3; background: #e9dff9; color: #573c85; }
.rail-track { width: max-content; display: flex; animation: rail-loop 32s linear infinite; }
.rail-group { flex: none; min-width: 100vw; min-height: 62px; display: flex; align-items: center; justify-content: space-around; gap: 32px; padding-inline: 28px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.rail-group i { color: #8958d6; font-size: 19px; font-style: normal; }
.motion-control { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: #735798; }
.motion-control:hover { background: #e7ddf7; }
.motion-control svg { width: 15px; height: 15px; }
.motion-control .play-symbol, .motion-control[aria-pressed="true"] .pause-symbol { display: none; }
.motion-control[aria-pressed="true"] .play-symbol { display: block; }
.motion-control[hidden] { display: none; }
.rail-toggle { position: absolute; right: 8px; top: 9px; background: #e9dff9; box-shadow: -12px 0 14px #e9dff9; }
.capability-rail:hover .rail-track, .capability-rail:focus-within .rail-track, .capability-rail.is-paused .rail-track { animation-play-state: paused; }
@keyframes rail-loop { to { transform: translateX(-50%); } }

/* A continuous lavender canvas keeps the content calm and cohesive. */
.solutions-band, .pricing-section, .faq-band { background: var(--content-canvas); }
.pricing-section > .section, .faq-section { border-top: 1px solid #e4dced; }
.solutions-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; min-height: 112px; }
.solutions .section-title { margin: 0; }
.cubi-sticker { position: relative; isolation: isolate; flex: none; width: 102px; height: 102px; }
.cubi-sticker::before { content: ""; position: absolute; z-index: -1; inset: 28% 7% 5%; background: #e7def2; border-radius: 50%; transform: rotate(-15deg); }
.cubi-sticker img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.cubi-sticker .sticker-star { position: absolute; z-index: 2; right: -5px; top: 28%; color: #b28ae4; font-size: 15px; transform: rotate(12deg); }
.solutions-heading:hover .cubi-sticker img, .faq-heading:hover .cubi-sticker img { transform: translateY(-4px) rotate(3deg); }
.service-cubi { width: 142px; height: 142px; margin: -12px 0 -4px; }
.service-cubi img { animation: cubi-cast 6s ease-in-out infinite; transform-origin: 50% 85%; }
.service-cubi .sticker-star { left: 2%; right: auto; top: 26%; color: #d6ac48; animation: cubi-star 2.8s ease-in-out infinite; }
.feature-grid, .pricing-grid { display: grid; gap: 14px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--card-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-rows: auto 1fr auto;
}

.spotlight-card { position: relative; isolation: isolate; overflow: hidden; }
.spotlight-card > * { position: relative; z-index: 1; }
.spotlight-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(270px circle at var(--spot-x, 50%) var(--spot-y, 50%), #a886ff24, transparent 62%);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
}
.spotlight-card:hover::before, .spotlight-card:focus-within::before { opacity: 1; }

.feature-card .service-copy { grid-column: 1 / -1; grid-row: 2; align-self: start; }
.feature-card .service-number { grid-column: 2; grid-row: 1; justify-self: end; color: #ac9bbb; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.service-action { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; min-height: 44px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: #69439b; font-size: 12px; font-weight: 700; line-height: 1.4; transition: color .2s; }
.service-action:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.feature-card:hover, .feature-card:focus-within, .price-card:hover, .price-card:focus-within { border-color: #ba9ff8; translate: 0 -2px; box-shadow: 0 8px 24px #42276c08; }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--lavender); color: var(--purple); border-radius: 13px; }
.service-icon svg { width: 25px; height: 25px; transition: transform .24s; }
.feature-card:hover .service-icon svg, .feature-card:focus-within .service-icon svg { transform: scale(1.1); }
.agent-card .service-icon { background: #eee8fb; color: #7854c8; }
.software-card .service-icon { background: #f1eaff; color: #7a3dc3; }
.web-card .service-icon { background: #eeecff; color: #6150c6; }
.service-copy h3 { font-size: clamp(19px, 1.95vw, 24px); letter-spacing: -.04em; margin-bottom: 6px; }
.service-copy p { font-size: 14px; line-height: 1.48; text-wrap: pretty; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--purple); background: white; }
.icon-button svg, .text-button svg { width: 19px; height: 19px; transition: transform .2s; }
.icon-button:hover { background: var(--lavender); }

@keyframes step-pulse { from { box-shadow: 0 0 0 0 #6b3df133; } to { box-shadow: 0 0 0 7px #6b3df100; } }
@keyframes cubi-float { 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes cubi-star { 50% { opacity: .55; transform: scale(.8) rotate(45deg); } }
@keyframes cubi-cast { 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes cubi-focus { 50% { transform: translateY(-2px) rotate(-.7deg); } }
@keyframes cubi-hug { 50% { transform: translateY(-4px) rotate(-2deg); } }

.pricing-section .section-heading { align-items: center; display: flex; gap: 24px; margin-bottom: 28px; }
.pricing-intro p { margin-top: 12px; color: #756577; font-size: 14px; }
.plan-cubi { width: 138px; height: 138px; margin: -18px 0 -8px; }
.plan-cubi img { animation: cubi-hug 7s ease-in-out infinite; }
.plan-cubi .sticker-star { color: #c2984d; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-heading > p { font-size: 14px; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(19px, 2.7vw, 32px); border-radius: 16px; border: 1px solid var(--line); background: var(--card-surface); }
.price-card.featured { background: #eae0f8; border-color: #d5c4ec; }
.price-card h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 9px; }
.price-card p { font-size: 14px; line-height: 1.5; margin-bottom: 16px; text-wrap: pretty; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; align-self: start; margin-top: auto; padding: 6px 5px 6px 0; border: 0; background: transparent; color: #5930c4; font-size: 14px; font-weight: 700; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.faq-section { display: grid; grid-template-columns: .62fr 1.38fr; gap: 24px 40px; }
.faq-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.faq-cubi { width: 148px; height: 148px; margin-left: -8px; }
.faq-cubi .sticker-star { top: 14%; right: -13px; font-size: 13px; }
.faq-list { border: 1px solid var(--line); border-radius: 16px; background: var(--card-surface); padding: 6px 24px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 0; font-weight: 700; font-size: 15px; line-height: 1.45; transition: color .2s; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--purple); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lavender); color: var(--purple); }
.faq-list summary > span::before, .faq-list summary > span::after { content: ""; position: absolute; width: 11px; height: 1px; background: currentColor; transition: transform .2s; }
.faq-list summary > span::after { transform: rotate(90deg); }
.faq-list details[open] summary > span::after { transform: rotate(0deg); }
.faq-list details > p { font-size: 14px; padding: 0 30px 17px 0; }
.faq-list details[open] > p { animation: enter .22s ease-out both; }

.site-footer { background: var(--content-canvas); border-top: 1px solid #e4dced; }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 89px; padding-block: 20px; column-gap: clamp(20px, 3vw, 40px); }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links > a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.footer-links > a > svg { width: 18px; height: 18px; flex: none; }
.footer-inner .brand-wordmark { width: 103px; }
.footer-inner small { font-size: 12px; color: var(--muted); }
.back-top { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.back-top span { color: var(--purple); }
.footer-contact { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #62458a; font-size: 13px; }
.studio-login { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.studio-login svg { width: 15px; height: 15px; flex: none; }
.studio-login:hover { color: var(--purple); }
.studio-login:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
.email-icon { width: 17px; height: 17px; flex: none; color: #72529c; }
.footer-contact:hover, .contact-address:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }

#project-dialog { width: min(480px, calc(100% - 32px)); max-height: 90svh; padding: clamp(22px, 5vw, 36px); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; overflow: auto; }
#project-dialog::backdrop { background: #21193072; }
#project-dialog[open] { animation: enter .24s ease-out both; }
.dialog-open { overflow: hidden; }
.dialog-close { position: absolute; top: 9px; right: 9px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; color: var(--muted); font-size: 26px; }
.dialog-close:hover { background: var(--soft); }
.contact-eyebrow { color: #8a67b7; font-size: 9px; margin-bottom: 12px; }
#dialog-title { font-size: clamp(29px, 5vw, 35px); margin-bottom: 22px; padding-right: 10px; }
#contact-form label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
#contact-form input, #contact-form select, #contact-form textarea { display: block; width: 100%; border: 1px solid #d9cde9; border-radius: 8px; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fdfbff; font-size: 16px; }
#contact-form textarea { min-height: 100px; resize: vertical; }
#contact-form > .button { width: 100%; margin-top: 20px; }
.form-note { margin-top: 12px; text-align: center; font-size: 12px; }
.contact-address { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 5px; font-size: 13px; color: #654099; }
.form-status { font-size: 12px; text-align: center; }
.form-status:empty { display: none; }
#contact-form input[type="hidden"], .contact-honeypot { display: none; }
.contact-submit:disabled { opacity: .7; cursor: default; }
.form-processor { font-size: 10px; color: var(--muted); }
.form-processor a { text-decoration: underline; text-underline-offset: 2px; }
.form-status[data-state="success"] { margin-top: 12px; padding: 12px; border-radius: 8px; background: #f0ebff; color: #512b8b; }
.form-status[data-state="error"] { margin-top: 12px; color: #9b314a; }

.reveal { transition: opacity .55s cubic-bezier(.16,1,.3,1) var(--delay, 0ms), transform .55s cubic-bezier(.16,1,.3,1) var(--delay, 0ms), translate .2s ease, border-color .2s, box-shadow .2s; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-pending:focus-within { opacity: 1; transform: none; transition: none; }

.click-spark { position: fixed; z-index: 1000; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #8e62f5; pointer-events: none; transform: translate(-50%, -50%); animation: spark-out .55s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes spark-out { to { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(.2); } }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --header-offset: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 1px);
  }
  body { padding-top: var(--header-offset); }
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    padding-top: env(safe-area-inset-top, 0px);
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .brand-wordmark { width: 124px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; gap: 5px; border: 0; border-radius: 50%; background: var(--soft); }
  .menu-toggle span { height: 1px; width: 17px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-offset));
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    padding: 10px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; animation: enter .2s ease-out both; }
  .nav-links a::after { display: none; }

  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 43px 32px; }
  .hero h1 { font-size: clamp(39px, 11.5vw, 70px); }
  .hero-label { margin-bottom: 16px; }
  .hero-description { max-width: min(370px, 95%); margin-block: 17px 18px; }
  .hero-actions { column-gap: 14px; }
  .hero-actions .button { gap: 10px; padding-left: 15px; font-size: 13px; }
  .hero-actions .button svg { width: 30px; height: 30px; }
  .hero-canvas { border-radius: 17px; }

  .feature-grid, .pricing-grid { gap: 11px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-card { gap: 12px; }
  .service-icon { width: 42px; height: 42px; border-radius: 10px; }
  .service-icon svg { width: 21px; height: 21px; }
  .service-copy p { font-size: 13px; }

  .rail-group { gap: 24px; min-height: 54px; font-size: 10px; }
  .rail-toggle { top: 5px; right: 4px; }
  .solutions-heading { min-height: 78px; margin-bottom: 20px; gap: 10px; }
  .service-cubi { width: 108px; height: 108px; margin: -8px -4px -6px 0; }
  .solutions-heading .section-title { font-size: clamp(29px, 6.2vw, 44px); }
  .faq-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
  .faq-cubi { width: 108px; height: 108px; margin: -10px 0 -10px; }
  .faq-list { padding-inline: 18px; }
  .plan-cubi { width: 106px; height: 106px; margin: -8px -4px -6px 0; }
  .pricing-section .section-heading { gap: 12px; }
  .pricing-intro p { font-size: 13px; line-height: 1.5; }

  .section-heading, .faq-section { display: block; }
  .section-heading > p { margin-top: 10px; }
  .price-card { padding-bottom: 12px; }
  .price-card p { margin-bottom: 7px; }
  .faq-section .section-title { margin-bottom: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 13px 15.6px; padding-block: 15.6px; }
  .footer-inner .brand { grid-column: 1; grid-row: 1; align-self: start; min-height: 44px; }
  .footer-links { grid-column: 2; grid-row: 1; display: grid; gap: 0; justify-self: end; }
  .footer-links > a { justify-self: start; font-size: 13px; }
  .footer-inner small { grid-column: 1 / -1; grid-row: 2; padding-top: 11.7px; border-top: 1px solid #e4dced; line-height: 1.5; }
  .footer-inner .back-top { display: none; }
}

@media (max-width: 510px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 10px; }
  .feature-card .service-copy { grid-column: 2; grid-row: 1; align-self: center; }
  .feature-card .service-number { grid-column: 1; grid-row: 2; justify-self: center; align-self: center; }
  .feature-card .service-action { grid-column: 2; grid-row: 2; padding: 9px 0 0; }
  .preview-step { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .preview-icon { width: 32px; height: 32px; }
  .preview-stage { display: none; }
  .preview-step:not(:last-child)::after { left: 24px; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: clamp(35px, 11.2vw, 42px); }
  .hero-actions { column-gap: 10px; }
  .hero-actions .button { gap: 7px; padding-left: 12px; }
  .hero-actions .button svg { width: 28px; height: 28px; }
  .demo-link { font-size: 12px; }
  .demo-link span { display: none; }
  .feature-card { padding: 13px; gap: 10px; }
  .solutions-heading .section-title { font-size: 29px; }
  .service-cubi { width: 86px; height: 86px; }
  .plan-cubi { width: 86px; height: 86px; }
  .pricing-intro .section-title { font-size: 30px; }
  .faq-cubi { width: 92px; height: 92px; }
  .footer-inner { gap: 11.7px 10.4px; }
  .footer-inner .brand-wordmark { width: 86.5px; }
  .footer-inner small, .back-top { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .reading-progress { display: none; }
  .rail-track { transform: none; }
  .rail-toggle { display: none; }
}
