:root {
  color-scheme: dark;
  --bg: #05040a;
  --panel: rgba(22, 14, 38, 0.78);
  --panel-strong: rgba(28, 18, 48, 0.94);
  --line: rgba(190, 151, 255, 0.22);
  --line-strong: rgba(190, 151, 255, 0.38);
  --text: #f7f4ff;
  --soft: #ded7f0;
  --muted: #b8adc9;
  --purple: #8e63ff;
  --purple-2: #c06bff;
  --green: #69f2c1;
  --gold: #f0c46d;
  --shadow: 0 28px 86px rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(68, 42, 150, 0.36), transparent 34%),
    linear-gradient(245deg, rgba(192, 107, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #09050f 0%, #0b0716 48%, #05040a 100%);
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: normal;
}

body.is-lightbox-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(125deg, transparent 0 43%, rgba(142, 99, 255, 0.13) 44%, transparent 46% 100%),
    linear-gradient(62deg, transparent 0 55%, rgba(192, 107, 255, 0.09) 56%, transparent 58% 100%);
  pointer-events: none;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
strong,
.brand,
.nav-links,
.nav-cta,
.primary-button,
.ghost-button,
.icon-button,
.map-node,
.case-copy h3 {
  word-break: keep-all;
  overflow-wrap: normal;
}

p,
span,
blockquote,
cite {
  overflow-wrap: break-word;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 0 16px;
  border: 1px solid rgba(190, 151, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 5, 15, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  font-weight: 760;
  white-space: nowrap;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.brand strong {
  color: #c9adff;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta,
.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-cta {
  min-width: 104px;
  padding: 0 14px;
  background: rgba(142, 99, 255, 0.18);
  color: #eee7ff;
  font-size: 14px;
  font-weight: 650;
}

.nav-cta svg,
.primary-button svg {
  width: 16px;
  height: 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.76fr) minmax(720px, 1.24fr);
  gap: 64px;
  align-items: center;
  width: min(1420px, calc(100% - 56px));
  min-height: calc(100vh - 92px);
  padding: 64px 0 82px;
}

.eyebrow,
.section-heading span,
.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #c9adff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 20px rgba(105, 242, 193, 0.7);
}

.hero h1 {
  max-width: 640px;
  margin: 18px 0 20px;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.82;
}

.nowrap {
  white-space: nowrap;
}

.hero-lead-lines span {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 30px;
}

.primary-button {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #8e63ff, #c06bff);
  box-shadow: 0 18px 42px rgba(142, 99, 255, 0.34);
  color: #fff;
  font-weight: 760;
}

.ghost-button,
.icon-button {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #ede6ff;
  font-weight: 620;
}

.text-link {
  color: #c9adff;
  font-size: 14px;
  font-weight: 720;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.hero-proof div {
  min-width: 0;
  padding: 14px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-proof strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.hero-proof span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 590px;
  perspective: 1300px;
}

.hero-window {
  position: absolute;
  top: 84px;
  left: 8px;
  width: min(980px, 128%);
  border: 1px solid rgba(190, 151, 255, 0.24);
  border-radius: 8px;
  background: #110a20;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg);
  transform-origin: left center;
  overflow: hidden;
}

.hero-window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset -26px -18px 46px rgba(15, 6, 30, 0.18);
  pointer-events: none;
  content: "";
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  background: rgba(13, 7, 25, 0.96);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a9a;
}

.window-bar i:nth-child(2) {
  background: var(--gold);
}

.window-bar i:nth-child(3) {
  background: var(--green);
}

.window-bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-window img {
  width: 100%;
  aspect-ratio: 1912 / 956;
  object-fit: cover;
  object-position: left top;
  background: #fff;
}

.hero-stack {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  padding: 13px 15px;
  border: 1px solid rgba(190, 151, 255, 0.22);
  border-radius: 8px;
  background: rgba(11, 7, 20, 0.88);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.hero-stack svg {
  flex: 0 0 auto;
  color: var(--green);
}

.stack-a {
  top: 110px;
  right: -210px;
}

.stack-b {
  left: -12px;
  bottom: 104px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p {
  grid-column: 2;
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.74;
}

.section-heading.narrow p {
  grid-column: auto;
}

.scenes-section .section-heading h2,
.scenes-section .section-heading p,
.cases-section .section-heading h2,
.cases-section .section-heading p {
  grid-column: 2;
}

.scenes-section .section-heading,
.cases-section .section-heading {
  grid-template-columns: 120px minmax(0, 1fr);
}

.scenes-section .section-heading {
  grid-template-columns: minmax(330px, 0.28fr) minmax(0, 0.72fr);
}

.scenes-section .section-heading h2,
.cases-section .section-heading h2 {
  max-width: none;
  font-size: clamp(30px, 3vw, 44px);
  text-wrap: nowrap;
}

.scenes-section .section-heading p,
.cases-section .section-heading p {
  max-width: none;
  margin-top: 14px;
  white-space: nowrap;
}

.kernel-section,
.scenes-section,
.cases-section,
.contact-section {
  padding: 96px 0;
}

.kernel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.kernel-map {
  position: relative;
  display: block;
  min-height: 460px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px),
    rgba(14, 8, 26, 0.78);
  overflow: hidden;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 92px;
  padding: 14px 18px;
  border: 1px solid rgba(190, 151, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  color: #efe8ff;
  font-weight: 760;
  line-height: 1.45;
  text-align: center;
}

.map-node.runtime {
  top: 50%;
  left: 50%;
  min-width: 0;
  width: 220px;
  min-height: 132px;
  border-color: rgba(105, 242, 193, 0.55);
  background: linear-gradient(135deg, rgba(142, 99, 255, 0.46), rgba(105, 242, 193, 0.13));
  transform: translate(-50%, -50%);
}

.map-node.source {
  top: 80px;
  left: 112px;
  width: 190px;
}

.map-node.tools {
  left: 72px;
  bottom: 126px;
  width: 190px;
}

.map-node.delivery {
  top: 80px;
  right: 112px;
  width: 190px;
}

.map-node.memory {
  right: 72px;
  bottom: 126px;
  width: 190px;
}

.map-node.im {
  left: 50%;
  bottom: 38px;
  min-width: 0;
  width: 200px;
  min-height: 78px;
  transform: translateX(-50%);
}

.kernel-points {
  display: grid;
  gap: 14px;
}

.kernel-points article,
.feature-grid article,
.scene-card,
.testimonial-grid blockquote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 151, 255, 0.09), rgba(255, 255, 255, 0.03)), rgba(16, 9, 29, 0.78);
}

.kernel-points article {
  padding: 22px;
}

.kernel-points svg,
.feature-grid svg {
  width: 30px;
  height: 30px;
  color: var(--purple-2);
}

.kernel-points h3,
.feature-grid h3,
.scene-card h3,
.gallery-card h3 {
  margin: 14px 0 9px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
}

.kernel-points p,
.feature-grid p,
.scene-card p,
.gallery-card p,
.contact-panel p,
.case-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.feature-section,
.screens-section {
  padding: 96px 0;
  background: linear-gradient(180deg, rgba(142, 99, 255, 0.07), rgba(255, 255, 255, 0));
}

.screens-section .section-shell {
  width: min(1460px, calc(100% - 56px));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 250px;
  padding: 26px;
}

.feature-grid p {
  font-size: 15px;
}

.scene-board {
  display: grid;
  grid-template-columns: 1.08fr repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scene-card {
  min-height: 210px;
  padding: 26px;
}

.scene-card.primary {
  grid-row: span 2;
  min-height: 436px;
  background:
    linear-gradient(145deg, rgba(142, 99, 255, 0.32), rgba(192, 107, 255, 0.1)),
    rgba(18, 10, 33, 0.82);
}

.scene-card b {
  color: var(--green);
  font-size: 13px;
}

.scene-card.primary h3 {
  max-width: 420px;
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(7, 128px);
  grid-template-areas:
    "home home home chart chart chart sandbox sandbox"
    "home home home chart chart chart sandbox sandbox"
    "home home home chat chat im im im"
    "report report report chat chat im im im"
    "report report report tasks tasks im im im"
    "html html html claw claw skill skill skill"
    "html html html claw claw skill skill skill";
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(190, 151, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 5, 17, 0.56);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 10, 32, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
  cursor: zoom-in;
}

.gallery-card > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 0;
  padding: 46px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 5, 18, 0.88));
}

