/* Hopstec Guardian — public landing page */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 600px at 50% -12%, rgba(45, 212, 191, 0.08), transparent 62%),
    radial-gradient(900px 520px at 85% 55%, rgba(99, 102, 241, 0.07), transparent 60%),
    #060b14;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.landing-nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 50;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.landing-brand-title {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}

.landing-brand-by {
  color: var(--c-muted);
  font-weight: 600;
  font-size: 12px;
}

.landing-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  margin-left: auto;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
}
.landing-nav-links a {
  color: #94a3b8;
  text-decoration: none;
}
.landing-nav-links a:hover { color: #e2e8f0; }

.landing-btn-signin {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #07111e;
  margin-left: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.landing-btn-signin--mobile { display: none; }

.landing-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(4px);
  z-index: 40;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.landing-hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 32px;
  box-sizing: border-box;
  text-align: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.landing-h1 {
  font-size: clamp(1.85rem, 6vw, 3.5rem);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 800px;
  text-wrap: balance;
}

.landing-gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #6366f1 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-lead {
  color: #8296b3;
  font-size: clamp(15px, 2.5vw, 17px);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.6;
  text-wrap: pretty;
  padding: 0 4px;
}

.landing-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  box-shadow: 0 6px 28px rgba(45, 212, 191, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.45);
}

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.landing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── Agent orbit + animations ────────────────────────────────────────────── */

@keyframes landing-orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes landing-orbit-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes landing-agent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes landing-ring-glow {
  0%, 100% { opacity: 0.55; filter: blur(0); }
  50% { opacity: 1; filter: blur(0.5px); }
}

@keyframes landing-glow-pulse-teal {
  0%, 100% { box-shadow: 0 0 40px rgba(45, 212, 191, 0.22); }
  50% { box-shadow: 0 0 64px rgba(45, 212, 191, 0.42); }
}

@keyframes landing-glow-pulse-amber {
  0%, 100% { box-shadow: 0 0 48px rgba(245, 158, 11, 0.28); }
  50% { box-shadow: 0 0 78px rgba(245, 158, 11, 0.48); }
}

@keyframes landing-glow-pulse-indigo {
  0%, 100% { box-shadow: 0 0 48px rgba(99, 102, 241, 0.28); }
  50% { box-shadow: 0 0 78px rgba(99, 102, 241, 0.48); }
}

@keyframes landing-glow-pulse-violet {
  0%, 100% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.24); }
  50% { box-shadow: 0 0 64px rgba(139, 92, 246, 0.44); }
}

.landing-orbit {
  position: relative;
  height: clamp(320px, 52vw, 380px);
  margin: 36px auto 0;
  max-width: 900px;
  width: 100%;
}

.landing-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-orbit-ring--outer {
  width: min(620px, 92vw);
  height: min(340px, 50vw);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-orbit-ring--inner {
  width: min(400px, 72vw);
  height: min(220px, 40vw);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.landing-orbit-ring--teal {
  width: min(520px, 88vw);
  height: min(280px, 44vw);
  border: 1px solid rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.06);
}

.landing-orbit-ring--amber {
  width: min(460px, 82vw);
  height: min(240px, 38vw);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.05);
}

.landing-orbit-ring--indigo {
  width: min(560px, 90vw);
  height: min(300px, 46vw);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 44px rgba(99, 102, 241, 0.05);
}

.landing-orbit-ring--spin {
  animation: landing-orbit-spin 48s linear infinite, landing-ring-glow 6s ease-in-out infinite;
}

.landing-orbit-ring--spin-reverse {
  animation: landing-orbit-spin-reverse 36s linear infinite, landing-ring-glow 5s ease-in-out infinite 1s;
}

.landing-orbit-ring--spin-slow {
  animation: landing-orbit-spin 64s linear infinite;
}

.landing-orbit-ring--spin-reverse-slow {
  animation: landing-orbit-spin-reverse 52s linear infinite;
}

.landing-orbit-ring--spin-slower {
  animation: landing-orbit-spin 80s linear infinite;
  opacity: 0.7;
}

.landing-orbit-trio {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(16px, 5vw, 56px);
  align-items: flex-end;
  width: min(100%, 720px);
  justify-content: center;
  flex-wrap: nowrap;
}

