/* strandsagents Cloud demo site. No build step and no external assets. */

:root {
  --bg: #05060b;
  --text: #e8ebf5;
  --muted: #9aa3bd;
  --line: rgba(255, 255, 255, 0.08);
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff7ab6;
  --ok: #34d399;
  --radius: 18px;
  --max: 1160px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), 92%);
  margin-inline: auto;
}

section {
  position: relative;
  padding: 120px 0;
}

.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;
}

/* ---------- Background ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.bg-orbs span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-orbs span:nth-child(1) {
  top: -160px;
  left: -120px;
  background: var(--accent-1);
}

.bg-orbs span:nth-child(2) {
  top: 30vh;
  right: -200px;
  background: var(--accent-2);
  opacity: 0.3;
  animation-delay: -7s;
}

.bg-orbs span:nth-child(3) {
  bottom: -220px;
  left: 30%;
  background: var(--accent-3);
  opacity: 0.22;
  animation-delay: -14s;
}

@keyframes drift {
  to {
    transform: translate3d(80px, 60px, 0) scale(1.15);
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), 92%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 13, 22, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(11, 13, 22, 0.88);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo strong {
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 200deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.billing-toggle input:focus-visible + .switch {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn-primary {
  color: #06070d;
  background: linear-gradient(135deg, #ffffff, #c7d2fe);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

/* ---------- Shared pieces ---------- */

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1) 45%, var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.kicker {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 0 80px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
}

.hero h1 {
  max-width: 16ch;
  margin-top: 26px;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* Terminal */

.terminal {
  width: min(760px, 100%);
  margin-top: 70px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 20, 0.85);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(124, 92, 255, 0.15);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.term-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.term-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b3f52;
}

.term-bar span:nth-child(1) {
  background: #ff5f57;
}

.term-bar span:nth-child(2) {
  background: #febc2e;
}

.term-bar span:nth-child(3) {
  background: #28c840;
}

.term-body {
  min-height: 250px;
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.9;
  color: #cbd5e1;
}

.term-body .line {
  opacity: 0;
  animation: line-in 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.prompt {
  color: var(--ok);
}

.cmd {
  color: #f1f5f9;
}

.out {
  color: var(--muted);
}

.ok {
  color: var(--ok);
}

.url {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Stats ---------- */

.stats {
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.stat {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Cards and features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s;
  --mx: 50%;
  --my: 50%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

/* Region dots on the wide card */

.region-dots {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}

.region-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.25);
  animation: region-glow 3s ease-in-out infinite;
}

@keyframes region-glow {
  50% {
    background: var(--accent-2);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  }
}

/* Autoscaling bars on the small card */

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 22px;
}

.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1));
  opacity: 0.8;
  animation: bar-pulse 2.4s ease-in-out infinite alternate;
}

.bars span:nth-child(even) {
  animation-delay: -1.2s;
}

@keyframes bar-pulse {
  from {
    transform: scaleY(0.6);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  padding: 34px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.step-num {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.chip {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ---------- Docs / code ---------- */

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

.docs-title {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.docs-lead {
  margin-top: 18px;
  color: var(--muted);
}

.checks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}

.code-block {
  overflow-x: auto;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0a0c14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
}

.tk-kw {
  color: #c4b5fd;
}

.tk-fn {
  color: #67e8f9;
}

.tk-str {
  color: #86efac;
}

.tk-num {
  color: #fbbf24;
}

.tk-com {
  color: #64748b;
  font-style: italic;
}

/* ---------- Pricing ---------- */

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -30px 0 50px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s;
}

.billing-toggle input:checked + .switch {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.billing-toggle input:checked + .switch::after {
  transform: translateX(26px);
}

.save {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--ok);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
}

.plan.featured {
  top: -12px;
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.24), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 80px rgba(124, 92, 255, 0.25);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #06070d;
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin: 22px 0 4px;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan ul li::before {
  content: "✓  ";
  color: var(--ok);
  font-weight: 800;
}

.plan .btn {
  margin-top: auto;
}

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

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 90px 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-band p {
  margin-top: 16px;
  color: var(--muted);
}

.cta {
  padding-bottom: 80px;
}

/* ---------- Footer ---------- */

footer {
  padding: 56px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-links {
  display: flex;
  gap: 22px;
}

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

.disclaimer {
  flex-basis: 100%;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s;
  transition-delay: var(--delay, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .span-4 {
    grid-column: span 2;
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .code-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .plan.featured {
    top: 0;
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: auto;
  }

  section {
    padding: 90px 0;
  }

  .region-dots {
    grid-template-columns: repeat(10, 1fr);
  }

  .cta-band {
    padding: 64px 22px;
  }
}

@media (max-width: 420px) {
  .term-body {
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
