/* AgentPOS landing: self-contained stylesheet, no external assets. */

:root {
  --bg: #0b1020;
  --surface: #0d1428;
  --surface-2: #101a33;
  --line: rgba(120, 150, 220, 0.15);
  --grid-line: rgba(120, 150, 220, 0.06);
  --heading: #f4f7ff;
  --text: #9fb0d0;
  --muted: #6d7ea6;
  --accent: #7aa2ff;
  --money: #26d0a0;
  --radius: 14px;
  --maxw: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--heading);
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.brand span {
  color: var(--accent);
}
.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--text);
}
.nav-links a:hover {
  color: var(--heading);
  text-decoration: none;
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: var(--heading) !important;
  font-weight: 600;
}
.lang-toggle:hover {
  border-color: var(--accent);
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(77, 132, 255, 0.18), transparent 60%),
    radial-gradient(50rem 26rem at 0% 110%, rgba(38, 208, 160, 0.1), transparent 60%),
    linear-gradient(150deg, var(--surface) 0%, var(--bg) 55%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 24ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--heading);
  max-width: 42rem;
  margin: 0 0 0.9rem;
}

.hero .sublede {
  color: var(--text);
  max-width: 44rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    filter 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #0b1020;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--heading);
  background: var(--surface-2);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.85rem;
}
.badges li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: var(--text);
  background: var(--surface-2);
}

/* ---------- flow diagram ---------- */

.flow {
  margin: 2.5rem 0 0;
  overflow-x: auto;
}
.flow svg {
  display: block;
  width: 100%;
  max-width: 46rem;
  height: auto;
}
.flow .box {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1.5;
}
.flow .box-accent {
  stroke: var(--money);
}
.flow .label {
  fill: var(--heading);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
}
.flow .sub {
  fill: var(--muted);
  font-size: 11.5px;
  font-family: inherit;
}
.flow .wire {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  marker-end: url(#arrow);
}
.flow .wire-note {
  fill: var(--accent);
  font-size: 11.5px;
  font-family: inherit;
}

/* ---------- sections ---------- */

section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type {
  border-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lede {
  color: var(--text);
  max-width: 46rem;
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
}
.card p + p {
  margin-top: 0.6rem;
}

/* ---------- the three offerings ---------- */

.offer .offer-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.offer .offer-head h2 {
  margin-bottom: 0.4rem;
}
.offer .offer-head .section-lede {
  margin-bottom: 0;
}

.icon-tile {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
  margin-top: 0.35rem;
}
.icon-tile svg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-tile.money {
  color: var(--money);
}

.offer-alt {
  background:
    radial-gradient(50rem 24rem at 100% 0%, rgba(77, 132, 255, 0.07), transparent 60%),
    var(--surface);
}

.offer .cta-row {
  margin: 2rem 0 0;
}

@media (max-width: 640px) {
  .offer .offer-head {
    flex-direction: column;
    gap: 0.75rem;
  }
  .icon-tile {
    margin-top: 0;
  }
}

/* ---------- plan cards (open source vs cloud) ---------- */

.plan-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.96rem;
}
.plan-card li {
  margin-bottom: 0.35rem;
}
.plan-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}
.plan-tag.free {
  background: rgba(38, 208, 160, 0.12);
  color: var(--money);
}
.plan-tag.waitlist {
  background: rgba(122, 162, 255, 0.12);
  color: var(--accent);
}

/* ---------- proof ---------- */

.proof-tx {
  border-left: 3px solid var(--money);
}
.tx-hash {
  display: block;
  margin-top: 0.6rem;
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--money);
}

/* ---------- waitlist form ---------- */

.waitlist-box {
  margin-top: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 34rem;
}
.waitlist-box h3 {
  margin: 0 0 0.4rem;
}
.waitlist-box .hint {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}
.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--heading);
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Honeypot: hidden from humans, present for bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4rem;
}
.form-status.ok {
  color: var(--money);
}
.form-status.err {
  color: var(--accent);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer strong {
  color: var(--text);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--heading);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