.landing-agent-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: landing-agent-float 5s ease-in-out infinite;
  animation-delay: var(--agent-delay, 0s);
  z-index: 2;
}

.landing-agent-orbit--center { margin-bottom: clamp(12px, 3vw, 34px); }

.landing-agent-label { text-align: center; }

.landing-agent-photo-ring {
  border-radius: 50%;
  padding: 3px;
  transition: transform 0.3s ease;
}
.landing-agent-photo-ring--anim:hover {
  transform: scale(1.04);
}

.landing-agent-photo-ring--teal {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.6), rgba(45, 212, 191, 0.08));
  animation: landing-glow-pulse-teal 4s ease-in-out infinite;
}
.landing-agent-photo-ring--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.65), rgba(245, 158, 11, 0.08));
  animation: landing-glow-pulse-amber 4.5s ease-in-out infinite 0.5s;
}
.landing-agent-photo-ring--indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.65), rgba(99, 102, 241, 0.08));
  animation: landing-glow-pulse-indigo 4.2s ease-in-out infinite 1s;
}
.landing-agent-photo-ring--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.08));
  animation: landing-glow-pulse-violet 4.8s ease-in-out infinite 1.5s;
}

.landing-agent-photo {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.landing-agent-photo--sm {
  width: clamp(72px, 18vw, 126px);
  height: clamp(72px, 18vw, 126px);
}
.landing-agent-photo--lg {
  width: clamp(88px, 22vw, 152px);
  height: clamp(88px, 22vw, 152px);
}

.landing-agent-name {
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
}

.landing-agent-role {
  font-size: clamp(10px, 2.5vw, 12px);
  line-height: 1.3;
  max-width: 120px;
  margin: 0 auto;
}
.landing-agent-role--teal { color: #5eead4; }
.landing-agent-role--amber { color: #fbbf24; }
.landing-agent-role--indigo { color: #a5b4fc; }
.landing-agent-role--violet { color: #c4b5fd; }

/* ── Sections ────────────────────────────────────────────────────────────── */

.landing-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
  box-sizing: border-box;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.landing-card {
  background: rgba(17, 30, 49, 0.6);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-card:hover {
  transform: translateY(-2px);
}
.landing-card--teal { border: 1px solid rgba(45, 212, 191, 0.14); }
.landing-card--amber { border: 1px solid rgba(245, 158, 11, 0.18); }
.landing-card--indigo { border: 1px solid rgba(99, 102, 241, 0.16); }
.landing-card--violet { border: 1px solid rgba(139, 92, 246, 0.16); }

.landing-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-card-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.landing-cap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #a9bad2;
}

.landing-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 20px;
}

.landing-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.landing-step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.landing-mock-chat {
  background: rgba(13, 23, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.landing-footer {
  margin-top: auto;
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .landing-how { grid-template-columns: 1fr; }
  .landing-nav-spacer { display: none; }
}

@media (max-width: 768px) {
  .landing-nav-toggle { display: inline-flex; }
  .landing-btn-signin--desktop { display: none; }

  .landing-nav-links {
    display: none;
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 20, 36, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 45;
  }

  .landing-nav-links a {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 15px;
  }
  .landing-nav-links a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .landing-nav-open .landing-nav-links { display: flex; }
  .landing-nav-open .landing-nav-backdrop { display: block; }

  .landing-btn-signin--mobile {
    display: inline-flex;
    justify-content: center;
    margin: 8px 0 0;
    padding: 13px 18px;
  }

  .landing-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-btn-primary,
  .landing-btn-secondary {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Agent grid: Orion featured on top, 2×2 below */
  .landing-orbit {
    height: auto;
    min-height: 0;
    margin-top: 28px;
    padding-bottom: 8px;
  }

  .landing-orbit-trio {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-top: 120px;
  }

  .landing-orbit-ring {
    top: 100px;
  }

  .landing-agent-orbit--center {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0;
  }

  .landing-agent-orbit--iris {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .landing-agent-orbit--center .landing-agent-photo--lg {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 480px) {
  .landing-hero { padding-top: 32px; }
  .landing-orbit-trio { padding-top: 100px; max-width: 300px; }
  .landing-agent-role { max-width: 100px; font-size: 10px; }
}