.gallery-card span {
  color: #c9adff;
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card h3 {
  margin-bottom: 0;
  font-size: 18px;
  color: #fff;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  background: #fff;
}

.area-home { grid-area: home; }
.area-chart { grid-area: chart; }
.area-chat { grid-area: chat; }
.area-sandbox { grid-area: sandbox; }
.area-im { grid-area: im; }
.area-report { grid-area: report; }
.area-tasks { grid-area: tasks; }
.area-claw { grid-area: claw; }
.area-skill { grid-area: skill; }
.area-html { grid-area: html; }

.area-im img {
  object-fit: contain;
  object-position: center center;
  background: #050509;
}

.area-sandbox img,
.area-tasks img,
.area-skill img {
  object-position: center top;
}

.area-html img {
  object-position: center center;
}

.case-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 151, 255, 0.09), rgba(255, 255, 255, 0.03)), rgba(16, 9, 29, 0.78);
}

.case-card.large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  align-items: stretch;
}

.case-copy {
  padding: 26px;
}

.case-copy span {
  color: #c9adff;
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-copy h3 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.26;
}

.case-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.case-card > img {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  object-position: left top;
  background: #fff;
}

.case-card.large > img {
  height: 100%;
  min-height: 300px;
  padding: 10px;
  object-fit: cover;
}

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

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
  color: var(--soft);
  line-height: 1.72;
}

.testimonial-grid cite {
  display: block;
  margin-top: 16px;
  color: #c9adff;
  font-style: normal;
  font-weight: 760;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border: 1px solid rgba(190, 151, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(142, 99, 255, 0.24), rgba(192, 107, 255, 0.1)),
    rgba(14, 8, 27, 0.84);
  box-shadow: var(--shadow);
}

