* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: #f8fafc;
  background: #07111d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 18%, rgba(37, 99, 235, 0.24), transparent 34%),
    radial-gradient(circle at 14% 20%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, #07111d 0%, #0b1421 48%, #07101b 100%);
}

.landing-nav {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand,
.landing-nav a {
  color: inherit;
  text-decoration: none;
}

.landing-brand {
  font-size: 22px;
  font-weight: 800;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-cta,
.landing-nav-secondary,
.landing-primary,
.landing-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.landing-nav-cta,
.landing-primary {
  color: #fff;
  background: #2081f8;
  box-shadow: 0 16px 42px rgba(32, 129, 248, 0.28);
}

.landing-nav-cta,
.landing-nav-secondary {
  padding: 0 18px;
}

.landing-nav-secondary {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.48);
}

.landing-hero {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 370px);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding: 18px 0 56px;
}

.landing-hero-copy {
  max-width: 680px;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.landing-eyebrow {
  margin: 0;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.world-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.86);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.world-badge:hover {
  border-color: rgba(96, 165, 250, 0.46);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
}

.world-badge-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #f8fafc;
}

.landing-hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(54px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-hero p,
.landing-section p {
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 20px;
  line-height: 1.5;
}

.landing-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-primary,
.landing-secondary {
  padding: 0 22px;
}

.landing-secondary {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.54);
}

.landing-product-demo {
  justify-self: center;
  width: min(100%, 360px);
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-video-crop {
  width: min(100%, 360px);
  aspect-ratio: 56 / 121;
  overflow: hidden;
  border-radius: 44px;
  background: #020617;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(32, 129, 248, 0.18);
}

.landing-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.landing-section h2 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-section-header {
  max-width: 860px;
}

.landing-use-cases {
  width: min(1240px, calc(100% - 48px));
}

.use-case-tabs {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(500px, 620px);
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.use-case-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.case-tab-list {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 620px;
}

.case-tab-list label {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  color: rgba(226, 232, 240, 0.72);
  background: rgba(15, 23, 42, 0.54);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.case-tab-list label span {
  display: block;
  color: rgba(248, 250, 252, 0.82);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.case-tab-list label small {
  display: block;
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.58);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
}

#case-retail:checked ~ .case-tab-list label[for="case-retail"],
#case-construction:checked ~ .case-tab-list label[for="case-construction"],
#case-coffee:checked ~ .case-tab-list label[for="case-coffee"],
#case-billboard:checked ~ .case-tab-list label[for="case-billboard"],
#case-event:checked ~ .case-tab-list label[for="case-event"] {
  color: #fff;
  border-color: rgba(32, 129, 248, 0.72);
  background: rgba(32, 129, 248, 0.18);
  box-shadow: 0 16px 42px rgba(32, 129, 248, 0.24);
  transform: translateX(4px);
}

#case-retail:checked ~ .case-tab-list label[for="case-retail"] span,
#case-construction:checked ~ .case-tab-list label[for="case-construction"] span,
#case-coffee:checked ~ .case-tab-list label[for="case-coffee"] span,
#case-billboard:checked ~ .case-tab-list label[for="case-billboard"] span,
#case-event:checked ~ .case-tab-list label[for="case-event"] span {
  color: #fff;
}

#case-retail:checked ~ .case-tab-list label[for="case-retail"] small,
#case-construction:checked ~ .case-tab-list label[for="case-construction"] small,
#case-coffee:checked ~ .case-tab-list label[for="case-coffee"] small,
#case-billboard:checked ~ .case-tab-list label[for="case-billboard"] small,
#case-event:checked ~ .case-tab-list label[for="case-event"] small {
  color: rgba(219, 234, 254, 0.78);
}

.case-panels {
  grid-column: 1;
  grid-row: 1;
}

.case-panel {
  display: none;
}

