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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e8e3dc;
  --text: #1f1e1d;
  --muted: #6d6760;
  --accent: #de7356;
  --accent-hover: #cb6549;
  --accent-dim: rgba(222, 115, 86, 0.08);
  --html-badge-fg: #2d8f8f;
  --html-badge-bg: rgba(45, 143, 143, 0.08);
  --url-badge-fg: #de7356;
  --url-badge-bg: rgba(222, 115, 86, 0.08);
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV — matches app topbar feel */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-hover); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-headline {
  font-family: var(--sans);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover {
  background: #f1efe9;
  border-color: #d4d0c6;
  color: var(--text);
}

/* MOCK DASHBOARD */
.hero-visual {
  margin-top: 80px;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.mock-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(31, 30, 29, 0.08), 0 4px 16px rgba(31, 30, 29, 0.06);
  overflow: hidden;
}

.mock-bar {
  background: #f1efe9;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  flex: 1;
  max-width: 280px;
}

.mock-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.mock-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.mock-logo img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
  cursor: default;
}
.mock-nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.mock-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.mock-nav-item.active .mock-nav-dot { opacity: 1; }

.mock-main { padding: 24px 28px; }

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mock-title { font-size: 18px; font-weight: 600; color: var(--text); }

.mock-add-btn {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mock-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.mock-stat-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.mock-stat-value { font-size: 22px; font-weight: 600; color: var(--text); }

.mock-table { width: 100%; border-collapse: collapse; }
.mock-th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-td {
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.mock-td:last-child { text-align: right; }

.mock-badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-badge-html { background: var(--html-badge-bg); color: var(--html-badge-fg); }
.mock-badge-url { background: var(--url-badge-bg); color: var(--url-badge-fg); }

.mock-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.mock-pill {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

/* SECTIONS */
section { padding: 100px 48px; }

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

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

.section-headline {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 20px;
}

.section-headline em { font-style: normal; color: var(--accent); }

.section-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
}

/* USE CASES */
.usecases { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
}

.usecase {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}
.usecase:last-child { border-right: none; }

.usecase-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.usecase-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  flex-shrink: 0;
}

.usecase-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.usecase-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

.usecase-audience {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* HOW IT WORKS */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 28px;
  padding-top: 3px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.step-body { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.6; }

/* DIGEST MOCK — aligned with digest email chrome */
.digest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(31, 30, 29, 0.07);
}

.digest-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.digest-brand img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.digest-date { font-size: 13px; color: var(--muted); font-weight: 400; }

.digest-lede {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.digest-lede-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: middle;
}

.digest-items { padding: 8px 0; }

.digest-item {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.digest-item:last-child { border-bottom: none; }

.digest-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.digest-item-stat {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.digest-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}

/* CTA SECTION */
.cta-section {
  background: var(--text);
  text-align: center;
}

.cta-section .section-headline {
  color: #fff;
  max-width: 100%;
  margin: 0 auto 16px;
}
.cta-section .section-headline em { color: var(--accent); }

.cta-section .section-body {
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  margin: 0 auto 40px;
}

.request-form {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.request-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 10px;
  outline: none;
  width: 280px;
  transition: border-color 0.2s;
}
.request-input::placeholder { color: rgba(255,255,255,0.45); }
.request-input:focus { border-color: rgba(255,255,255,0.45); }

.request-btn {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.request-btn:hover:not(:disabled) { background: var(--accent-hover); }
.request-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  display: none;
  color: #f0b4ae;
  font-size: 14px;
  margin-top: 14px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.form-error.show { display: block; }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* FOOTER */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg);
}

.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-copy { font-size: 13px; color: var(--muted); }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.form-success {
  display: none;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 16px 0;
}
.form-success.show { display: block; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-app {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link-app:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.footer-signin {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.footer-signin:hover {
  color: var(--accent-hover);
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecase { border-right: none; border-bottom: 1px solid var(--border); }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  nav { padding: 0 20px; }
  section { padding: 60px 20px; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; text-align: left; }
}
