/* ==========================================================================
   EXCEED AI — site.css
   Dark, technical, green-accented marketing site for deploy/site.
   No external fonts or frameworks.
   ========================================================================== */

:root {
  --bg: #050907;
  --bg-soft: #07100b;
  --panel: #0a1310;
  --panel-2: #0c1712;
  --ink: #f2f5ef;
  --muted: #9db1a4;
  --muted-2: #6f8478;
  --line: rgba(160, 220, 185, 0.14);
  --line-strong: rgba(160, 255, 200, 0.26);
  --green: #4be381;
  --green-2: #8dffb5;
  --green-ink: #03110a;
  --cream: #f2e8d6;
  --gold: #d9b26a;
  --danger: #ff7a6b;
  --max: 1180px;
  --nav-h: 76px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 78% 12%, rgba(46, 160, 96, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 80%, rgba(72, 224, 129, 0.05), transparent 70%);
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(75, 227, 129, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--green-ink);
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--green-2);
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(75, 227, 129, 0.6);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 227, 129, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(75, 227, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 227, 129, 0); }
}

.accent {
  color: var(--green-2);
  text-shadow: 0 0 34px rgba(75, 227, 129, 0.25);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-2);
  border-bottom: 1px solid rgba(141, 255, 181, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: #fff;
  border-color: var(--green);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: var(--green);
  color: var(--green-ink);
  box-shadow:
    0 0 0 1px rgba(75, 227, 129, 0.35),
    0 10px 32px -12px rgba(75, 227, 129, 0.65);
}

.btn-primary:hover {
  background: var(--green-2);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(75, 227, 129, 0.5);
  background: rgba(75, 227, 129, 0.07);
  transform: translateY(-1px);
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 14.5px;
}

.dl-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dl-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 500;
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 9, 7, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  padding: 4px;
  background:
    radial-gradient(circle at 50% 38%, rgba(242, 232, 214, 0.16), transparent 72%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 232, 214, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cream);
}

