/* ==========================================================================
   nitrosend - shared design system
   AI-native email. Paper-edge treatment. Inter + Newsreader.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;1,400&display=swap');

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

:root {
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --ink: #111111;
  --muted: #666666;
  --light: #999999;
  --orange: #FF4D00;
  --orange-soft: #FFF3ED;
  --border: #E5E5E5;
  --surface: #F5F5F5;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
nav .logo img { height: 30px; }
.footer-brand .logo img { height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.btn-sm {
  background: var(--orange);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn-sm:hover { background: #E64400; }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 0;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: none;
  margin: 0 auto 32px;
  line-height: 1.6;
  white-space: nowrap;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}
.hero.compact { padding: 80px 0 64px; }
.hero.compact h1 { font-size: 48px; }

/* serif accent for hero (used on long-form pages) */
.hero h1 .serif {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary { background: var(--orange); color: white; border-color: var(--orange); }
.btn-primary:hover { background: #E64400; border-color: #E64400; }
.btn-secondary { background: var(--white); color: #444; border: 1px solid #ccc; }
.btn-secondary:hover { background: #444; color: var(--white); border-color: #444; }
/* dark-surface variants (for sections on black) */
.btn-primary-dark { background: var(--orange); color: white; border-color: var(--orange); }
.btn-primary-dark:hover { background: #E64400; border-color: #E64400; }
.btn-secondary-dark { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-secondary-dark:hover { background: var(--white); color: var(--ink); }

/* Paper / printed-email treatment */
.paper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
  position: relative;
}

/* Giant product screenshot */
.hero-product {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
}
.product-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.product-chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.product-chrome .dot:nth-child(1) { background: #FF5F56; }
.product-chrome .dot:nth-child(2) { background: #FFBD2E; }
.product-chrome .dot:nth-child(3) { background: #27C93F; }
.product-body {
  padding: 40px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 14px;
  text-align: center;
  flex-direction: column;
  gap: 12px;
}

/* Live mockup - Claude chat + email preview */
.mockup-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 540px;
  background: var(--white);
  font-size: 13px;
  text-align: left;
}
.mockup-chat {
  background: #FAFAF8;
  border-right: 1px solid var(--border);
  padding: 24px;
  overflow: hidden;
}
.mockup-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mockup-chat-header .model-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.mockup-msg { margin-bottom: 18px; line-height: 1.55; font-size: 13.5px; }
.mockup-msg .role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-msg.user .role { color: var(--orange); }
.mockup-msg.user .text { color: var(--ink); font-weight: 500; }
.mockup-msg.assistant .text { color: #333; }
.mockup-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'SF Mono', monospace;
  font-size: 11.5px;
  margin: 8px 0;
  color: var(--muted);
}
.mockup-tool .tool-name { color: var(--orange); font-weight: 600; }
.mockup-tool .ok { color: #2e8a4a; margin-left: 6px; font-weight: 600; }

.mockup-email {
  background: #F5F1EC;
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup-email-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.mockup-email-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.mockup-email-subject {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.mockup-email-subject strong { color: var(--ink); font-weight: 600; }
.mockup-email-body {
  padding: 32px 28px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  flex: 1;
}
.mockup-email-body h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.mockup-email-body p {
  font-size: 13px;
  line-height: 1.6;
  color: #3a3a3a;
  margin-bottom: 14px;
}
.mockup-email-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.mockup-email-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.mockup-email-footer {
  font-size: 11px;
  color: var(--light);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .mockup-split { grid-template-columns: 1fr; }
  .mockup-chat { border-right: none; border-bottom: 1px solid var(--border); }
}
.placeholder-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}

/* ---- SECTION ---- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}
.section-header .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ---- SPLIT FEATURE SECTIONS ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.split + .split { border-top: 1px solid var(--border); }
.split-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.split-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 16px;
}
.split-text p:last-child { margin-bottom: 0; }
.split-text .micro {
  font-size: 13px;
  color: var(--light);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.split-text .micro::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--border);
}
.split-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 13px;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 32px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
}
.split-visual.has-img {
  padding: 0;
  overflow: hidden;
}
.split-visual.has-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ---- QUOTE SECTION ---- */
.quote-section {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-section blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1.35;
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--ink);
}
.quote-section cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.quote-section cite strong { color: var(--ink); }
.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ---- AI INTEGRATION (dark) ---- */
.ai-section {
  padding: 120px 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.ai-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ai-headline {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.ai-headline em {
  font-style: normal;
  color: var(--orange);
}
.ai-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}
.ai-body strong {
  color: var(--white);
  font-weight: 600;
}
.ai-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ai-tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ai-tool-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.ai-tool-card svg { flex-shrink: 0; }
.ai-tool-card .tool-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.ai-tool-card .tool-type {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.ai-tool-card.more-card {
  border-style: dashed;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
}

/* ---- GALLERY (4-col card grid) ---- */
.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}
.gallery-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.gallery-header p { font-size: 17px; color: var(--muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 16px 40px rgba(0,0,0,0.06);
}
.gallery-item:nth-child(2) { transform: translateY(24px); }
.gallery-item:nth-child(4) { transform: translateY(24px); }
.gallery-item:nth-child(2):hover { transform: translateY(20px); }
.gallery-item:nth-child(4):hover { transform: translateY(20px); }
.gallery-preview {
  height: 280px;
  background: linear-gradient(160deg, #f8f6f3 0%, #f0ece7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 12px;
  padding: 16px;
  overflow: hidden;
}
.gallery-preview .email-mini {
  width: 100%;
  max-width: 240px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.08);
  font-size: 10px;
  line-height: 1.4;
  color: #1a1a1a;
  text-align: left;
  overflow: hidden;
  transform: scale(1);
  transform-origin: center;
  font-family: 'Inter', sans-serif;
}
.email-mini .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.email-mini .mini-h1 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}
.email-mini .mini-p { color: #4a4a4a; font-size: 9.5px; line-height: 1.55; }
.email-mini .mini-btn {
  display: inline-block;
  background: #FF4D00;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
}
.email-mini hr { border: none; border-top: 1px solid #eee; margin: 10px 0; }
.gallery-caption {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid var(--border);
}
.gallery-caption span { color: var(--light); font-weight: 400; display: block; font-size: 12px; margin-top: 2px; }

/* ---- INFRA / STATS (dark) ---- */
.infra {
  background: var(--ink);
  color: white;
  padding: 80px 0;
}
.infra-header { margin-bottom: 56px; }
.infra-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.infra-header p { color: rgba(255,255,255,0.45); font-size: 16px; }
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.infra-item .val {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.infra-item .val span {
  display: block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
}
.infra-item p { color: rgba(255,255,255,0.4); font-size: 14px; line-height: 1.5; margin-top: 20px; }

/* ---- TEAM ---- */
.team {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.team-photo-slot {
  border-radius: 4px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
}
.team-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-text h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.team-text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}
.team-people {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-person {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.team-person .name {
  font-weight: 600;
  font-size: 15px;
  min-width: 140px;
}
.team-person .role { font-size: 14px; color: var(--muted); }

/* ---- PRICING ---- */
.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pricing-header p { font-size: 17px; color: var(--muted); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.pricing-col {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.pricing-col.featured { background: var(--orange-soft); }
.pricing-col .plan-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-col.featured .plan-label { color: var(--orange); }
.pricing-col .plan-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-col .plan-period {
  font-size: 13px;
  color: var(--light);
  margin-bottom: 24px;
}
.pricing-col ul {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}
.pricing-col ul li {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.pricing-col ul li:last-child { border-bottom: none; }
.pricing-col ul li strong { color: var(--ink); font-weight: 500; }
.pricing-col.featured ul li { border-color: rgba(255,77,0,0.12); }
.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.pricing-cta:hover { background: var(--border); }
.pricing-col.featured .pricing-cta {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.pricing-col.featured .pricing-cta:hover { background: #E64400; }
.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--light);
}

/* Monthly / Annual toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: 0 auto 40px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button.active {
  background: var(--ink);
  color: var(--white);
}
.billing-toggle .save-pill {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.billing-toggle button.active .save-pill {
  background: var(--orange);
  color: var(--white);
}

/* Volume selector for Enterprise plan */
.volume-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 32px 8px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.volume-select:focus {
  outline: none;
  border-color: var(--orange);
}

/* See all features unfurl */
.see-features-wrap {
  text-align: center;
  margin: 40px 0 24px;
}
.see-features-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.see-features-btn:hover { border-color: var(--ink); background: var(--surface); }
.see-features-btn svg { transition: transform 0.2s; }
.see-features-btn.open svg { transform: rotate(180deg); }
.features-unfurl {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.features-unfurl.open { max-height: 3000px; }

/* ---- TABS ---- */
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: 0 auto 40px;
}
.tabs button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.tabs button.active {
  background: var(--ink);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- STEP BLOCKS (quickstart) ---- */
.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.03);
}
.step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.step p:last-child { margin-bottom: 0; }
.step pre, .step .codeblock {
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 8px;
}
.step .codeblock .prompt { color: var(--orange); }

/* Bio hero (used on media-kit, about) */
.bio-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 0 40px;
}
.bio-hero .bio-photo {
  width: 260px;
  height: 260px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.03);
}
.bio-hero .bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-hero h1, .bio-hero .h1-style {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  text-align: left;
}
.bio-hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.bio-hero .bio-socials {
  display: flex;
  gap: 10px;
}
.bio-hero .bio-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.15s;
}
.bio-hero .bio-socials a:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 768px) {
  .bio-hero { grid-template-columns: 1fr; gap: 24px; }
  .bio-hero .bio-photo { width: 200px; height: 200px; margin: 0 auto; }
  .bio-hero h1 { text-align: center; }
}

/* Agent tabs */
.agent-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.agent-tabs button {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.agent-tabs button.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}
.agent-panel { display: none; }
.agent-panel.active { display: block; }

/* ---- FINAL CTA ---- */
.final-cta {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 12px;
}
.cmd-inline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  padding: 10px 14px 10px 20px;
  border-radius: 10px;
  margin-bottom: 32px;
}
.cmd-inline > span.prompt { color: var(--orange); }
.copy-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.copy-btn.copied {
  border-color: var(--orange);
  color: var(--orange);
}
.copy-btn svg { display: block; }
/* light-variant copy button for copy UI on light backgrounds */
.copy-btn.copy-btn-light {
  border-color: var(--border);
  color: var(--muted);
}
.copy-btn.copy-btn-light:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---- VIDEO FRAME (hero video placeholder) ---- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,77,0,0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.02) 20px 21px);
  pointer-events: none;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-frame .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(255,77,0,0.4), 0 0 0 12px rgba(255,77,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-frame:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 16px 50px rgba(255,77,0,0.5), 0 0 0 18px rgba(255,77,0,0.15);
}
.video-frame .video-play svg { margin-left: 4px; }
.video-frame .video-caption {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}
.video-frame .video-caption small {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 4px;
}

/* ---- COMPANY ICON TABS (quickstart agent selector) ---- */
.company-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.company-tabs button {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.company-tabs button:hover {
  border-color: #999;
  color: #444;
}
.company-tabs button .company-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex-shrink: 0;
}
.company-tabs button.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(255,77,0,0.12);
}
.company-tabs button.active .company-icon {
  color: var(--orange);
}

/* ---- TERMINAL PANEL (quickstart install command) ---- */
.terminal-panel {
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin: 0 auto;
  max-width: 960px;
}
.terminal-panel .terminal-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #141414;
}
.terminal-panel .terminal-dots {
  display: inline-flex;
  gap: 7px;
}
.terminal-panel .terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
}
.terminal-panel .terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-panel .terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-panel .terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-panel .terminal-title {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.terminal-panel .terminal-body {
  padding: 24px 24px 20px;
}
.terminal-panel .terminal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.5;
}
.terminal-panel .terminal-row .prompt { color: var(--orange); flex-shrink: 0; }
.terminal-panel .terminal-row .cmd {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.terminal-panel .terminal-row .copy-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.terminal-panel .terminal-row .copy-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.95);
}
.terminal-panel .terminal-row .copy-btn.copied {
  border-color: var(--orange);
  color: var(--orange);
}
.terminal-panel .terminal-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 20px 0 16px;
}
.terminal-panel .terminal-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.terminal-panel .terminal-prompt-line {
  color: rgba(255,255,255,0.75);
  font-style: italic;
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}
.terminal-panel .terminal-prompt-line::before {
  content: '>';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

/* ---- LONG FORM CONTENT (blog, terms, privacy, about) ---- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0 80px;
}
.prose h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.prose .meta {
  font-size: 14px;
  color: var(--light);
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.prose h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  line-height: 1.25;
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}
.prose p {
  font-size: 18px;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 24px;
}
.prose ul, .prose ol { margin: 0 0 24px 24px; }
.prose li { font-size: 18px; line-height: 1.7; margin-bottom: 8px; color: #2a2a2a; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  border-left: 3px solid var(--orange);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--ink);
}
.prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ink);
}
.prose pre {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ---- CARD LIST (used for blog index, integrations, compare) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: inherit;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 16px 40px rgba(0,0,0,0.06);
}
.card .card-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.card .card-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Integration card with logo */
.int-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: inherit;
}
.int-card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.int-card .int-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.int-card .int-logo svg { display: block; }
.int-card .int-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.int-card .int-text span {
  font-size: 13px;
  color: var(--muted);
}

/* ---- COMPARE TABLE ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--orange); font-weight: 600; }
.compare-table .x { color: var(--light); }
.compare-table td.us { background: var(--orange-soft); font-weight: 500; }
.compare-brand { display: inline-flex; align-items: center; gap: 8px; }
.compare-brand .brand-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; flex-shrink: 0;
}
.compare-brand .brand-icon img { height: 16px; width: auto; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--light);
  padding: 24px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; }

/* ---- FOOTER ---- */
.footer-manifesto {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.footer-manifesto .container {
  max-width: 800px;
}
.footer-manifesto p.lede {
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 32px;
}
.footer-manifesto p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-manifesto p:last-child { margin-bottom: 0; }
.footer-manifesto strong { color: var(--ink); font-weight: 600; }

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 280px; margin-top: 16px; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.15s;
}
.footer-social a:hover { border-color: var(--ink); color: var(--ink); }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--light);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .hero h1, .hero p { white-space: normal; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero.compact h1 { font-size: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(2), .gallery-item:nth-child(4) { transform: none; }
  .infra-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
  .ai-section .container { grid-template-columns: 1fr; gap: 48px; }
  .ai-headline { font-size: 36px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .features-unfurl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 640px; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-col { padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero.compact h1 { font-size: 26px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