.contact-panel > div {
  min-width: 0;
}

.contact-panel h2 {
  max-width: 780px;
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
}

.contact-panel p {
  max-width: 720px;
  font-size: 17px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  color: #c9adff;
}

.qr-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
}

.qr-card img {
  width: 176px;
  height: 176px;
  margin: 0 auto 13px;
  border-radius: 8px;
  background: #fff;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: rgba(3, 2, 8, 0.86);
  backdrop-filter: blur(10px);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1320px, 94vw);
  max-height: 82vh;
  border: 1px solid rgba(190, 151, 255, 0.26);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(16, 9, 29, 0.88);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  max-width: min(760px, calc(100% - 48px));
  padding: 9px 14px;
  border: 1px solid rgba(190, 151, 255, 0.18);
  border-radius: 6px;
  background: rgba(16, 9, 29, 0.82);
  color: var(--soft);
  font-size: 13px;
  transform: translateX(-50%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-window {
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
  }

  .kernel-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(9, 120px);
    grid-template-areas:
      "home home chart chart"
      "home home chart chart"
      "sandbox sandbox chat chat"
      "sandbox sandbox chat chat"
      "im im report report"
      "im im report report"
      "im im tasks tasks"
      "claw claw skill skill"
      "html html html html";
  }

  .scene-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-card.primary {
    grid-row: auto;
    grid-column: span 2;
    min-height: 260px;
  }

  .case-card.large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  *,
  *::before,
  *::after {
    min-width: 0;
  }

  .section-shell,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    min-height: 60px;
    margin-top: 8px;
    padding: 0 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }

  .brand span {
    display: inline;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
  }

  .nav-cta {
    flex: 0 0 auto;
    min-height: 38px;
    min-width: 92px;
    padding: 0 12px;
  }

  .hero,
  .kernel-section,
  .feature-section,
  .scenes-section,
  .screens-section,
  .cases-section,
  .contact-section {
    padding: 58px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1;
  }

  .hero-lead,
  .section-heading p {
    font-size: 16px;
  }

  .hero-lead-lines span {
    display: inline;
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-actions .primary-button {
    grid-column: 1 / -1;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .hero-actions .text-link {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    text-align: center;
  }

  .hero-actions .text-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(190, 151, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
  }

  .hero-proof,
  .scene-board,
  .gallery-grid,
  .case-showcase,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof div {
    padding: 12px 10px;
  }

  .hero-proof strong {
    font-size: 22px;
  }

  .hero-proof span {
    font-size: 12px;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 6px;
  }

  .hero-stack {
    display: none;
  }

  .hero-window {
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    transform: none;
  }

  .window-bar {
    height: 34px;
    padding: 0 12px;
  }

  .window-bar span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-window img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1912 / 956;
    object-fit: cover;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 12px;
    max-width: 100%;
    font-size: clamp(26px, 8vw, 32px);
    white-space: normal !important;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .section-heading p {
    grid-column: auto;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .scenes-section .section-heading h2,
  .scenes-section .section-heading p,
  .cases-section .section-heading h2,
  .cases-section .section-heading p {
    grid-column: auto;
  }

  .kernel-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .map-node {
    position: static;
    min-width: 0;
    width: 100%;
    min-height: 74px;
    padding: 13px 10px;
    font-size: 13px;
    transform: none !important;
  }

  .map-node.source,
  .map-node.tools,
  .map-node.delivery,
  .map-node.memory,
  .map-node.im {
    width: 100%;
    min-width: 0;
  }

  .map-node.runtime {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 84px;
  }

  .map-node.source {
    grid-column: 1 / -1;
    min-height: 84px;
    border-color: rgba(190, 151, 255, 0.42);
    background: linear-gradient(135deg, rgba(142, 99, 255, 0.2), rgba(105, 242, 193, 0.06));
  }

  .scene-card.primary,
  .case-card.large {
    grid-column: auto;
  }

  .scene-card,
  .scene-card.primary {
    min-height: 0;
    padding: 22px;
  }

  .scene-card.primary h3 {
    font-size: 28px;
  }

  .gallery-grid {
    grid-auto-rows: auto;
    grid-template-rows: none;
    grid-template-areas: none;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .gallery-card {
    grid-column: auto;
    grid-row: auto;
    grid-area: auto;
    min-height: 0;
  }

  .gallery-card > div {
    position: static;
    padding: 18px 18px 14px;
    background: transparent;
  }

  .gallery-card h3 {
    font-size: 16px;
    line-height: 1.45;
  }

  .gallery-card img {
    display: block;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center top;
  }

  .area-im img {
    max-height: 480px;
  }

  .image-lightbox {
    padding: 54px 14px;
  }

  .image-lightbox img {
    max-width: 100%;
    max-height: 78vh;
  }

  .case-card > img {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
  }

  .case-card.large {
    display: block;
  }

  .case-card.large > img {
    height: auto;
    min-height: 0;
    padding: 8px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .contact-panel h2 {
    font-size: 28px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .contact-actions {
    max-width: 100%;
  }

  .qr-card {
    width: min(240px, 100%);
    margin: 0 auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
