/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --coral: #FF7F50;
  --brass: #C5973E;
  --warm-white: #FAF8F5;
  --dark: #0a0a0a;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--warm-white);
  overflow-x: hidden;
}

/* ── Section Base ── */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Hero ── */
.hero {
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dark);
  background: var(--coral);
  border: none;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 127, 80, 0.35);
}

/* ── Agent Sections ── */
.agent-section {
  align-items: flex-end;
  justify-content: flex-start;
}

.agent-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Right-aligned text → gradient on the right */
.agent-section:has(.agent-text--right)::after {
  background: linear-gradient(to right, transparent 30%, rgba(0,0,0,0.75) 100%);
}

/* Left-aligned text → gradient on the left */
.agent-section:has(.agent-text--left)::after {
  background: linear-gradient(to left, transparent 30%, rgba(0,0,0,0.75) 100%);
}

/* Also add bottom gradient for mobile readability */
.agent-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 1;
}

.agent-text {
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 4rem 3.5rem;
}

.agent-text--right {
  margin-left: auto;
  margin-right: 5vw;
  text-align: left;
}

.agent-text--left {
  margin-right: auto;
  margin-left: 5vw;
  text-align: left;
}

.agent-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.agent-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.agent-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(250, 248, 245, 0.85);
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.features li {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(250, 248, 245, 0.6);
  position: relative;
  padding-left: 0.9rem;
}

.features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 800;
}

.price {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.02em;
}

.agent-tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
}

/* ── How It Works ── */
.how-it-works {
  background: var(--dark);
  flex-direction: column;
}

.how-content {
  max-width: 1000px;
  width: 100%;
  padding: 4rem 2rem;
  text-align: center;
}

.how-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.steps {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  background: var(--coral);
  border-radius: 50%;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.step p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.5;
}

/* ── Footer ── */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  text-align: center;
}

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

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--coral);
}

.made-in {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(250, 248, 245, 0.4);
  margin: 0.75rem 0 1rem;
}

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

.footer-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(250, 248, 245, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .agent-section {
    align-items: flex-end;
    justify-content: center;
  }

  .agent-text--right,
  .agent-text--left {
    margin: 0;
    padding: 2rem 1.5rem 3rem;
    max-width: 100%;
  }

  /* On mobile, always use bottom gradient */
  .agent-section:has(.agent-text--right)::after,
  .agent-section:has(.agent-text--left)::after {
    background: transparent;
  }

  .agent-section::before {
    height: 70%;
  }

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

  .hero-content {
    padding: 2rem 1.5rem;
  }
}

/* Fallback for browsers without :has() */
@supports not (selector(:has(*))) {
  .agent-section::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  }
}
