/* Cantry Ai Studio — hero page preview.
 * Design language ported from cantry.ai style.css + the app's cz-* set. */

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e11;
  --card: #161619;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.055);
  --text: #f5f5f6;
  --muted: #9a9aa3;
  --faint: #66666e;
  --lime: #cdff2e;
  --font: "Inter", -apple-system, system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ===== page backdrop (cantry.ai .bg-stage: drifting lime glow + masked grid) ===== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.bg-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90vw;
  height: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(205, 255, 46, 0.1), transparent 60%);
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-46%) translateY(4%); }
}
.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

/* ===== topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px;
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  position: relative;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(205, 255, 46, 0.45);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.06; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.13em;
  font-size: 15px;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}
.topnav a { transition: color 0.15s; }
.topnav a:hover { color: var(--text); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.pill-logo {
  height: 15px;
  width: auto;
  display: block;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (max-width: 720px) {
  .topnav a { display: none; }
}

/* ===== hero ===== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 56px;
  text-align: center;
  overflow: visible;
}
.hero-vid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(10, 10, 11, 0.35), rgba(10, 10, 11, 0.82) 78%);
}
.hero > *:not(.hero-vid) { position: relative; z-index: 2; }
.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--lime);
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 62ch;
  margin: 0 auto;
}
.proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 8px;
}
.chip {
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-cta .btn-primary {
  font-size: 16px;
  padding: 15px 34px;
}
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--lime);
  color: var(--bg);
  box-shadow: 0 0 0 rgba(205, 255, 46, 0.5);
}
.btn-primary:hover { box-shadow: 0 6px 26px rgba(205, 255, 46, 0.35); }
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
.hero-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ===== sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 8px;
}
.section-head { text-align: center; margin-bottom: 34px; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.015em;
  margin-top: 10px;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
  margin: 10px auto 0;
}

/* pipeline step cards */
.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.step-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(22, 22, 27, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.22s;
}
.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 255, 46, 0.5);
}
.step-card .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
}
.step-card .nm { font-size: 13.5px; color: var(--text); }
.step-card .bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46464e;
  margin-left: auto;
}
.step-card.live .bdot {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* results tiles */
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 860px) {
  .show-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .show-grid { grid-template-columns: 1fr; }
}
.show-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e11;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.22s, box-shadow 0.22s;
}
.show-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(205, 255, 46, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.show-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 40%, rgba(205, 255, 46, 0.05), rgba(0, 0, 0, 0.3));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.show-label {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* faq — item look, open chevron and hover ported 1:1 from cantry.ai */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--lime); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.faq-item p {
  color: var(--muted);
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 70ch;
}

/* footer */
.footer {
  max-width: var(--maxw);
  margin: 64px auto 0;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer .note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}
