/* ─────────────────────────────────────────
   LANDING PAGE STYLES
   (Marketing site only — no dashboard styles)
───────────────────────────────────────── */

/* ─ NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-block;
  border-radius: var(--r);
  margin-right: 10px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-nav-secondary:hover {
  background: var(--surface);
  color: var(--text);
}

/* ─ HERO ─────────────────────────────────── */
#hero {
  padding: 10.5rem 0 7.5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#hero .container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: visible;
}

/* Two-column grid — left text, right cursors */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-cursors {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-self: end;
    width: 100%;
    max-width: 420px;
  }
}

.hero-left { width: 100%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.10);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-3);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ─ HERO PROPS (CHIPS) ───────────────────── */
.hero-props {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}

.hero-prop-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.5;
  width: fit-content;
}

.prop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.hero-prop-chip strong {
  color: var(--text);
  font-weight: 600;
}

/* ─ HERO PREVIEW ─────────────────────────── */
.hero-preview {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.hp-titlebar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hp-dots { display: flex; gap: 5px; }

.hp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hp-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: -0.01em;
}

.hp-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.hp-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: 5px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.hp-row:hover {
  border-color: var(--border);
  background: var(--surface);
}

.hp-row-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.hp-row-text {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.hp-row-badge {
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  align-self: start;
  margin-top: 2px;
}

.hp-badge-warn  { background: #FFF4E5; color: #B45309; }
.hp-badge-ok    { background: #EDFCF2; color: #0D7A3E; }
.hp-badge-alert { background: #FEF2F2; color: #991B1B; }
.hp-badge-info  { background: var(--accent-light); color: var(--accent); }

.hp-footer {
  border-top: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-footer-text { font-size: 0.72rem; color: var(--text-4); }
.hp-footer-date { font-size: 0.72rem; color: var(--text-4); font-weight: 500; }

/* ─ VIDEO / DEMO SHELL ───────────────────── */
.live-demo-shell {
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
}

/* ─ LOGOS ────────────────────────────────── */
#logos {
  padding: 2.25rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.logos-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* ─ PROBLEM ──────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.problem-cell {
  background: var(--white);
  padding: 2.25rem 2.5rem;
  transition: background 0.15s;
}

.problem-cell:hover { background: var(--surface); }

/* ─ SOLUTION ─────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.solution-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ─ SECURITY GRID (PREMIUM) ───────────────── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sec-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.6rem;
  transition: all 0.2s ease;
}

.sec-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.sec-head h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.sec-item p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ─ HOW IT WORKS ─────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

/* ─ COMPARISON TABLE ─────────────────────── */
.diff-wrap { position: relative; }

.diff-wrap::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  height: 100%; width: 40px;
  pointer-events: none;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.table-scroll table {
  min-width: 700px;
  border-collapse: collapse;
}

/* ─ CTA ──────────────────────────────────── */
#cta {
  background: var(--text);
  padding: 9rem 0;
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#cta h2 { color: var(--white); }

.cta-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─ FOOTER ───────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-4);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-3); }

/* ─ MOBILE MENU ──────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-cta {
  margin-top: 10px;
  padding: 14px;
  background: var(--text);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open { overflow: hidden; }

/* ─ RESPONSIVE ───────────────────────────── */
@media (max-width: 860px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .problem-grid,
  .solution-grid,
  .solution-features,
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links { display: none; }

  nav {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

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

  .nav-actions {
    display: none;
  }

  .hero-inner {
    display: block;
    width: 100%;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #hero {
    padding-top: 7rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-left h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-sub { font-size: 0.95rem; }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-ctas a,
  .hero-ctas button { width: 100%; }

  /* Hide chips on mobile to keep hero clean */
  .hero-props { display: none; }

  .hero-cursors { display: none; }

  .hero-preview { margin-top: 24px; }

  .hero-prop-chip { width: 100%; }

  .arch-row { flex-direction: column; gap: 16px; }

  .output-grid,
  .who-grid,
  .sec-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .sec-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sec-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

  .cta-btns {
    flex-direction: column;
    gap: 12px;
  }

  footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .table-scroll,
  .table-wrap { overflow-x: auto; }

  .table-scroll table,
  .table-wrap table { min-width: 720px; }
}

/* ─ SECURITY SECTION ───────────────────────── */
#security {
  padding: 7rem 0;
  background: var(--surface);
}

#security .section-lede {
  max-width: 640px;
}