/* ============================================================
   WarehouseOS — page structure: nav, hero, sections, footer
   ============================================================ */

/* ---------------- NAVBAR ---------------- */

.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1240px;
  padding: 10px 10px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-strong);
}

.navbar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.6;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--steel), #1e40af);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.08) 3px,
    rgba(255, 255, 255, 0.08) 4px
  );
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text-strong);
  background: var(--surface-2);
}

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

.menu-toggle {
  display: none;
  color: var(--text-strong);
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  padding: 150px 0 70px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 26px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.25s var(--ease);
}

.hero-badge:hover {
  border-color: var(--amber);
}

.hero-badge .pill {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--amber);
  color: #0a0e14;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 1040px;
  margin: 0 auto 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--steel-2) 0%, var(--cyan) 50%, var(--amber-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 38px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* ---------------- PRODUCT PREVIEW ---------------- */

.app-wrap {
  position: relative;
  perspective: 2200px;
}

.app-glow {
  position: absolute;
  top: 12%;
  left: 15%;
  right: 15%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.28), transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.app-frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.05) 30%, transparent 60%);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px var(--border-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-frame::before,
.app-frame::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--steel-2);
  opacity: 0.6;
  z-index: 3;
  line-height: 1;
  pointer-events: none;
}

.app-frame::before {
  top: -8px;
  left: -8px;
}
.app-frame::after {
  bottom: -8px;
  right: -8px;
}

.app-inner {
  background: var(--panel);
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  gap: 14px;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic span:nth-child(1) {
  background: #ef4444;
}
.traffic span:nth-child(2) {
  background: #f59e0b;
}
.traffic span:nth-child(3) {
  background: #10b981;
}

.url-bar {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}

.app-shot {
  width: 100%;
  height: auto;
}

.app-caption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 0;
  flex-wrap: wrap;
}

/* ---------------- TRUST BAR ---------------- */

.trust-bar {
  padding: 50px 0 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 26px;
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.trust-item:hover {
  color: var(--text-strong);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

/* ---------------- SPLIT ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content .sec-eyebrow {
  margin-bottom: 16px;
}

.split-content h2 {
  margin-bottom: 18px;
}

.split-content > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: var(--green-2);
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

/* ---------------- ARCHITECTURE PANEL ---------------- */

.arch-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.arch-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.arch-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.arch-tab.active {
  background: var(--steel-soft);
  color: var(--steel-2);
}

.arch-code {
  padding: 22px;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.arch-code .c-kw {
  color: #c084fc;
}
.arch-code .c-cls {
  color: var(--steel-2);
}
.arch-code .c-typ {
  color: var(--cyan);
}
.arch-code .c-str {
  color: var(--amber-2);
}
.arch-code .c-cmt {
  color: var(--text-faint);
}

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

.arch-stat {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.arch-stat:last-child {
  border-right: none;
}

.arch-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-strong);
}

.arch-stat span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------------- PROCESS ---------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-strong) 0,
    var(--border-strong) 8px,
    transparent 8px,
    transparent 16px
  );
}

.process-step {
  position: relative;
  text-align: center;
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-2);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.process-step:hover .step-num {
  border-color: var(--steel);
  color: var(--steel-2);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 24px rgba(59, 130, 246, 0.4);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- KPI ---------------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.kpi:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.kpi::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, var(--surface-2) 50%);
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.kpi-num .unit {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 4px;
}

.kpi-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------------- CTA ---------------- */

.cta-wrap {
  padding: 40px 0 100px;
}

.cta-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(500px 300px at 80% 70%, rgba(245, 158, 11, 0.2), transparent 60%);
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 85%);
}

.hazard-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--caution-stripe);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 18px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin: 0 auto 34px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- FOOTER ---------------- */

footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--steel), var(--amber), var(--steel), transparent);
  opacity: 0.6;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

.foot-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 18px 0 20px;
  max-width: 320px;
  line-height: 1.65;
}

.by-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.by-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.by-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text-strong);
  background: linear-gradient(120deg, var(--steel-2), var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}

.foot-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.foot-col a:hover {
  color: var(--steel-2);
  transform: translateX(3px);
}

.foot-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.foot-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-2);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}