.brand-accent {
  color: var(--green-2);
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* product dropdown */

.menu {
  position: relative;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-trigger:hover,
.menu.is-open .menu-trigger {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.chev {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.menu.is-open .chev {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 306px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 17, 12, 0.97);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.menu.is-open .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 11px;
  transition: background 0.2s ease;
}

.menu-item:hover {
  background: rgba(75, 227, 129, 0.07);
}

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--green-2);
  border: 1px solid rgba(75, 227, 129, 0.22);
  background: rgba(75, 227, 129, 0.06);
  flex: none;
}

.menu-icon svg {
  width: 17px;
  height: 17px;
}

.menu-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.menu-copy strong {
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.menu-copy small {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.menu-out {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  margin-left: auto;
  flex: none;
}

/* mobile nav */

.nav-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
}

.nav-burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.nav-burger span:last-child {
  transform: translateY(4px);
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-panel {
  display: none;
  padding: 10px 24px 22px;
  background: rgba(5, 9, 7, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mobile-panel[hidden] {
  display: none !important;
}

.mobile-panel > a {
  display: block;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(160, 220, 185, 0.08);
}

.mobile-panel > a:hover {
  color: var(--ink);
}

.mobile-auth {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mobile-auth .btn {
  flex: 1;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 74px) 24px 84px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: brightness(1.16) saturate(1.08);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 9, 7, 0.96) 0%, rgba(5, 9, 7, 0.8) 38%, rgba(5, 9, 7, 0.22) 68%, rgba(5, 9, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 9, 7, 0.78) 0%, transparent 26%, transparent 60%, rgba(5, 9, 7, 0.94) 100%);
}

.hero-frame {
  position: absolute;
  inset: 104px 34px 58px;
  z-index: 2;
  pointer-events: none;
}

.hero-frame i {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0 solid rgba(140, 255, 180, 0.34);
}

.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero h1,
.agent-hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  margin-top: 24px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--green);
  transform: rotate(45deg);
  flex: none;
}

/* terminal card */

.hero-terminal {
  border: 1px solid rgba(140, 255, 180, 0.18);
  border-radius: 16px;
  background: rgba(6, 13, 9, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: rise 0.9s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.term-top {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(160, 220, 185, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.term-lights {
  display: flex;
  gap: 5px;
}

.term-lights i,
.win-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.term-lights i:first-child,
.win-lights i:first-child { background: rgba(255, 122, 107, 0.6); }
.term-lights i:nth-child(2),
.win-lights i:nth-child(2) { background: rgba(217, 178, 106, 0.6); }
.term-lights i:nth-child(3),
.win-lights i:nth-child(3) { background: rgba(75, 227, 129, 0.6); }

.term-title {
  color: var(--muted);
}

.term-live {
  margin-left: auto;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.term-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  color: #cfe3d6;
  overflow-x: auto;
}

.term-body code {
  font-family: inherit;
}

.t-muted { color: var(--muted-2); }
.t-str { color: var(--green-2); }
.t-ok { color: var(--green); }
.t-cursor { color: var(--green); animation: blink 1.1s steps(1) infinite; }

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

.term-foot {
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(160, 220, 185, 0.08);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-base {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
  margin: 64px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.hero-base-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(160, 220, 185, 0.25), transparent);
}

/* ---------- strip ---------- */

.strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 11, 0.5);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.strip-models {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.strip-models span {
  color: rgba(242, 245, 239, 0.72);
  letter-spacing: 0.04em;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 112px 24px;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(20, 46, 32, 0.22), transparent);
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-lede {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.section > .section-head {
  max-width: 820px;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
  margin-right: auto;
}

.section > .card-grid,
.section > .steps,
.section > .quick-grid,
.section > .quick-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    rgba(10, 19, 16, 0.56);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  border-color: rgba(75, 227, 129, 0.34);
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(75, 227, 129, 0.05), transparent 45%),
    rgba(10, 19, 16, 0.72);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(75, 227, 129, 0.24);
  background: rgba(75, 227, 129, 0.06);
  color: var(--green-2);
  margin-bottom: 20px;
}

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

.card h3 {
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* steps */

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

.step {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.step-no,
.feature-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green);
}

.step h3,
.quick-step h3 {
  margin-top: 16px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.step p,
.quick-step p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.step .text-link {
  margin-top: 18px;
}

/* CTA band */

.cta-band {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 30px auto 120px;
  padding: 74px 40px 78px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(75, 227, 129, 0.05), transparent 60%),
    rgba(8, 17, 12, 0.72);
}

.cta-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 620px;
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(75, 227, 129, 0.2), transparent 68%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  margin-top: 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.cta-band p {
  position: relative;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.cta-actions {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 7, 0.85);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px 46px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 330px;
  font-size: 13px;
  color: var(--muted);
}

.footer-note {
  color: var(--muted-2) !important;
  font-size: 11.5px !important;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-cols h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-cols a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: var(--green-2);
}

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.footer-mono {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

/* ---------- agent page hero ---------- */

.agent-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 24px 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.agent-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 72% 30%, rgba(41, 160, 95, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 10%, rgba(75, 227, 129, 0.05), transparent 70%);
}

.agent-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 255, 180, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 180, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 65% at 62% 40%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 62% 40%, #000 0%, transparent 76%);
}

.agent-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.02fr);
  gap: 56px;
  align-items: center;
}

.agent-hero-copy .lede {
  max-width: 520px;
}

.download-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.download-note a {
  color: var(--green-2);
  border-bottom: 1px solid rgba(141, 255, 181, 0.3);
  margin-left: 4px;
  white-space: nowrap;
}

/* faux app window */

.window {
  border: 1px solid rgba(160, 255, 200, 0.2);
  border-radius: 16px;
  background: #070e0b;
  overflow: hidden;
  box-shadow:
    0 50px 130px -36px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 90px -30px rgba(75, 227, 129, 0.22);
  transform: perspective(1400px) rotateY(-2.4deg) rotateX(0.8deg);
  transform-origin: 70% 50%;
}

.win-bar {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(160, 220, 185, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.win-lights {
  display: flex;
  gap: 5px;
}

.win-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(75, 227, 129, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  flex: none;
}

.win-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 432px;
}

.win-side {
  padding: 14px 10px;
  border-right: 1px solid rgba(160, 220, 185, 0.08);
  background: rgba(255, 255, 255, 0.012);
}

.win-side-head {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  padding: 8px 8px 6px;
}

.win-session {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
}

.win-session.is-active {
  background: rgba(75, 227, 129, 0.08);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--green);
}

.win-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

.win-file {
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.win-msg {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(75, 227, 129, 0.2);
  background: rgba(75, 227, 129, 0.07);
  font-size: 11.5px;
  color: #d9ebe0;
}

.win-plan,
.win-diff {
  border: 1px solid rgba(160, 220, 185, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.win-plan {
  padding: 10px 12px 8px;
}

.win-plan-head,
.win-diff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  padding-bottom: 7px;
}

.win-plan-head span {
  color: var(--green);
}

.win-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4.5px 0;
  font-size: 10.5px;
  color: var(--muted);
}

.win-step > span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(160, 220, 185, 0.22);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--muted-2);
  flex: none;
}

.win-step.is-done {
  color: var(--muted-2);
  opacity: 0.72;
}

.win-step.is-done > span {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
}

