/* armadai landing — codex-style dark marketing page */

:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --hairline: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: scale(1.03); }
.btn-primary { background: #fff; color: #000; }
.btn-ghost { border-color: var(--hairline); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-small { padding: 8px 18px; font-size: 14px; }

/* command pill (click to copy) */
.cmd-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.cmd-pill:hover { background: rgba(255, 255, 255, 0.12); }
.cmd-pill { min-width: 0; }
.cmd-pill .cmd-prompt { color: var(--muted); }
.cmd-pill .cmd-text { overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; text-align: left; }
.cmd-pill .cmd-copy { color: var(--muted); font-size: 15px; }
.cmd-pill.copied { border-color: rgba(120, 255, 170, 0.5); }
.cmd-pill.copied .cmd-copy { color: #7dffa9; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 160px 24px 0;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-space.jpg") center 30% / cover no-repeat;
  z-index: -1;
}
/* fade space image into black page */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.42) 30%, rgba(0,0,0,0.72) 72%, #000 100%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* animated logo video, black edges blended away into the starfield.
   screen-blend kills the black bg; the mask holds the center content
   (mark + wordmark + tagline) solid and melts everything around it. */
.hero-logo-video {
  margin: -28px auto -46px;
  line-height: 0;
}
.hero-logo-video video {
  width: min(560px, 92vw);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 57% 42% at 50% 50%, #000 70%, transparent 88%);
  mask-image: radial-gradient(ellipse 57% 42% at 50% 50%, #000 70%, transparent 88%);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-agents {
  margin: 58px auto 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.hero-agents .agents-lead {
  display: block;
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
}

/* hero screenshot */
.hero-shot {
  max-width: 1080px;
  margin: 90px auto 0;
  padding-bottom: 40px;
}
.window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #101012;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.window-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: #1a1a1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window img { display: block; width: 100%; }

/* ---------- sections ---------- */
.section-title {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 110px 24px 0;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
  padding: 0 24px;
}

/* feature blocks */
.feature {
  max-width: 1150px;
  margin: 0 auto;
  padding: 90px 24px 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 56px;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }
.feature-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.feature-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
}
.feature-copy p + p {
  margin-top: 12px;
  font-size: 15px;
}
.feature-copy em { color: var(--text); font-style: italic; }

/* gradient frame w/ floating mock */
.frame {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}
.frame .shot {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
/* portrait screenshots (context menu) stay height-capped */
.frame .shot-tall {
  width: auto;
  max-width: 100%;
  max-height: 480px;
}
/* two overlapping agent-tile screenshots */
.duo {
  position: relative;
  width: 100%;
  padding-bottom: 34px;
}
.duo .back { width: 84%; border-color: rgba(110, 220, 180, 0.45); }
.duo .front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84%;
  border-color: rgba(168, 150, 255, 0.5);
}

/* ---------- everywhere cards ---------- */
.everywhere { padding-bottom: 40px; }
.cards {
  max-width: 1150px;
  margin: 60px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
  display: flex;
  flex-direction: column;
}
.card-art { height: 170px; background-size: cover; background-position: top center; }
.card h4 {
  font-size: 19px;
  font-weight: 600;
  padding: 22px 22px 14px;
}
.card .beta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 6px;
}
.card-sub {
  margin: 0 22px 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- outro ---------- */
.outro {
  position: relative;
  margin-top: 110px;
  padding: 170px 24px;
  text-align: center;
  overflow: hidden;
}
.outro-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-space.jpg") center 75% / cover no-repeat;
  z-index: -1;
}
.outro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.45) 70%, #000 100%);
}
.outro h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.outro p { margin-top: 14px; color: rgba(255, 255, 255, 0.8); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-left: auto; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding-top: 70px; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
  .feature-copy { text-align: center; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-logo-video { margin: -14px auto -30px; }
  .hero-actions { padding: 0 8px; width: 100%; }
  .hero-actions .cmd-pill { width: 100%; max-width: 420px; font-size: 12px; }
  .hero-agents { margin-top: 42px; padding: 0 14px; font-size: 13.5px; }
  .hero-agents .agents-lead { font-size: 17px; }
  .hero-shot { margin-top: 60px; }
  .frame { padding: 24px; min-height: 300px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-copy { margin-left: 0; }
}
