/* ============================================
   EasemanAI — Shared Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============ VARIABLES ============ */
:root {
  --ink: #1a1a1a;
  --paper: #f8f6f1;
  --warm: #e8e4db;
  --accent: #c45d3e;
  --accent-hover: #b04e32;
  --accent-soft: #f0d8cf;
  --mid: #6b6560;
  --light: #a39e97;
  --card: #ffffff;
  --card-border: #e0dcd5;
  --radius: 10px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1200px;
}

.container--narrow {
  max-width: 800px;
}

section {
  padding: 5rem 0;
}

/* ============ NAVIGATION ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--mid);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero .hero-cta {
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--accent-hover);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============ SECTION HEADERS ============ */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
  line-height: 1.75;
}

.section-desc--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============ TIER SECTIONS (Agents Page) ============ */
.tier-section {
  padding: 4rem 0 2rem;
}

.tier-header {
  margin-bottom: 2.5rem;
}

.tier-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tier-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tier-header p {
  color: var(--mid);
  font-size: 0.95rem;
  max-width: 700px;
  line-height: 1.7;
}

/* ============ AGENT CARDS ============ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.agent-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.agent-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.agent-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.agent-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.agent-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.agent-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.agent-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.agent-list li {
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.agent-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.agent-meta {
  border-top: 1px solid var(--card-border);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agent-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.agent-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
}

.agent-meta-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.agent-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: var(--mid);
}

.agent-replaces {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============ STEPS GRID ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ============ CONFIG CARDS (Pricing) ============ */
.configs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.config-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.config-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.config-card.featured {
  border-color: var(--accent);
  position: relative;
}

.config-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -10px;
  left: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
}

.config-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.config-agents {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.config-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.config-price-note {
  font-size: 0.8rem;
  color: var(--light);
  margin-bottom: 0.3rem;
}

.config-replaces {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

.config-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============ INCLUDED GRID ============ */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.included-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.included-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.included-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.included-item p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ============ TABLES ============ */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--card);
}

.table-wrap th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--paper);
}

.table-wrap td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.82rem;
  color: var(--light);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ============ CUSTOM BUILDS (Dark Section) ============ */
.custom-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.custom-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 93, 62, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.custom-inner {
  position: relative;
  z-index: 1;
}

.custom-section h2 {
  color: var(--paper);
}

.custom-section p {
  color: var(--warm);
}

.custom-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  margin: 1.5rem 0;
}

.custom-list li {
  font-size: 0.88rem;
  color: var(--warm);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}

.custom-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.custom-note {
  font-size: 0.85rem;
  color: var(--light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* ============ CTA SECTION ============ */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--mid);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--mid);
}

.cta-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--mid);
}

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

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

/* ============ HOME PAGE — PROBLEM SECTION ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.problem-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.problem-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.problem-item span {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.problem-note {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2rem;
  font-family: 'DM Serif Display', Georgia, serif;
}

.problem-note em {
  color: var(--accent);
  font-style: normal;
}

/* ============ HOME PAGE — CREDIBILITY ============ */
.credibility-section {
  background: var(--warm);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.credibility-item {
  text-align: center;
}

.credibility-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.credibility-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.credibility-item p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ============ HOME PAGE — ABOUT ============ */
.about-section {
  border-top: 1px solid var(--card-border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.about-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-details {
  list-style: none;
  margin-top: 1.5rem;
}

.about-details li {
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.about-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============ HOME PAGE — PRICING PREVIEW ============ */
.pricing-preview {
  background: var(--warm);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1rem; }

  section { padding: 3.5rem 0; }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  /* Grids */
  .agents-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .custom-list {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-details {
    text-align: left;
  }

  .cta-steps {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .table-wrap { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }

  body { font-size: 15px; }

  .container { padding: 0 1.2rem; }

  .agent-card { padding: 1.4rem; }

  .config-card { padding: 1.4rem; }
}
