/* agente.cash landing — Minimalism & Swiss, Trust & Authority
   Palette: slate/navy + mint CTA (no purple gradients) */

:root {
  --color-background: #0F172A;
  --color-foreground: #F8FAFC;
  --color-card: #1E293B;
  --color-card-foreground: #F8FAFC;
  --color-muted: #1E293B;
  --color-muted-foreground: #94A3B8;
  --color-border: #334155;
  --color-primary: #F59E0B;
  --color-on-primary: #0F172A;
  --color-accent: #34D399;
  --color-on-accent: #0F172A;
  --color-accent-hover: #10B981;
  --color-accent-muted: rgba(52, 211, 153, 0.12);
  --color-accent-border: #059669;
  --color-destructive: #EF4444;
  --color-ring: #34D399;
  --color-allow: #34D399;
  --color-deny: #F87171;
  --color-ask: #FBBF24;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);

  --radius: 8px;
  --radius-lg: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --narrow: 640px;
  --header-h: 4rem;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.5rem 1rem;
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.skip:focus,
.skip:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.skip:focus:not(:focus-visible) {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  outline: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Language visibility */
.t-es {
  display: none !important;
}

.t-en {
  display: inline;
}

p.t-en,
.hero-lead.t-en,
.hero-icp.t-en,
.section-lead.t-en,
.form-hint.t-en,
.secondary-cta.t-en,
.not-banner.t-en,
.feature p.t-en,
.step-body p.t-en,
footer p.t-en {
  display: block;
}

h1 .t-en,
h2 .t-en,
h3 .t-en,
.section-label .t-en,
.eyebrow .t-en,
summary .t-en {
  display: block;
}

h3 .t-en {
  display: inline;
}

html[lang="es"] .t-en {
  display: none !important;
}

html[lang="es"] .t-es {
  display: inline !important;
}

html[lang="es"] p.t-es,
html[lang="es"] .hero-lead.t-es,
html[lang="es"] .hero-icp.t-es,
html[lang="es"] .section-lead.t-es,
html[lang="es"] .form-hint.t-es,
html[lang="es"] .secondary-cta.t-es,
html[lang="es"] .not-banner.t-es,
html[lang="es"] .feature p.t-es,
html[lang="es"] .step-body p.t-es,
html[lang="es"] footer p.t-es {
  display: block !important;
}

html[lang="es"] h1 .t-es,
html[lang="es"] h2 .t-es,
html[lang="es"] h3 .t-es,
html[lang="es"] .section-label .t-es,
html[lang="es"] .eyebrow .t-es,
html[lang="es"] summary .t-es {
  display: block !important;
}

html[lang="es"] h3 .t-es {
  display: inline !important;
}

.bilingual p[lang="es"] {
  display: none;
}

.bilingual p[lang="en"] {
  display: block;
}

html[lang="es"] .bilingual p[lang="en"] {
  display: none;
}

html[lang="es"] .bilingual p[lang="es"] {
  display: block;
}

.hero h1 .t-en,
.hero h1 .t-es {
  display: none;
}

html[lang="en"] .hero h1 .t-en,
html:not([lang="es"]) .hero h1 .t-en {
  display: block;
}

html[lang="es"] .hero h1 .t-es {
  display: block !important;
}

html[lang="es"] .hero h1 .t-en {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-md);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo:hover {
  color: var(--color-foreground);
}

.logo-mark {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.nav a {
  color: var(--color-muted-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lang-sep {
  color: var(--color-muted-foreground);
  opacity: 0.5;
  user-select: none;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--color-muted-foreground);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  line-height: 1.2;
  min-height: 44px;
  min-width: 44px;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--color-foreground);
  background: var(--color-card);
}

.lang-btn[aria-pressed="true"] {
  color: var(--color-accent);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition), transform var(--transition);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-on-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-muted-foreground);
  background: var(--color-card);
  color: var(--color-foreground);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-icon {
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background:
    radial-gradient(ellipse 70% 45% at 75% -5%, rgba(52, 211, 153, 0.1), transparent 55%),
    var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-md);
  padding: 0.3rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-border);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-foreground);
}

.hero-lead {
  margin: 0 0 var(--space-lg);
  color: var(--color-muted-foreground);
  font-size: 1.0625rem;
  max-width: 36rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.hero-icp {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Decision card */
.decision-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.decision-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-ask);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.decision-card-body {
  margin: 0;
  padding: 1.15rem 1.2rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #CBD5E1;
  overflow-x: auto;
}

.decision-card-body code {
  font-family: inherit;
}

.decision-pills {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
}

.pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
}

.pill-allow {
  color: var(--color-allow);
  border-color: var(--color-accent-border);
  background: var(--color-accent-muted);
}

.pill-deny {
  color: var(--color-deny);
  border-color: #991B1B;
  background: rgba(248, 113, 113, 0.1);
}

.pill-ask {
  color: var(--color-ask);
  border-color: #92400E;
  background: rgba(251, 191, 36, 0.1);
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section[id],
#problem,
#how,
#not,
#wedge,
#waitlist,
#faq,
#main {
  scroll-margin-top: 72px;
}

.section-alt {
  background: #0B1220;
  border-block: 1px solid var(--color-border);
}

.section-label {
  margin: 0 0 var(--space-sm);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section h2 {
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-lead {
  margin: 0 0 var(--space-xl);
  color: var(--color-muted-foreground);
  max-width: 40rem;
}

.section-lead strong {
  color: var(--color-foreground);
}

.bilingual p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted-foreground);
}

.bilingual p:last-child {
  margin-bottom: 0;
}

.bilingual strong {
  color: var(--color-foreground);
}

/* Pain list */
.pain-list {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pain-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
}

.pain-icon {
  flex-shrink: 0;
  color: var(--color-ask);
  margin-top: 0.1rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: none;
}

.step {
  padding: var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.step-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.step-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

/* Not list */
.not-banner {
  margin: 0 0 var(--space-lg);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #991B1B;
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-foreground);
  font-size: 0.9375rem;
}

.not-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.not-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
}

.not-x {
  flex-shrink: 0;
  color: var(--color-destructive);
  margin-top: 0.15rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature {
  padding: var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature:hover {
  border-color: #475569;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-md);
  border-radius: 6px;
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.55;
}

/* Waitlist */
.section-waitlist {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(52, 211, 153, 0.08), transparent 60%),
    var(--color-background);
  border-top: 1px solid var(--color-border);
}

.waitlist-form {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input[type="email"]::placeholder {
  color: #64748B;
}

.form-row input[type="email"]:focus {
  border-color: var(--color-accent-border);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-row input[type="email"].invalid {
  border-color: var(--color-destructive);
}

.form-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
}

.form-status {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-status.ok {
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-border);
  color: var(--color-allow);
}

.form-status.err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #991B1B;
  color: var(--color-deny);
}

.secondary-cta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  color: var(--color-foreground);
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-muted-foreground);
  border-bottom: 2px solid var(--color-muted-foreground);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  padding: 0 1.15rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-2xl);
  background: #0B1220;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 36rem;
}

.footer strong {
  color: var(--color-foreground);
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav {
    display: none;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
}

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

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .header-right {
    gap: 0.5rem;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }
}

@media (min-width: 1440px) {
  .wrap {
    width: min(100% - 3rem, var(--max));
  }
}