#case-retail:checked ~ .case-panels .case-panel--retail,
#case-construction:checked ~ .case-panels .case-panel--construction,
#case-coffee:checked ~ .case-panels .case-panel--coffee,
#case-billboard:checked ~ .case-panels .case-panel--billboard,
#case-event:checked ~ .case-panels .case-panel--event {
  display: block;
}

.imessage-phone,
.deliverables-graphic {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.imessage-phone {
  width: min(100%, 430px);
  min-height: 650px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(180deg, #172334, #050b12);
}

.imessage-header {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 32px 32px 0 0;
  background: rgba(2, 6, 23, 0.86);
  color: #f8fafc;
  font-weight: 850;
}

.imessage-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2081f8;
  font-size: 14px;
}

.imessage-header small {
  margin-left: auto;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
}

.message-thread {
  min-height: 566px;
  display: block;
  padding: 16px;
  border-radius: 0 0 32px 32px;
  background: #07111d;
}

.message {
  max-width: 78%;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom;
  animation: messageIn 0.36s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes messageIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message--user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(180deg, #2f8dff, #0a74f4);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(32, 129, 248, 0.18);
}

.message--agent,
.message--human {
  margin-right: auto;
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.88);
  border-bottom-left-radius: 6px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  max-height: 50px;
  margin-top: 8px;
  padding: 11px 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: typingBubble 1.1s ease forwards;
  animation-delay: var(--delay, 0s);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.72);
  animation: typingPulse 0.8s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.12s; }
.typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes typingPulse {
  0%, 100% { opacity: 0.32; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes typingBubble {
  0% { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(8px) scale(0.98); }
  18%, 78% { max-height: 50px; margin-top: 8px; padding-top: 11px; padding-bottom: 11px; opacity: 1; transform: translateY(0) scale(1); }
  100% { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(-4px) scale(0.98); }
}

.mission-link-card {
  max-width: 88%;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: messageIn 0.42s ease forwards;
  animation-delay: var(--delay, 0s);
}

.mission-link-card img {
  width: 74px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.mission-link-card span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mission-link-card strong {
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.15;
}

.mission-link-card small {
  color: rgba(226, 232, 240, 0.64);
  font-size: 11px;
  line-height: 1.25;
}

.landing-deliverables {
  width: min(1240px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1fr);
  gap: 56px;
  align-items: center;
}

.deliverables-copy p {
  max-width: 560px;
  margin-top: 30px;
}

.deliverables-cta {
  margin-top: 30px;
}

.deliverables-graphic {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
}

.deliverables-graphic video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: #050b12;
}

.deliverables-graphic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  transform: scale(1.04);
  filter: saturate(0.9);
}

.deliverables-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(32, 129, 248, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.76));
}

.delivery-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.delivery-lines path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: lineDrift 8s linear infinite;
}

.delivery-lines circle {
  fill: #34d399;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.9));
}

.diagram-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.diagram-node--funder {
  left: 6%;
  top: 42%;
  width: 170px;
  padding: 20px;
}

.diagram-node--katch {
  left: 50%;
  top: 50%;
  width: 210px;
  min-height: 172px;
  padding: 22px;
  transform: translate(-50%, -50%);
  animation: vaultPulse 5.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.diagram-node--access {
  right: 5%;
  top: 28%;
  width: 230px;
  padding: 22px;
}

.diagram-node--docs {
  right: 13%;
  bottom: 12%;
  width: 160px;
  padding: 18px;
}

.vault-mark {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(32, 129, 248, 0.28)),
    rgba(15, 23, 42, 0.8);
  position: relative;
}

.vault-mark::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  width: 14px;
  height: 20px;
  border: 3px solid #34d399;
  border-radius: 12px 12px 6px 6px;
}

.vault-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 25px;
  width: 17px;
  height: 11px;
  border-radius: 4px;
  background: #34d399;
}

.node-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(32, 129, 248, 0.14);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diagram-node--access .node-kicker {
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.14);
}

