:root {
  color-scheme: light;
  font-family: Nunito, "Gowun Dodum", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --ink: #17211d;
  --muted: #5d675f;
  --paper: #fff9ed;
  --paper-strong: #fff0d7;
  --white: #fffef8;
  --line: rgba(21, 21, 21, 0.12);
  --dark: #173a2a;
  --green: #34c978;
  --blue: #45a3ff;
  --coral: #ff7a59;
  --amber: #ffc84d;
  --shadow: 0 24px 70px rgba(24, 24, 20, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.95), rgba(255, 255, 248, 0.95)),
    var(--paper);
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.signal-row,
.diagram-footer,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  justify-content: center;
  gap: clamp(12px, 2.6vw, 30px);
  color: #4d4b44;
  font-size: 0.92rem;
  font-weight: 900;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.page-panel a:hover {
  color: var(--green);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.lang-toggle,
.header-cta,
.primary-action,
.secondary-action,
.menu-toggle {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
}

.lang-toggle {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.header-cta,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  background: linear-gradient(135deg, #1e9e60, #2f8fff);
  color: #fffdf7;
  box-shadow: 0 10px 24px rgba(47, 143, 255, 0.18);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(52px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 96px);
  background:
    linear-gradient(135deg, rgba(94, 234, 164, 0.3), transparent 34%),
    linear-gradient(315deg, rgba(125, 211, 252, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 232, 163, 0.22), transparent 42%),
    var(--paper);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #1c8d58;
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.page-hero h1,
.company-strip h2 {
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 6.5vw, 6.2rem);
  line-height: 0.93;
}

.hero-body {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.signal-row {
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.signal-row div {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.62);
}

.signal-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-row dd {
  margin: 5px 0 0;
  font-weight: 950;
}

.hero-diagram {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 250, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 20%, rgba(49, 166, 106, 0.32), transparent 27%),
    radial-gradient(circle at 74% 74%, rgba(59, 130, 246, 0.28), transparent 28%),
    #101211;
  color: #fffdf7;
  box-shadow: var(--shadow);
}

.hero-flow-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-flow-visual > img:not(.hero-flow-output-thumb) {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 820;
  object-fit: cover;
}

.hero-flow-output-thumb {
  position: absolute;
  left: 60.33%;
  top: 62.07%;
  width: 18%;
  aspect-ratio: 4 / 3;
  border-radius: 2.4%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.14);
}

.diagram-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 247, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0 64%, transparent 86%);
}

.diagram-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: rgba(255, 253, 247, 0.64);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.diagram-header strong {
  color: #fffdf7;
}

.diagram-orbit {
  position: relative;
  z-index: 1;
  min-height: 486px;
  margin: 0 22px 20px;
  border: 1px solid rgba(255, 253, 247, 0.13);
  border-radius: 10px;
  background:
    radial-gradient(circle, transparent 0 27%, rgba(255, 253, 247, 0.1) 27.2% 27.5%, transparent 27.7% 42%, rgba(255, 253, 247, 0.08) 42.2% 42.5%, transparent 42.7%),
    rgba(255, 253, 247, 0.045);
}

.diagram-orbit::before,
.diagram-orbit::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 62%;
  height: 2px;
  background: linear-gradient(90deg, rgba(49, 166, 106, 0), rgba(49, 166, 106, 0.76), rgba(59, 130, 246, 0));
  content: "";
  transform: translate(-50%, -50%);
}

.diagram-orbit::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.diagram-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.16), rgba(255, 253, 247, 0.04)),
    #161918;
  box-shadow: 0 0 0 12px rgba(255, 253, 247, 0.035), 0 26px 70px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.diagram-core img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.diagram-core span {
  margin-top: -18px;
  font-size: 0.78rem;
  font-weight: 1000;
}

