@font-face {
  font-family: Lack;
  src: url('./fonts/Lack-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --bg-panel: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #202020;
  --muted: #64645f;
  --muted-2: #888885;
  --line: #e6e6e3;
  --line-dashed: #d8d8d8;
  --soft: #ececef;
  --fill: #f1f0ee;
  --accent: #12747d;
  --accent-hover: #0e5f66;
  --accent-soft: #e6f3f4;
  --selection-bg: #d7eef0;
  --selection-text: #0e5f66;
  --maxw: 1200px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: Lack, 'DM Sans', system-ui, sans-serif;
  --font-mono: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-panel:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(11, 11, 11, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 55% 40% at 10% 0%, rgba(165, 190, 205, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 8%, rgba(140, 165, 185, 0.16), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef0f4 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(11, 11, 11, 0.09) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow-x: clip;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 248, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.brand-link img {
  width: 28px;
  height: auto;
}

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

.nav-ghost {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  transition: color 0.2s ease;
}

.nav-ghost:hover {
  color: var(--ink);
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: #222;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid #cfcfc9;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 24px 36px;
}

.product-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  animation: rise 0.7s var(--ease-out) both;
}

.product-mark img {
  width: 56px;
  height: auto;
}

.product-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.product-name .os-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(34px, 4.5vw, 44px);
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(2px);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  animation: rise 0.8s var(--ease-out) 0.05s both;
}

.hero > p {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  animation: rise 0.8s var(--ease-out) 0.12s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  animation: rise 0.8s var(--ease-out) 0.18s both;
}

.showcase {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 0 0 10px;
  animation: rise 0.9s var(--ease-out) 0.22s both;
}

.tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}

.tab {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 2px 4px;
  min-height: 78px;
  padding: 12px 14px;
  text-align: left;
  color: #9a9a95;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab:last-child {
  border-right: 0;
}

.tab:hover {
  background: #fafaf8;
  color: #6d6d68;
}

.tab.active {
  color: var(--ink);
  background: #fff;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-index {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tab-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.tab-desc {
  font-size: 12px;
  line-height: 1.3;
  color: inherit;
  opacity: 0.85;
}

.demo-shell {
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  min-height: 420px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.demo-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 420px;
}

.demo-side {
  border-right: 1px solid var(--line);
  background: #fbfbfa;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-chat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.demo-bubble {
  background: var(--fill);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #2c2c2a;
}

.demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.demo-main {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-toolbar h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.demo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 11px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f8f6;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.panel-head strong {
  color: var(--ink);
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th,
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  background: #f3f7f8;
  color: var(--accent-hover);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok {
  color: #2f8f4e;
}

.status-warn {
  color: #b7791f;
}

.status-risk {
  color: #b42318;
}

.bars {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 84px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #f0efec;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ec8cc, var(--accent));
  transform-origin: left center;
  animation: grow 0.9s var(--ease-out) both;
}

.workflow {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
  font-size: 13px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 11px;
}

.composer {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.composer-input {
  min-height: 42px;
  color: #2c2c2a;
  font-size: 13px;
  line-height: 1.4;
}

.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.send svg {
  width: 14px;
  height: 14px;
}

.mosaic {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mosaic-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.mosaic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 11, 11, 0.05);
}

.mosaic-card span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mosaic-card strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}

.mini-chart i {
  display: block;
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8fbec3, var(--accent));
}

.platform-block {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
}

.open-block,
.security-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.block-copy {
  padding: clamp(36px, 5vw, 64px) clamp(22px, 3vw, 40px);
}

.security-copy {
  border-right: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.block-copy h2,
.shared-block h2,
.deploy-block h2 {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.block-copy p,
.shared-block p {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

.block-copy a,
.security-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  min-height: 100%;
}

.system-cell {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 110px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.system-cell:hover {
  background: #fafafa;
}

.system-cell .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.system-cell.accent .mark {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.shared-block {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px;
  border-top: 1px solid var(--line);
}

.shared-block p {
  margin-left: auto;
  margin-right: auto;
}

.knowledge-row {
  width: min(720px, 100%);
  margin: 28px auto 0;
  display: grid;
  gap: 8px;
}

.knowledge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font-size: 14px;
  animation: rise 0.6s var(--ease-out) both;
}

.knowledge-item:nth-child(2) {
  animation-delay: 0.06s;
}

.knowledge-item:nth-child(3) {
  animation-delay: 0.12s;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.check svg {
  width: 12px;
  height: 12px;
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: clamp(22px, 3vw, 30px) clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.security-list li:last-child {
  border-bottom: 0;
}

.point-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.security-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.security-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: none;
}

.deploy-block {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 24px;
  border-top: 1px solid var(--line);
}

.deploy-block .btn {
  margin-top: 28px;
  height: 44px;
  padding: 0 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 3vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-footer a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .tabs {
    grid-template-columns: 1fr;
  }

  .tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 64px;
  }

  .tab:last-child {
    border-bottom: 0;
  }

  .tab.active::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
  }

  .demo-frame {
    grid-template-columns: 1fr;
  }

  .demo-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .open-block,
  .security-block {
    grid-template-columns: 1fr;
  }

  .systems-grid {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .security-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .hero h1 {
    font-size: 24px;
  }

  .hero-meta {
    flex-direction: column;
    width: 100%;
  }

  .hero-meta .btn {
    width: min(100%, 280px);
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

.demo-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.composer-model {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-meta {
  color: var(--muted);
  font-size: 12px;
}

.open-cta {
  margin-top: 28px;
}