.diagram-node strong {
  display: block;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.1;
}

.diagram-node small {
  display: block;
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.asset-row span {
  width: 20px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.26);
}

.asset-row em {
  font-style: normal;
}

@keyframes lineDrift {
  to { stroke-dashoffset: -32; }
}

@keyframes vaultPulse {
  0%, 100% { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32); }
  52% {
    box-shadow:
      0 24px 80px rgba(52, 211, 153, 0.24),
      0 0 0 8px rgba(52, 211, 153, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-lines path,
  .diagram-node--katch {
    animation: none;
  }
}

.landing-section pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(2, 6, 23, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.docs-install-card {
  display: grid;
  gap: 18px;
  align-content: start;
  margin-top: 30px;
  max-width: 620px;
}

.landing-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.landing-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: rgba(226, 232, 240, 0.68);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: #f8fafc;
}

@media (min-width: 1440px) {
  .landing-hero h1 {
    font-size: 76px;
  }
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(430px, 1fr) minmax(280px, 360px);
    gap: 40px;
  }

  .landing-hero h1 {
    font-size: clamp(46px, 5vw, 60px);
    max-width: 560px;
  }

  .landing-product-demo {
    min-height: 0;
  }

  .landing-video-crop {
    width: min(100%, 320px);
  }

  .landing-deliverables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .landing-nav {
    width: min(100% - 32px, 430px);
  }

  .landing-hero {
    width: min(100% - 32px, 430px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 20px 0 72px;
  }

  .landing-hero h1 {
    font-size: 46px;
  }

  .landing-hero p,
  .landing-section p {
    font-size: 17px;
  }

  .landing-actions {
    align-items: stretch;
  }

  .landing-primary,
  .landing-secondary {
    flex: 1 1 150px;
  }

  .landing-product-demo {
    width: 100%;
    min-height: 490px;
  }

  .landing-video-crop {
    width: min(100%, 300px);
    border-radius: 28px;
  }

  .landing-section,
  .landing-use-cases,
  .landing-deliverables {
    width: min(100% - 32px, 430px);
    display: block;
    padding: 60px 0;
  }

  .landing-footer {
    width: min(100% - 32px, 430px);
    padding: 34px 0 44px;
    display: block;
  }

  .landing-footer-links {
    justify-content: flex-start;
    gap: 14px 18px;
    margin-top: 18px;
  }

  .use-case-tabs {
    display: block;
  }

  .case-tab-list {
    max-width: none;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .case-tab-list::-webkit-scrollbar {
    display: none;
  }

  .case-tab-list label {
    min-width: 210px;
    flex: 0 0 210px;
    transform: none;
  }

  .case-panels {
    margin-top: 18px;
  }

  .imessage-phone {
    width: 100%;
    min-height: 0;
    border-radius: 34px;
  }

  .imessage-header {
    border-radius: 26px 26px 0 0;
  }

  .message-thread {
    min-height: 0;
    padding: 16px;
    border-radius: 0 0 26px 26px;
  }

  .message {
    max-width: 88%;
    font-size: 14px;
  }

  .mission-link-card {
    max-width: 96%;
  }

  .deliverables-graphic {
    min-height: 0;
    margin-top: 28px;
  }

  .diagram-node--funder {
    left: 18px;
    top: 34px;
    width: 150px;
    padding: 16px;
  }

  .diagram-node--katch {
    width: 170px;
    min-height: 154px;
    padding: 16px;
  }

  .diagram-node--access {
    right: 18px;
    top: 42px;
    width: 210px;
    padding: 16px;
  }

  .diagram-node--docs {
    right: 24px;
    bottom: 24px;
    width: 145px;
    padding: 16px;
  }

  .diagram-node strong {
    font-size: 16px;
  }

  .asset-row {
    font-size: 12px;
  }

  .landing-section pre {
    margin-top: 24px;
  }
}