.diagram-node {
  position: absolute;
  width: min(230px, 42%);
  min-height: 136px;
  padding: 17px;
  border: 1px solid rgba(255, 253, 247, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.1), 0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.diagram-node span,
.diagram-node small,
.diagram-footer span {
  color: rgba(255, 253, 247, 0.58);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.diagram-node strong {
  display: block;
  margin: 10px 0 14px;
  color: #fffdf7;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.1;
}

.diagram-node small {
  display: block;
  color: rgba(255, 253, 247, 0.66);
  line-height: 1.45;
  text-transform: none;
}

.node-input {
  top: 34px;
  left: 38px;
  border-color: rgba(49, 166, 106, 0.36);
}

.node-plan {
  top: 58px;
  right: 38px;
  border-color: rgba(59, 130, 246, 0.36);
}

.node-agent {
  bottom: 54px;
  left: 54px;
  border-color: rgba(246, 183, 60, 0.36);
}

.node-runtime {
  right: 54px;
  bottom: 34px;
  border-color: rgba(255, 107, 74, 0.36);
}

.diagram-footer {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.diagram-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 253, 247, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.07);
  color: rgba(255, 253, 247, 0.78);
}

.section {
  padding: clamp(68px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.section-heading {
  min-width: 0;
  max-width: 960px;
  margin-bottom: 34px;
}

.section h2,
.company-strip h2 {
  max-width: 1000px;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 1;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.product-band {
  background: var(--white);
}

.product-grid,
.system-grid,
.page-grid,
.showcase-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.surface-card,
.system-grid article,
.page-panel,
.showcase-card,
.download-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.82);
}

.surface-card {
  min-height: 310px;
  padding: 26px;
}

.surface-card .product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.product-icon-world {
  color: #0ea5e9;
}

.product-icon-avatar {
  color: #ec4899;
}

.product-icon-friend {
  color: #10b981;
}

.surface-card h3,
.system-grid h3,
.page-panel h2,
.showcase-card h2,
.download-card h2 {
  margin: 24px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  line-height: 1.1;
}

.surface-card p,
.system-grid p,
.page-panel p,
.showcase-card p,
.download-card p {
  margin: 0;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1.22fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--paper-strong);
}

.proof-copy {
  min-width: 0;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  color: #17764b;
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 5px;
}

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

.proof-video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 18px 38px rgba(21, 21, 21, 0.08);
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101211;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proof-video-card h3 {
  margin: 18px 18px 8px;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.1;
}

.proof-video-card p {
  margin: 0 18px 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: end;
}

.phone-strip img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 8px solid #101211;
  border-radius: 24px;
  background: #101211;
  box-shadow: 0 24px 48px rgba(21, 21, 21, 0.18);
}

.phone-strip img:nth-child(2) {
  transform: translateY(-24px);
}

.app-download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1.26fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  background: var(--white);
}

.download-copy {
  min-width: 0;
}

.download-copy h2 {
  max-width: 720px;
}

.system-section {
  background:
    linear-gradient(135deg, rgba(94, 234, 164, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(255, 200, 77, 0.22), transparent 40%),
    #f2fff6;
  color: var(--ink);
}

.system-section .eyebrow {
  color: #1c8d58;
}

.system-section p {
  color: var(--muted);
}

.system-grid article {
  min-height: 250px;
  padding: 24px;
  border-color: rgba(23, 33, 29, 0.1);
  background: rgba(255, 254, 248, 0.84);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.06);
}

.showcase-section {
  background: var(--paper);
}

.safety-section {
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(255, 122, 89, 0.16), transparent 40%),
    #fffdf8;
}

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

.safety-feature-card {
  min-width: 0;
  min-height: 196px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.9);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.06);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.safety-feature-card[open] {
  grid-column: span 2;
  box-shadow: 0 24px 54px rgba(23, 33, 29, 0.11);
}

.safety-feature-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 154px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}

.safety-feature-card summary::-webkit-details-marker {
  display: none;
}

.safety-feature-card summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 16px;
  color: #17764b;
  font-size: 1.35rem;
  font-weight: 950;
}

.safety-feature-card[open] summary::after {
  content: "−";
}

.safety-feature-card summary {
  position: relative;
}

.safety-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0ea5e9;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.safety-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-feature-card:nth-child(2) .safety-icon,
.safety-feature-card:nth-child(5) .safety-icon {
  color: #10b981;
}

.safety-feature-card:nth-child(3) .safety-icon,
.safety-feature-card:nth-child(6) .safety-icon {
  color: #f59e0b;
}

.safety-feature-card:nth-child(4) .safety-icon {
  color: #ec4899;
}

.safety-feature-card strong,
.safety-feature-card em {
  display: block;
  max-width: calc(100% - 24px);
}

.safety-feature-card strong {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.46rem);
  font-style: normal;
  line-height: 1.12;
}

.safety-feature-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.5;
}

.safety-feature-card > p {
  margin: -10px 24px 24px 96px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.inline-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  max-width: none;
}

.world-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.world-rail::-webkit-scrollbar {
  display: none;
}

.world-card {
  flex: 0 0 min(330px, 78vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(21, 21, 21, 0.08);
  scroll-snap-align: start;
}

.world-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.world-card span,
.world-card strong {
  display: block;
  margin-inline: 16px;
}

.world-card span {
  margin-top: 14px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 1000;
}

.world-card strong {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 1.18rem;
}

.company-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(49, 166, 106, 0.18), transparent 40%),
    linear-gradient(300deg, rgba(255, 107, 74, 0.14), transparent 38%),
    var(--white);
}

.company-strip h2 {
  max-width: 760px;
}

.company-strip p {
  max-width: 760px;
}

.company-strip-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  align-items: center;
}

.site-footer {
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(23, 33, 29, 0.1);
  background: #fff3c7;
  color: rgba(23, 33, 29, 0.72);
}

.site-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 950;
}

.page-main {
  background: var(--paper);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5.8vw, 5.5rem);
  line-height: 0.96;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.72;
}

