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

:root {
  --amber: #E8913A;
  --amber-dark: #C97A2A;
  --teal: #1B5E6B;
  --teal-dark: #134A56;
  --bg: #FDFAF6;
  --bg-alt: #F4EEE4;
  --bg-dark: #1A1A2E;
  --fg: #1C1C1E;
  --fg-muted: #6B6B6B;
  --fg-subtle: #A0A0A0;
  --white: #FFFFFF;
  --border: #E8DDD0;
  --card-shadow: 0 4px 32px rgba(28, 28, 30, 0.08);
  --card-shadow-hover: 0 8px 48px rgba(28, 28, 30, 0.14);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: var(--amber); color: var(--white); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
}

.section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 680px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 620px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  padding: 9rem 2rem 6rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 145, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 94, 107, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(27, 94, 107, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.proof-item {
  padding: 1rem 1.5rem;
  flex: 1;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.proof-number {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}

.proof-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* ===== AGENT CARD ===== */
.agent-card {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 1.75rem;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.status-dot.active {
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px #4ade80; }
  50% { box-shadow: 0 0 16px #4ade80; }
}

.agent-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.metric-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
}

.agent-timestamp {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* ===== WHAT IT IS ===== */
.what-it-is {
  padding: 6rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.what-it-is-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.what-it-is .section-headline {
  margin-bottom: 1.5rem;
}

.what-it-is .section-body + .section-body {
  margin-top: 1rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 7rem 2rem;
  background: var(--bg);
}

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

.features .section-headline {
  margin-bottom: 3.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--amber);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  font-family: 'Fraunces', Georgia, serif;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
  padding: 7rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.dashboard-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 5rem;
  align-items: center;
}

.dashboard-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-top: 0.25rem;
}

/* ===== BRIEFING CARD ===== */
.briefing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--teal);
  color: var(--white);
}

.briefing-from {
  font-size: 0.8rem;
  font-weight: 600;
}

.briefing-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.briefing-subject {
  padding: 1.25rem 1.5rem 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
}

.briefing-body {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.briefing-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.briefing-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.briefing-tag.done {
  background: rgba(27, 94, 107, 0.12);
  color: var(--teal);
}

.briefing-tag.action {
  background: rgba(232, 145, 58, 0.12);
  color: var(--amber-dark);
}

/* ===== CLOSING ===== */
.closing {
  padding: 7rem 2rem;
  background: var(--bg-dark);
}

.closing-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.25;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cta-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232, 145, 58, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.cta-detail {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2.5rem 2rem;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand .wordmark {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

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

  .hero-visual {
    order: -1;
  }

  .agent-card {
    max-width: 380px;
    margin: 0 auto;
  }

  .dashboard-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-proof {
    flex-wrap: wrap;
  }

  .proof-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-proof {
    flex-direction: column;
    gap: 0;
  }

  .proof-item {
    padding: 0.85rem 1.25rem;
  }

  .proof-divider {
    display: block;
    width: auto;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .closing, .features, .what-it-is, .dashboard-section {
    padding: 4rem 1.5rem;
  }
}

/* ===== SIGNUP PAGE ===== */
.signup-page {
  background: var(--bg-dark);
  min-height: 100vh;
}

/* Hero */
.signup-hero {
  padding: 8rem 2rem 5rem;
  background: var(--bg-dark);
}

.signup-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.signup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber);
  background: rgba(232, 145, 58, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.signup-headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.signup-headline em {
  font-style: italic;
  color: var(--amber);
}

.signup-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 3rem;
}

/* Outcomes */
.signup-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  text-align: left;
}

.signup-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.outcome-icon {
  width: 40px;
  height: 40px;
  background: rgba(232, 145, 58, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}

.outcome-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.outcome-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.outcome-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

/* Form section */
.signup-form-section {
  padding: 2rem 2rem 5rem;
  background: var(--bg-dark);
}

.signup-form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.signup-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-form-headline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0.5rem 0 0.35rem;
}

.signup-form-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}

.form-field input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 145, 58, 0.15);
}

.form-field input.input-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.required {
  color: var(--amber);
}

.field-error {
  font-size: 0.8rem;
  color: #e53e3e;
  min-height: 1.2em;
}

.signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.signup-btn:hover {
  background: var(--amber-dark);
}

.signup-btn:active {
  transform: scale(0.98);
}

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

.btn-loading {
  display: none;
}

.signup-btn.loading .btn-text {
  display: none;
}

.signup-btn.loading .btn-loading {
  display: flex;
  animation: spin 0.8s linear infinite;
}

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

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  text-align: center;
  line-height: 1.5;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(27, 94, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--teal);
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Social proof */
.signup-social-proof {
  padding: 5rem 2rem;
  background: var(--bg);
}

.signup-proof-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.signup-social-proof .section-label {
  text-align: center;
  margin-bottom: 2.5rem;
}

.signup-proof-inner .feature-grid {
  max-width: 900px;
  margin: 0 auto;
}

.proof-attribution {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Nav signup link */
.nav-signup {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--amber);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-signup:hover {
  background: var(--amber);
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .signup-outcomes {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .signup-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .signup-form-section {
    padding: 2rem 1.5rem 4rem;
  }

  .signup-form-card {
    padding: 2rem 1.5rem;
  }
}