/* ─── NAV ──────────────────────────────────────────── */

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-logo-product {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transform: translateY(-2px);
}

/* ─── HERO ─────────────────────────────────────────── */

.omnia-hero {
  padding: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.omnia-hero-left {
  padding-top: 64px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(64px + 4rem) 4rem 5rem max(3.5rem, calc(50vw - 800px + 3.5rem));
  border-right: 1px solid var(--border);
}

.omnia-hero-icon {
  height: 56px;
  width: auto;
  display: block;
  align-self: flex-start;
  margin-bottom: 2.5rem;
}

.omnia-hero h1 {
  font-size: clamp(2.1rem, 3.5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.omnia-hero-h1-dim {
  color: var(--text-muted);
  font-weight: 300;
}

.omnia-hero-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.omnia-hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.omnia-btn-github {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s;
}

.omnia-btn-github:hover {
  border-color: #bbb;
  color: var(--text);
}

.omnia-hero-right {
  background: #0d0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.omnia-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  scale: 1.1;
}

.omnia-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 22, 0.076);
}

/* ─── EDITOR WINDOW ────────────────────────────────── */

.editor-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: rgba(18,19,28,0.92);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.editor-titlebar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  background: #1c1d24;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green  { background: #28c840; }

.editor-tab {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  background: #13141a;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.editor-body {
  padding: 1.25rem 1.5rem;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 0.775rem;
  line-height: 1.85;
  overflow-x: auto;
}

.editor-code {
  color: rgba(255,255,255,0.45);
  white-space: pre;
}

.editor-indent {
  display: block;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 1rem;
  margin-left: 0.15rem;
}

.ec-kw { color: #4ec9b0; }
.ec-ty { color: #4ec9b0; }
.ec-fn { color: #dcdcaa; }
.ec-cm { color: #6a9955; font-style: italic; }
.ec-op { color: rgba(255,255,255,0.3); }

/* ─── RUNTIME ──────────────────────────────────────── */

.omnia-runtime {
  background: var(--blue-white);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  position: relative;
}

.omnia-runtime::before,
.omnia-runtime::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.omnia-runtime::before { left:  max(3.5rem, calc(50% - 800px + 3.5rem)); }
.omnia-runtime::after  { right: max(3.5rem, calc(50% - 800px + 3.5rem)); }

.omnia-runtime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--border);
  overflow: hidden;
}

.arch-diagram {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.arch-diagram-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.arch-node {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.arch-node.highlighted {
  background: linear-gradient(90deg, var(--dark-blue) 0%, var(--bright-blue) 55%, var(--teal) 100%);
  border: none;
  border-radius: 0;
  padding: 1.5rem 2rem;
}

.arch-node-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.arch-node.highlighted .arch-node-label { color: #fff; }

.arch-node-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

.arch-node.highlighted .arch-node-sub { color: rgba(255,255,255,0.55); }

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
  color: var(--mid-blue-grey);
  font-size: 1rem;
}

.arch-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.arch-cap-card {
  background: var(--white);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.arch-cap-card--empty {
  background: var(--blue-white);
}

.arch-cap-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.arch-cap-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.runtime-heading {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.runtime-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 1.5rem;
}

.runtime-body + .runtime-body { margin-top: 1rem; }
.runtime-body strong { font-weight: 400; color: var(--text); }

.runtime-content {
  padding: 6rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* ─── TRAITS ───────────────────────────────────────── */

.omnia-traits {
  background: var(--blue-white);
  padding: 9rem 0;
  position: relative;
}

.omnia-traits::before,
.omnia-traits::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.omnia-traits::before { left:  max(3.5rem, calc(50% - 800px + 3.5rem)); }
.omnia-traits::after  { right: max(3.5rem, calc(50% - 800px + 3.5rem)); }

.omnia-section-header {
  display: grid;
  grid-template-columns: calc(min(50vw, 800px) - 9rem) 1fr;
  gap: 1rem;
  padding: 0 1.5rem 3rem;
  align-items: end;
}

.omnia-traits .omnia-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.trait-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trait-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  align-self: flex-start;
}

.trait-icon {
  width: 16px;
  height: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.trait-role {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
}

.trait-type {
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 0.875rem;
  color: var(--text);
  display: inline-block;
  align-self: flex-start;
  position: relative;
}

.trait-type::after {
  content: '|';
  color: var(--text-muted);
}

.trait-card--empty {
  background: var(--blue-white);
}

.trait-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: auto;
}

/* ─── COMPOSE BANNER ───────────────────────────────── */

.traits-compose-banner {
  background: url('../assets/compose-banner-bg.jpg') center / cover no-repeat;
  margin-top: 4rem;
  padding: 5.5rem 4rem;
  overflow: hidden;
}

.omnia-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.omnia-compose-grid .display-heading {
  margin-bottom: 1.25rem;
}

.compose-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 420px;
}

.compose-code {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.4);
  white-space: pre;
  overflow-x: auto;
}

.cc-kw  { color: #7dd3fc; }
.cc-ty  { color: #86efac; }
.cc-str { color: #fde68a; }
.cc-fn  { color: rgba(255,255,255,0.8); }
.cc-cm  { color: rgba(255,255,255,0.25); font-style: italic; }

/* ─── GET STARTED ──────────────────────────────────── */

.omnia-get-started {
  background-color: var(--blue-white);
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  border-top: 1px solid var(--border);
  padding: 0;
}

.get-started-inner {
  display: grid;
  grid-template-columns: clamp(280px, 40%, 560px) 1fr;
  max-width: 1600px;
  margin: 0 auto;
}

.get-started-left-sticky {
  position: sticky;
  top: 64px;
  padding: 8rem 3rem 8rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.get-started-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.gs-inline-code {
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 0.82em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.get-started-right {
  padding: 8rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  min-width: 0;
}

.gs-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 600px;
}

.gs-step-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.gs-num {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ec-str { color: #fde68a; }

/* ─── BUILT ON ─────────────────────────────────────── */

.omnia-built-on {
  padding: 0;
  background: var(--dark-blue);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.omnia-built-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
}

.built-divider {
  height: 60px;
  background: rgba(255,255,255,0.08);
}

.built-item {
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.built-label-top {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.25rem;
}

.built-value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.built-value.clr-teal  { color: var(--teal); }
.built-value.clr-white { color: #ffffff; }
.built-value.clr-rust  { color: #fb923c; }

.built-sub {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin-top: 0.1rem;
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 900px) {
  .omnia-hero { grid-template-columns: 1fr; }
  .omnia-hero-left {
    padding: calc(64px + 3rem) 1.5rem 3rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .omnia-hero-right { min-height: 40vh; padding: 2rem 1.5rem; }

  .omnia-runtime::before { left: 1.5rem; }
  .omnia-runtime::after  { right: 1.5rem; }
  .omnia-runtime-grid { grid-template-columns: 1fr; }
  .arch-diagram { border-right: none; border-bottom: 1px solid var(--border); }
  .runtime-content { padding: 2.5rem 1.5rem; }
  .omnia-section-header { grid-template-columns: 1fr; gap: 1.5rem; }

  .omnia-traits { padding: 4rem 0; }
  .omnia-traits::before { left: 1.5rem; }
  .omnia-traits::after  { right: 1.5rem; }
  .trait-grid { grid-template-columns: repeat(2, 1fr); }
  .traits-compose-banner { padding: 3rem 1.5rem; }
  .omnia-compose-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .get-started-inner { grid-template-columns: 1fr; }
  .get-started-left { border-right: none; border-bottom: 1px solid var(--border); }
  .get-started-left-sticky { position: static; padding: 3.5rem 1.5rem; }
  .get-started-right { padding: 3rem 1.5rem; }

  .omnia-built-grid { grid-template-columns: 1fr; }
  .built-divider { display: none; }
  .built-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .built-item:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .arch-capabilities { grid-template-columns: repeat(2, 1fr); }
  .trait-grid { grid-template-columns: 1fr; }
  .runtime-heading { font-size: 1.85rem; }
}