.win-step.is-active {
  color: var(--ink);
}

.win-step.is-active > span {
  border-color: var(--green);
  color: var(--green);
}

.win-diff-head {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(160, 220, 185, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.win-diff pre {
  margin: 0;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.75;
  overflow-x: auto;
}

.dl { color: #ff8f82; background: rgba(255, 122, 107, 0.06); display: block; }
.ad { color: #6df0a0; background: rgba(75, 227, 129, 0.06); display: block; }
.ctx { color: var(--muted-2); display: block; }

.win-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
  border-top: 1px solid rgba(160, 220, 185, 0.08);
  padding-top: 10px;
}

.win-status-right {
  margin-left: auto;
}

.win-spin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(75, 227, 129, 0.25);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
  flex: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- agent features ---------- */

.agent-features {
  position: relative;
  z-index: 1;
  padding: 112px 24px 40px;
}

.agent-features .section-head {
  max-width: 820px;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
  margin-right: auto;
}

.feature-row {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  padding: 58px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row.is-reverse .feature-copy {
  order: 2;
}

.feature-row.is-reverse .feature-visual {
  order: 1;
}

.feature-copy h3 {
  margin-top: 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-copy p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 440px;
}

.feature-list {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--green);
  transform: rotate(45deg);
  opacity: 0.75;
}

.mini-panel {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(8, 17, 12, 0.72);
  padding: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9);
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(160, 220, 185, 0.09);
}

.mini-head span {
  color: var(--green);
  letter-spacing: 0.08em;
}

.mini-panel .win-step {
  font-size: 11.5px;
  padding: 6px 0;
}

.mini-code {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.9;
  overflow-x: auto;
}

.mini-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(160, 220, 185, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.tool-row {
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(160, 220, 185, 0.06);
  font-family: var(--mono);
  font-size: 10px;
}

.tool-time { color: var(--muted-2); }
.tool-name { color: var(--green-2); }
.tool-res { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-ok { color: var(--green); text-align: right; }

.trace-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 9px 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.trace-row i {
  display: block;
  height: 3px;
  width: var(--w, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 227, 129, 0.65), rgba(75, 227, 129, 0.12));
}

.trace-row em {
  font-style: normal;
  color: var(--muted-2);
  text-align: right;
}

/* ---------- quick start ---------- */

.agent-quick {
  padding-top: 80px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 48px;
}

.quick-step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quick-note {
  margin-top: 46px;
  padding: 16px 20px;
  border: 1px dashed rgba(75, 227, 129, 0.28);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(75, 227, 129, 0.03);
}

.quick-note .text-link {
  margin-left: auto;
}

/* ---------- reveal ---------- */

/* Progressive enhancement: content is visible without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-terminal {
    max-width: 620px;
  }

  .agent-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .window {
    transform: none;
    max-width: 720px;
  }

  .feature-row,
  .feature-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-row.is-reverse .feature-copy,
  .feature-row.is-reverse .feature-visual {
    order: initial;
  }

  .feature-copy p {
    max-width: 560px;
  }

  .mini-panel {
    max-width: 620px;
  }
}

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

  .nav-burger {
    display: block;
  }

  .mobile-panel:not([hidden]) {
    display: block;
  }

  .nav-inner {
    gap: 18px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .quick-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .strip {
    flex-direction: column;
    gap: 10px;
  }
}

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

  .nav-login {
    height: 38px;
    padding: 0 14px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 54px);
  }

  .hero-frame {
    display: none;
  }

  .hero-base {
    display: none;
  }

  .hero h1,
  .agent-hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-terminal {
    animation: none;
  }

  .term-body {
    font-size: 10px;
    padding: 14px;
  }

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

  .cta-band {
    margin: 10px 20px 90px;
    padding: 54px 24px 58px;
  }

  .section,
  .agent-features {
    padding-left: 20px;
    padding-right: 20px;
  }

  .agent-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .win-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .win-side {
    display: none;
  }

  .download-actions .btn {
    flex: 1 1 auto;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 13px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-cta .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-points {
    gap: 8px 16px;
  }

  .window {
    border-radius: 12px;
  }

  .win-main {
    padding: 12px;
  }

  .win-diff pre,
  .mini-code {
    font-size: 9px;
  }
}

.no-anim .hero-copy > *,
.no-anim .hero-terminal {
  animation: none;
}

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

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

  .hero-copy > *,
  .hero-terminal {
    animation: none;
  }

  .pulse-dot,
  .win-spin,
  .t-cursor {
    animation: none;
  }

  .hero {
    background: url("/site/assets/hero-poster.jpg") center / cover no-repeat;
  }

  .hero-gif {
    display: none;
  }
}
