/* ─── TOKENS ─── */
:root {
  --bg: #f4f1ea;
  --surface: #fcfaf5;
  --surface-strong: #f1ece1;
  --surface-hover: #fff;
  --ink: #1c1914;
  --muted: #5f574a;
  --subtle: #8a7f6f;
  --line: #d7cebe;
  --line-strong: #b7a589;
  --accent: #d9572b;
  --accent-strong: #ab411f;
  --accent-glow: rgba(217, 87, 43, 0.12);
  --focus: #0a7d74;
  --focus-soft: rgba(10, 125, 116, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 400px at 85% -5%, rgba(217, 87, 43, 0.07), transparent 65%),
    radial-gradient(600px 400px at 10% 20%, rgba(10, 125, 116, 0.04), transparent 60%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 40%);
  background-attachment: fixed;
}
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ─── REVEAL ANIMATION ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LAYOUT ─── */
.page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 0;
}

/* ─── TOPBAR ─── */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252, 250, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 150ms ease;
}
.nav a:hover { color: var(--ink); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 160ms ease;
}
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.btn-solid {
  padding: 0.72rem 1.2rem;
  color: #fff8f1;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  box-shadow: 0 2px 12px var(--accent-glow), 0 1px 3px rgba(0,0,0,0.06);
}
.btn-solid:hover {
  background: linear-gradient(145deg, #ce5329, #9f3b1d);
  box-shadow: 0 4px 20px rgba(217, 87, 43, 0.2), 0 1px 3px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.btn-outline {
  padding: 0.72rem 1.2rem;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: #9f8c6f;
  background: var(--surface-hover);
}
.btn-ghost {
  padding: 0.72rem 1.2rem;
  color: var(--muted);
  font-weight: 600;
}
.btn-ghost:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: start;
}
.hero-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.2rem 2rem;
}
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--focus);
}
h1 {
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin: 1.1rem 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}
.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── TRUST CARD ─── */
.hero-aside {
  position: sticky;
  top: 1.5rem;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.trust-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--focus-soft);
  color: var(--focus);
}
.trust-label {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}
.trust-detail {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.section-header .eyebrow {
  margin-bottom: 0.4rem;
}
.section-sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 48ch;
}

/* ─── HOW IT WORKS ─── */
.steps-section {
  margin-top: 3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.step-number {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 0.6rem;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ─── AGENT / OPENCLAW ─── */
.agent-section {
  margin-top: 3.5rem;
}
.agent-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border: 1px solid var(--focus);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(10, 125, 116, 0.06), transparent 60%),
    var(--surface);
  padding: 2rem;
}
.agent-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agent-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 0.4rem;
}
.agent-desc {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.agent-desc a {
  color: var(--focus);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(10, 125, 116, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 150ms ease;
}
.agent-desc a:hover {
  text-decoration-color: var(--focus);
}
.agent-oss {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--focus);
  font-size: 0.84rem;
  font-weight: 600;
}
.agent-oss svg {
  flex-shrink: 0;
}
.agent-capabilities {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.capability {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.capability-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--focus-soft);
  color: var(--focus);
}
.capability-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}
.capability-desc {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ─── FEATURES ─── */
.features-section {
  margin-top: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  border-color: var(--line-strong);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--focus);
  margin-bottom: 0.8rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

/* ─── PRICING ─── */
.pricing-section {
  margin-top: 3.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 20px var(--accent-glow);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(217, 87, 43, 0.18);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  background: var(--accent);
  color: #fff8f1;
  border-radius: 8px;
}
.plan-header { margin-bottom: 0.6rem; }
.plan-tier {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--focus);
}
.plan-price {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
}
.plan-price span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.15rem;
}
.plan-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}
.plan-features li {
  font-size: 0.9rem;
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.35;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--focus);
}
.plan-features li strong {
  font-weight: 700;
}
.plan-cta {
  width: 100%;
  text-align: center;
}
.pricing-note {
  margin-top: 1rem;
  color: var(--subtle);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}

/* ─── FAQ ─── */
.faq-section {
  margin-top: 3.5rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  transition: border-color 150ms ease;
}
.faq-item[open] {
  border-color: var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
  transition: color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--subtle);
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ─── CTA ─── */
.cta-section {
  margin-top: 3.5rem;
}
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 250px at 80% 20%, var(--accent-glow), transparent 70%),
    var(--surface-strong);
  padding: 2.5rem 2rem;
  text-align: center;
}
.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-card p {
  margin: 0.6rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 44ch;
}
.cta-card .actions {
  justify-content: center;
  margin-top: 1.3rem;
}

/* ─── FOOTER ─── */
.footer {
  margin-top: 3rem;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--subtle);
}
.footer-links {
  display: flex;
  gap: 1.3rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-aside { position: static; }
  .steps-grid { grid-template-columns: 1fr; }
  .agent-card { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 1.2rem);
    padding-top: 0.75rem;
  }
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.6rem;
  }
  .hero-main { padding: 1.5rem 1.2rem; }
  h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .features-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 1.8rem 1.2rem; }
  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
