/* ========================================
   JEFAOPS — DESIGN SYSTEM
   Warm editorial aesthetic for the Latina entrepreneur
   ======================================== */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --fg: #1C1410;
  --accent: #C85C1A;
  --accent-warm: #E8834A;
  --accent-deep: #8B3A0A;
  --surface: #FFFFFF;
  --text-muted: #6B5E52;
  --text-light: #9C8E84;
  --border: #E0D8CE;
  --tag-bg: #FEF0E6;
  --tag-text: #8B3A0A;
  --agent-green: #2D8A4E;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(200, 92, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.hero-headline-accent {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 400;
}

/* Agent card */
.agent-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(28, 20, 16, 0.06), 0 1px 4px rgba(28, 20, 16, 0.04);
  overflow: hidden;
  font-size: 0.875rem;
}

.agent-card-header {
  background: linear-gradient(135deg, #1C1410 0%, #3D2518 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent-green);
  box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.agent-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agent-tasks {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.agent-task.active {
  background: rgba(45, 138, 78, 0.08);
  color: var(--agent-green);
}

.task-check {
  color: var(--agent-green);
  font-weight: 700;
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
}

.task-spinner {
  width: 16px;
  text-align: center;
  font-weight: 700;
  animation: spin 2s linear infinite;
  display: inline-block;
}

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

.agent-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== SECTION SHARED ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  padding: 100px 40px;
  background: var(--bg-alt);
  position: relative;
}

.howitworks::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.howitworks .section-headline {
  max-width: 560px;
  margin-bottom: 72px;
}

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

.step {
  padding: 48px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
}

.step:first-child {
  border-radius: 12px 0 0 12px;
}

.step:last-child {
  border-radius: 0 12px 12px 0;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(200, 92, 26, 0.12);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.3;
}

.step-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 40px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.2s ease;
}

.feature-card:hover {
  background: var(--surface);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 100px 40px;
  background: linear-gradient(135deg, #1C1410 0%, #3D2518 50%, #1C1410 100%);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.manifesto-quote blockquote {
  border-left: 3px solid var(--accent-warm);
  padding-left: 32px;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 20px;
}

.manifesto-cite {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: normal;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px 40px;
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

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

  .step:first-child { border-radius: 12px 12px 0 0; }
  .step:last-child { border-radius: 0 0 12px 12px; }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-inner { padding: 16px 20px; }
  .hero { padding: 60px 20px; }
  .howitworks { padding: 60px 20px; }
  .features { padding: 60px 20px; }
  .manifesto { padding: 60px 20px; }
  .closing { padding: 60px 20px; }
  .footer { padding: 40px 20px; }

  .step { padding: 32px 24px; }
  .feature-card { padding: 28px 24px; }
}