.page-kicker {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-kicker img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.company-video-kicker {
  padding: 0;
  overflow: hidden;
}

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

.company-summary {
  max-width: 980px;
  margin-bottom: 28px;
}

.company-summary h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.company-summary p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.company-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-content {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.page-grid {
  margin-top: 22px;
}

.page-panel,
.showcase-card,
.download-card {
  padding: 24px;
}

.page-panel h2,
.showcase-card h2,
.download-card h2 {
  margin-top: 0;
}

.page-panel a,
.showcase-card a,
.download-card a {
  color: #17764b;
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.showcase-card img {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  margin: -24px -24px 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

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

.download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.download-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  line-height: 1.1;
}

.qr-frame {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(21, 21, 21, 0.11);
}

.qr-frame img:first-child {
  width: 100%;
  height: 100%;
}

.qr-frame img:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  padding: 5px;
  border-radius: 24%;
  background: #fff;
  transform: translate(-50%, -50%);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .proof-section,
  .app-download-section,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .proof-copy,
  .download-copy,
  .section-heading {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    line-height: 1.04;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-body,
  .section p,
  .page-hero p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .section h2,
  .page-hero h1,
  .company-strip h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 6.8vw, 3.1rem);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-diagram {
    min-height: 560px;
  }

  .hero-flow-visual > img:not(.hero-flow-output-thumb) {
    aspect-ratio: 1200 / 820;
  }

  .product-grid,
  .system-grid,
  .page-grid,
  .showcase-grid,
  .safety-feature-grid {
    grid-template-columns: 1fr;
  }

  .safety-feature-card[open] {
    grid-column: auto;
  }

  .company-strip {
    grid-template-columns: 1fr;
  }

  .company-strip-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    right: 14px;
    top: calc(100% + 6px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(196px, calc(100vw - 28px));
    gap: 0;
    padding: 8px 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 0.875rem;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 0;
    font-weight: 800;
  }

  .site-nav a:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
  }

  .header-actions {
    grid-column: 2;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-header.nav-open .menu-toggle {
    background: rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 36px 18px 44px;
    overflow: hidden;
  }

  .hero-copy,
  .section-heading,
  .proof-copy,
  .download-copy {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.86rem, 8.8vw, 2.48rem);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-body,
  .section p,
  .page-hero p {
    width: 100%;
    max-width: none;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .signal-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
  }

  .company-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    min-height: 690px;
    margin-inline: -4px;
  }

  .hero-flow-visual {
    margin-inline: -4px;
    max-width: 330px;
  }

  .hero-flow-visual > img:not(.hero-flow-output-thumb) {
    aspect-ratio: 1200 / 820;
    object-fit: contain;
    object-position: center;
  }

  .hero-flow-output-thumb {
    left: 60.33%;
    top: 62.07%;
    width: 18%;
    aspect-ratio: 4 / 3;
  }

  .diagram-header {
    flex-direction: column;
    gap: 5px;
  }

  .diagram-orbit {
    min-height: 548px;
    margin-inline: 16px;
    background: rgba(255, 253, 247, 0.045);
  }

  .diagram-orbit::before,
  .diagram-orbit::after {
    display: none;
  }

  .diagram-core {
    top: 50%;
    width: 118px;
    height: 118px;
  }

  .diagram-core img {
    width: 44px;
    height: 44px;
  }

  .diagram-node {
    left: 16px;
    right: 16px;
    width: auto;
    min-height: 104px;
  }

  .node-input {
    top: 18px;
  }

  .node-plan {
    top: 142px;
  }

  .node-agent {
    top: auto;
    bottom: 142px;
  }

  .node-runtime {
    top: auto;
    bottom: 18px;
  }

  .section {
    padding: 44px 18px;
    overflow: hidden;
  }

  .section h2,
  .page-hero h1,
  .company-strip h2,
  .company-summary h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.62rem, 7.4vw, 2.08rem);
    line-height: 1.04;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .product-grid,
  .system-grid,
  .page-grid,
  .showcase-grid,
  .safety-feature-grid,
  .download-grid,
  .proof-video-grid {
    gap: 12px;
  }

  .surface-card,
  .system-grid article,
  .page-panel,
  .showcase-card,
  .download-card {
    padding: 18px;
  }

  .surface-card,
  .system-grid article,
  .safety-feature-card {
    min-height: 0;
  }

  .surface-card .product-icon {
    width: 42px;
    height: 42px;
  }

  .product-icon svg {
    width: 24px;
    height: 24px;
  }

  .surface-card h3,
  .system-grid h3,
  .page-panel h2,
  .showcase-card h2,
  .download-card h2 {
    margin: 16px 0 10px;
  }

  .inline-heading {
    display: block;
  }

  .inline-heading .secondary-action {
    margin-top: 18px;
  }

  .phone-strip {
    grid-template-columns: 1fr 1fr;
  }

  .phone-strip img:nth-child(2) {
    transform: none;
  }

  .phone-strip img:nth-child(3) {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }

  .page-hero,
  .page-content {
    padding: 44px 18px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .proof-video-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .system-grid,
  .page-grid,
  .showcase-grid,
  .safety-feature-grid,
  .company-grid,
  .phone-strip,
  .world-rail {
    max-width: none;
  }

  .safety-feature-card summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }

  .safety-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .safety-icon svg {
    width: 26px;
    height: 26px;
  }

  .safety-feature-card > p {
    margin: -2px 18px 18px 74px;
    max-width: none;
  }

  .download-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .qr-frame {
    width: 96px;
  }
}
