/* AgentRelay — landing page styles
   Warm light theme. Inter typography. Generous whitespace.
   Designed for clarity + TCR review readability. */

:root {
  --bg:           #ffffff;
  --bg-soft:      #fafaf9;
  --bg-warm:      #fff7ed;
  --bg-warmer:    #ffedd5;
  --ink:          #0f172a;
  --ink-soft:     #334155;
  --muted:        #64748b;
  --line:         #e7e5e4;
  --line-soft:    #f1f5f9;
  --accent:       #ea580c;
  --accent-hover: #c2410c;
  --accent-soft:  #fed7aa;
  --green:        #047857;
  --radius:       14px;
  --radius-sm:    8px;
  --max:          1140px;
  --pad:          24px;
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:       0 4px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg:    0 24px 64px -16px rgba(234, 88, 12, 0.18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

code, kbd, pre {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}

code {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}

pre {
  background: var(--ink);
  color: #f1f5f9;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px -2px rgba(234, 88, 12, 0.4);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, #ffffff 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: middle;
}

h1.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title .accent {
  background: linear-gradient(135deg, #ea580c 0%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.email-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  box-shadow: var(--shadow);
}

.email-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}

.email-form button {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.email-form button:hover { background: var(--accent); }

.hero-microcopy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* Channel chips row */
.channels-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}

.channels-label {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* Sections */
section {
  padding: 88px 0;
}

.section-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(32px, 4vw, 44px);
  max-width: 720px;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 56px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.2s;
}

.feature:hover {
  background: white;
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

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

/* Code block section */
.code-section {
  background: var(--bg-soft);
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.code-grid pre {
  margin: 0;
}

@media (max-width: 768px) {
  .code-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid var(--accent-soft);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  margin: 64px 0;
}

.cta-banner h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 17px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 36px;
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

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

.footer-brand {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* SMS compliance notice (visible for TCR) */
.sms-notice {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 24px;
}

.sms-notice strong { color: var(--ink); }

/* Legal pages */
.legal-page {
  padding: 64px 0;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p, .legal-page li {
  font-size: 16px;
  color: var(--ink-soft);
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .hero { padding: 72px 0 56px; }
  section { padding: 64px 0; }
  .cta-banner { padding: 40px 24px; }
  pre { font-size: 12.5px; padding: 16px; }
}
