:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6f7f;
  --line: #d8e6f3;
  --paper: #f7fbff;
  --panel: #ffffff;
  --wash: #e8f7ff;
  --green: #00a37a;
  --accent: #1f6fff;
  --accent-strong: #004fd6;
  --accent-soft: #e6f0ff;
  --teal: #00b8d9;
  --amber: #ffd23f;
  --blue: #1f6fff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  --radius: 8px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf6f2;
  --muted: #9baaa4;
  --line: #26342f;
  --paper: #0e1412;
  --panel: #151d1a;
  --wash: #111b17;
  --green: #7be0be;
  --accent: #1f6fff;
  --accent-strong: #78a7ff;
  --accent-soft: #10264f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 184, 217, 0.16), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(31, 111, 255, 0.12), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 80% 0%, rgba(31, 111, 255, 0.14), transparent 28%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon,
.proof-icon,
.card-icon,
.control-icon,
.mini-mail-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ui-icon {
  width: 18px;
  height: 18px;
}

.email-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid rgba(31, 111, 255, 0.36);
  border-radius: 999px;
  padding: 0.1em 0.58em 0.14em;
  background: rgba(230, 240, 255, 0.74);
  color: #004fd6;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.92em;
  font-weight: 760;
  line-height: 1.35;
  white-space: nowrap;
}

a.email-pill:hover,
a.email-pill:focus,
a.email-pill:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #ffffff !important;
}

html[data-theme="dark"] .email-pill {
  background: rgba(31, 111, 255, 0.18);
  color: #9dbcff;
}

.email-copy-wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  border: 1px solid rgba(31, 111, 255, 0.36);
  border-radius: 999px;
  padding: 0.1em 0.44em 0.14em 0.58em;
  background: rgba(230, 240, 255, 0.74);
  color: #004fd6;
  vertical-align: middle;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.email-copy-wrap::after {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  z-index: 3;
  border: 1px solid rgba(31, 111, 255, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--panel);
  content: attr(data-copy-toast);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.email-copy-wrap.copied::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.email-copy-wrap:hover,
.email-copy-wrap:focus-within {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #ffffff;
}

html[data-theme="dark"] .email-copy-wrap {
  background: rgba(31, 111, 255, 0.18);
  color: #9dbcff;
}

html[data-theme="dark"] .email-copy-wrap:hover,
html[data-theme="dark"] .email-copy-wrap:focus-within {
  background: var(--accent);
  color: #ffffff;
}

html[data-theme="dark"] .email-copy-wrap::after {
  border-color: rgba(120, 167, 255, 0.32);
  background: #edf6f2;
  color: #101714;
}

.email-copy-wrap > a {
  min-width: 0;
}

.email-copy-wrap > .email-pill {
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.email-copy-wrap > .email-pill:hover,
.email-copy-wrap > .email-pill:focus,
.email-copy-wrap > .email-pill:focus-visible {
  background: transparent;
  color: inherit !important;
}

.copy-email-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(24px, 1.35em, 34px);
  height: clamp(24px, 1.35em, 34px);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  opacity: 0.72;
  vertical-align: middle;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-email-button svg {
  width: clamp(16px, 0.9em, 22px);
  height: clamp(16px, 0.9em, 22px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.copy-email-button:hover,
.copy-email-button:focus-visible,
.copy-email-button.copied {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-email-copy-wrap {
  width: max-content;
  max-width: min(100%, 720px);
  margin-top: 18px;
  gap: 10px;
  align-items: center;
  border-color: rgba(31, 111, 255, 0.36);
  padding: 0.16em 0.42em 0.22em 0.58em;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-email-copy-wrap > .hero-email {
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.hero-email-copy-wrap > .hero-email:hover,
.hero-email-copy-wrap > .hero-email:focus,
.hero-email-copy-wrap > .hero-email:focus-visible {
  background: transparent;
  color: inherit;
}

.hero-email-copy-wrap .copy-email-button {
  width: clamp(28px, 0.44em, 42px);
  height: clamp(28px, 0.44em, 42px);
}

.hero-email-copy-wrap .copy-email-button svg {
  width: clamp(18px, 0.26em, 26px);
  height: clamp(18px, 0.26em, 26px);
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 229, 234, 0.9);
  background: rgba(247, 251, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 720;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(38, 52, 47, 0.86);
  background: rgba(14, 20, 18, 0.9);
}

.brand-logo {
  display: block;
  width: 168px;
  height: auto;
}

.brand-logo-dark,
.footer-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light,
html[data-theme="dark"] .footer-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark,
html[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.nav-links {
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent-strong);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 680;
}

.menu-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch,
.theme-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  background: var(--panel);
}

.language-switch button,
.theme-switch button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}

.theme-switch button {
  width: 36px;
  padding: 0;
}

.theme-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.language-switch button[aria-pressed="true"],
.theme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
}

html[data-theme="dark"] .language-switch,
html[data-theme="dark"] .theme-switch {
  background: #111916;
}

html[data-theme="dark"] .hero-text {
  color: #c7d5d0;
}

html[data-theme="dark"] .mail-agent-card,
html[data-theme="dark"] .compose-preview,
html[data-theme="dark"] .knowledge-grid article,
html[data-theme="dark"] .proof-strip div {
  background: var(--panel);
}

html[data-theme="dark"] .secondary-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.conversation-page {
  position: relative;
  padding-bottom: 36px;
  background:
    linear-gradient(90deg, rgba(31, 111, 255, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
}

.conversation-page::before {
  position: absolute;
  top: 86px;
  bottom: 0;
  left: clamp(18px, 3.2vw, 42px);
  width: 2px;
  background: linear-gradient(var(--accent), rgba(31, 111, 255, 0));
  content: "";
  opacity: 0.26;
  pointer-events: none;
}

.conversation-subject {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.conversation-subject strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
}

.conversation-subject span {
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.email-thread {
  position: relative;
  width: min(100% - clamp(32px, 7vw, 112px), 1600px);
  margin: 26px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
  animation: thread-arrive 520ms ease both;
}

.email-thread::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: block;
  border-bottom: 1px solid var(--line);
  min-height: 46px;
  padding: 12px 18px 12px 48px;
  background: #e8f7ff;
  color: var(--muted);
  content: "From: " attr(data-from) "   ·   " attr(data-subject);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.email-thread::after {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 111, 255, 0.36);
  content: "";
  animation: unread-pulse 2.8s ease-in-out infinite;
}

.email-thread[data-from="You"]::after {
  background: var(--ink);
}

.email-thread:nth-of-type(2) {
  animation-delay: 80ms;
}

.email-thread:nth-of-type(3) {
  animation-delay: 150ms;
}

.email-thread:nth-of-type(4) {
  animation-delay: 220ms;
}

@keyframes thread-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unread-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(31, 111, 255, 0.36);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(31, 111, 255, 0.12);
  }
}

.hero.email-thread {
  padding-top: calc(clamp(34px, 5vw, 72px) + 46px);
}

.hero-intro.email-thread {
  padding-top: calc(clamp(38px, 5vw, 72px) + 46px);
}

.band.email-thread,
.knowledge-section.email-thread,
.split-section.email-thread,
.technical-section.email-thread,
.proof-section.email-thread,
.cta-section.email-thread {
  padding-top: calc(clamp(54px, 7vw, 92px) + 46px);
}

.proof-strip.email-thread {
  padding-top: 46px;
}

.email-thread-hero {
  width: 100%;
  margin-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

html[data-theme="dark"] .conversation-subject {
  background: rgba(21, 29, 26, 0.78);
}

html[data-theme="dark"] .email-thread::before {
  background: #111916;
}

.header-action {
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(720px, calc(100vh - 67px));
  align-items: center;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  background: var(--paper);
}

.hero-copy {
  max-width: 700px;
  transform: translateY(-42px);
}

.hero-email {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.04em;
  max-width: 100%;
  border: 1px solid rgba(31, 111, 255, 0.36);
  border-radius: 999px;
  padding: 0.16em 0.58em 0.22em;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: clamp(24px, 2.45vw, 34px);
  font-weight: 820;
  line-height: 1.02;
}

.hero-email:hover,
.hero-email:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

#hero-title,
h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(54px, 5.8vw, 88px);
  font-weight: 820;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: end;
  padding: clamp(38px, 5vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--paper);
}

.hero-intro > *,
.split-section > *,
.cta-section > *,
.feature-grid article,
.knowledge-grid article,
.use-case-grid article {
  min-width: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  padding: 22px clamp(20px, 4vw, 56px);
  background: var(--panel);
}

.proof-icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--accent-strong);
}

.proof-strip strong {
  color: var(--ink);
  font-size: 15px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.intro-copy {
  max-width: 720px;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 22px;
  color: #404953;
  font-size: clamp(18px, 2vw, 22px);
}

.mail-agent-card {
  display: inline-grid;
  gap: 4px;
  min-width: min(100%, 390px);
  margin-bottom: 18px;
  border: 1px solid rgba(31, 111, 255, 0.32);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #ffffff;
}

.mail-agent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mail-agent-label .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
}

.mail-agent-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-agent-card .email-pill {
  justify-self: start;
  padding: 0.14em 0.64em 0.18em;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  padding: 0 20px;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.reply-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.reply-cta .ui-icon {
  width: 18px;
  height: 18px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.try-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.compose-preview {
  overflow: hidden;
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(21, 21, 21, 0.1);
}

.compose-bar,
.compose-field,
.compose-footer {
  display: flex;
  align-items: center;
}

html[data-theme="dark"] .compose-bar {
  background: #101815;
}

html[data-theme="dark"] .compose-preview p,
html[data-theme="dark"] .reply-preview p {
  color: #dbe7e2;
}

html[data-theme="dark"] .compose-footer {
  background: #111916;
}

html[data-theme="dark"] .reply-preview {
  background: #101815;
}

html[data-theme="dark"] .conversation-message {
  border-color: rgba(120, 167, 255, 0.24);
  background: linear-gradient(180deg, rgba(17, 25, 22, 0.96), #151d1a);
}

html[data-theme="dark"] .conversation-demo .reply-preview {
  border-color: rgba(123, 224, 190, 0.22);
  background: linear-gradient(180deg, rgba(16, 38, 79, 0.34), #101815);
}

html[data-theme="dark"] .decision-strip span {
  background: rgba(17, 25, 22, 0.92);
}

.compose-bar {
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #e8f7ff;
}

.compose-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.compose-bar strong {
  font-size: 14px;
}

.compose-bar em {
  margin-left: auto;
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
}

.compose-field strong {
  font-size: 14px;
}

.compose-field {
  gap: 14px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.compose-field span {
  width: 62px;
  color: var(--muted);
  font-size: 13px;
}

.compose-field .email-copy-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.compose-field .email-copy-wrap > .email-pill {
  flex: 1 1 auto;
}

.compose-preview p {
  margin: 0;
  padding: 18px 16px;
  color: #353f49;
}

.compose-preview [data-typewriter]::after {
  display: inline-block;
  width: 0.6ch;
  margin-left: 2px;
  color: var(--accent-strong);
  content: "|";
  animation: cursor-blink 0.75s steps(1) infinite;
}

[data-email-typing]::after {
  display: inline-block;
  width: 0.6ch;
  margin-left: 2px;
  color: var(--accent-strong);
  content: "|";
  animation: cursor-blink 0.75s steps(1) infinite;
}

[data-email-typing]:not(:empty)::after {
  opacity: 0.82;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.compose-preview > p {
  min-height: 118px;
}

.conversation-demo {
  position: relative;
}

.conversation-message {
  margin: 16px;
  border: 1px solid rgba(31, 111, 255, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.92), #ffffff);
}

.conversation-message p {
  min-height: 112px;
  padding: 12px 14px 16px;
  font-size: 17px;
  line-height: 1.45;
}

.message-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-kicker time {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
}

.conversation-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversation-step span {
  position: relative;
  display: block;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}

.conversation-step span::before,
.conversation-step span::after {
  position: absolute;
  background: #ffffff;
  content: "";
}

.conversation-step span::before {
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.conversation-step span::after {
  right: -4px;
  bottom: 5px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.compose-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #e8f7ff;
}

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

.compose-footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 720;
}

.reply-preview {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.conversation-demo .reply-preview {
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 163, 122, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 247, 255, 0.62), #ffffff);
  animation: reply-rise 680ms 620ms ease both;
}

.reply-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.reply-meta span {
  color: var(--muted);
  font-size: 13px;
}

.reply-preview p {
  padding-top: 12px;
  color: #353f49;
}

.conversation-demo .reply-preview p {
  min-height: 132px;
  padding: 12px 16px 18px;
  font-size: 17px;
  line-height: 1.45;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.decision-strip span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(232, 247, 255, 0.66);
}

.decision-strip strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-strip em {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.22;
}

@keyframes reply-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner {
  position: relative;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero > .hero-banner {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-banner::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.9) 0%, rgba(247, 251, 255, 0.58) 34%, rgba(247, 251, 255, 0.08) 68%, rgba(247, 251, 255, 0) 100%),
    linear-gradient(0deg, rgba(247, 251, 255, 0.3) 0%, rgba(247, 251, 255, 0) 34%);
  content: "";
  pointer-events: none;
}

html[data-theme="dark"] .hero-banner::after {
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.9) 0%, rgba(14, 20, 18, 0.68) 32%, rgba(14, 20, 18, 0.14) 62%, rgba(14, 20, 18, 0) 100%),
    linear-gradient(0deg, rgba(14, 20, 18, 0.36) 0%, rgba(14, 20, 18, 0) 38%);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.band,
.knowledge-section,
.split-section,
.technical-section,
.proof-section,
.cta-section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 4vw, 56px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 4.3vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.inbox-stage {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.inbox-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: rgba(232, 247, 255, 0.72);
}

.inbox-compose-chip,
.inbox-label,
.inbox-search,
.inbox-actions span,
.message-list-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.inbox-compose-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.inbox-label {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.inbox-label.active {
  border-color: rgba(31, 111, 255, 0.42);
  background: rgba(31, 111, 255, 0.12);
  color: var(--accent-strong);
}

.inbox-label strong {
  color: inherit;
  font-size: 12px;
}

.inbox-workbench {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(232, 247, 255, 0.5), transparent 160px),
    var(--paper);
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.inbox-search {
  display: flex;
  min-width: min(100%, 320px);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.inbox-search .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
}

.inbox-actions {
  display: flex;
  gap: 7px;
}

.inbox-actions span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.message-list-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.message-list-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 2px 10px;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
}

.message-list-row::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.message-list-row strong,
.message-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list-row strong {
  color: var(--ink);
  font-size: 13px;
}

.message-list-row span {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 12px;
}

.message-list-row time {
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.message-list-row.active {
  background: rgba(31, 111, 255, 0.08);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  padding: 18px;
}

.feature-grid article,
.knowledge-grid article,
.use-case-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.use-case-grid article {
  overflow: hidden;
  padding: 20px;
  transition:
    opacity 320ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.use-cases-staged .workflow-card {
  opacity: 0;
  transform: translateY(18px);
}

.use-cases-staged .workflow-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.use-case-grid article.is-live {
  border-color: rgba(31, 111, 255, 0.56);
  box-shadow: 0 18px 50px rgba(31, 111, 255, 0.16);
  transform: translateY(-4px);
}

.use-cases-staged .workflow-card.is-visible.is-live {
  transform: translateY(-4px);
}

.use-case-grid article.is-live .workflow-bar small {
  color: var(--accent);
  font-weight: 820;
}

.use-case-flow {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.use-case-grid .community-card {
  grid-column: auto;
  display: block;
}

.use-case-grid h3,
.use-case-grid p {
  padding-right: 0;
  padding-left: 0;
}

.use-case-grid h3 {
  margin-top: 0;
}

.use-case-grid p {
  padding-bottom: 0;
}

.workflow-card {
  display: grid;
  align-content: start;
}

.workflow-card::before {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 12px;
  color: var(--muted);
  content: attr(data-from) "  ·  " attr(data-time);
  font-size: 12px;
  font-weight: 760;
}

.workflow-card::after {
  justify-self: start;
  margin-top: 12px;
  border: 1px solid rgba(31, 111, 255, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(31, 111, 255, 0.08);
  color: var(--accent-strong);
  content: "Attachments " attr(data-attach) "  ·  " attr(data-priority);
  font-size: 11px;
  font-weight: 820;
}

.workflow-surface {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.workflow-surface::after {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--muted);
  content: "Received  →  Classified  →  Source checked  →  Reply sent";
  font-size: 11px;
  font-weight: 760;
}

html[data-lang="de"] .workflow-surface::after {
  content: "Empfangen  →  Klassifiziert  →  Quelle geprüft  →  Antwort gesendet";
}

.workflow-inbox,
.workflow-decision,
.workflow-reply {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workflow-inbox {
  border-bottom: 1px solid var(--line);
}

.workflow-reply {
  position: relative;
  margin-left: 22px;
  border-left: 2px solid rgba(31, 111, 255, 0.28);
}

.workflow-reply::before {
  position: absolute;
  top: -1px;
  left: -23px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid rgba(31, 111, 255, 0.28);
  border-left: 2px solid rgba(31, 111, 255, 0.28);
  border-bottom-left-radius: 10px;
  content: "";
}

.workflow-bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  background: #e8f7ff;
}

.workflow-reply .workflow-bar {
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.workflow-reply .workflow-bar .mini-mail-icon {
  border: 1px solid rgba(31, 111, 255, 0.28);
  border-radius: 999px;
  padding: 3px;
  background: rgba(31, 111, 255, 0.1);
  box-sizing: content-box;
}

.workflow-card:hover .workflow-reply .workflow-bar,
.workflow-card.is-live .workflow-reply .workflow-bar {
  background: var(--accent);
  color: #ffffff;
}

.workflow-card:hover .workflow-reply .workflow-bar .mini-mail-icon,
.workflow-card.is-live .workflow-reply .workflow-bar .mini-mail-icon {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.workflow-card:hover .workflow-reply .workflow-bar small,
.workflow-card.is-live .workflow-reply .workflow-bar small {
  color: rgba(255, 255, 255, 0.82);
}

.mini-mail-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
}

.workflow-bar strong {
  font-size: 13px;
}

.workflow-bar small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.workflow-message {
  position: relative;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.workflow-reply .workflow-message {
  padding-left: 18px;
}

.thread-header-bar {
  display: grid;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.thread-header-bar div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.thread-header-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thread-header-bar strong {
  overflow: hidden;
  color: var(--ink);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-header-bar div:nth-child(3) strong:not(:empty) {
  color: var(--accent-strong);
}

.workflow-reply .workflow-message::before {
  position: absolute;
  top: 19px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 111, 255, 0.28);
  content: "";
}

.workflow-message:last-child {
  border-bottom: 0;
}

.workflow-message.active {
  background: rgba(31, 111, 255, 0.09);
}

.workflow-card.is-live .workflow-reply .workflow-message.active {
  animation: reply-flash 1.8s ease both;
}

.workflow-card.is-live .workflow-inbox .workflow-message.active {
  animation: message-step 2.6s ease both;
}

.workflow-card.is-live .workflow-inbox .workflow-message:not(.active) {
  animation: message-step 2.6s ease 260ms both;
}

.workflow-card.is-live .workflow-reply {
  animation: reply-open 2.6s ease 520ms both;
}

.workflow-card.is-live .workflow-reply::before {
  animation: thread-draw 2.6s ease 420ms both;
}

.workflow-card.is-live .workflow-bar small {
  animation: time-tick 1.2s ease-in-out infinite;
}

.workflow-inbox .workflow-message:not(.active) {
  margin-left: 16px;
  border-left: 2px solid rgba(95, 111, 127, 0.28);
  background: rgba(95, 111, 127, 0.04);
}

.workflow-inbox .workflow-message:not(.active)::before {
  position: absolute;
  top: 14px;
  left: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.workflow-message span,
.workflow-decision span,
.workflow-reply span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-message strong,
.workflow-decision strong,
.workflow-reply strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
}

.workflow-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.attachment-chips span {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31, 111, 255, 0.26);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.attachment-chips span::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: var(--muted);
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.6-8.5 8.5a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.6-8.5 8.5a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.workflow-card.is-live .attachment-chips span {
  border-color: rgba(31, 111, 255, 0.5);
  background: rgba(31, 111, 255, 0.1);
}

.quoted-reply {
  margin: 8px 0 0;
  border-left: 3px solid rgba(95, 111, 127, 0.28);
  padding: 2px 0 2px 10px;
  color: var(--muted);
}

.quoted-reply span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.quoted-reply p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-card.is-live .quoted-reply {
  border-left-color: rgba(31, 111, 255, 0.5);
}

.inline-email-image {
  overflow: hidden;
  margin: 8px 0 0;
  border: 1px solid rgba(31, 111, 255, 0.26);
  border-radius: 7px;
  background: #ffffff;
  transform-origin: top left;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.workflow-card.is-live .inline-email-image {
  border-color: rgba(31, 111, 255, 0.52);
  box-shadow: 0 12px 28px rgba(31, 111, 255, 0.14);
  transform: scale(1.015);
}

.inline-email-image > div {
  display: grid;
  min-height: 112px;
  gap: 8px;
  padding: 12px;
}

.inline-email-image span {
  display: block;
  border-radius: 6px;
}

.inline-email-image figcaption {
  border-top: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.inline-email-image-briefing > div {
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.inline-email-image-briefing span:first-child {
  grid-row: span 3;
  background: linear-gradient(145deg, var(--accent), #00b8d9);
}

.inline-email-image-briefing span:not(:first-child) {
  background: rgba(31, 111, 255, 0.18);
}

.inline-email-image-pack > div {
  grid-template-columns: repeat(3, 1fr);
  background: #f7fbff;
}

.inline-email-image-pack span {
  min-height: 86px;
  background:
    linear-gradient(0deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0)),
    linear-gradient(135deg, #dbeafe, #ffffff);
}

.inline-email-image-event > div {
  grid-template-columns: 1.2fr 0.8fr;
  background:
    radial-gradient(circle at 28% 34%, rgba(31, 111, 255, 0.22), transparent 18%),
    linear-gradient(135deg, #ffffff, #e8f7ff);
}

.inline-email-image-event span:first-child {
  grid-row: span 2;
  background:
    linear-gradient(90deg, transparent 47%, rgba(31, 111, 255, 0.42) 48%, rgba(31, 111, 255, 0.42) 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(0, 184, 217, 0.34) 48%, rgba(0, 184, 217, 0.34) 52%, transparent 53%),
    rgba(31, 111, 255, 0.08);
}

.inline-email-image-event span:not(:first-child) {
  background: rgba(17, 24, 39, 0.1);
}

.inline-email-image-screenshot > div {
  grid-template-columns: 0.8fr 1.2fr;
  background: #ffffff;
}

.inline-email-image-screenshot span:first-child {
  grid-row: span 3;
  background: #e8f7ff;
}

.inline-email-image-screenshot span:not(:first-child) {
  background: linear-gradient(90deg, var(--accent) 0 22%, rgba(31, 111, 255, 0.14) 22% 100%);
}

.workflow-decision {
  display: grid;
}

.workflow-decision div {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.workflow-decision div:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] .workflow-bar {
  background: #111916;
}

html[data-theme="dark"] .workflow-message.active {
  background: rgba(31, 111, 255, 0.16);
}

html[data-theme="dark"] .workflow-inbox,
html[data-theme="dark"] .workflow-decision,
html[data-theme="dark"] .workflow-reply,
html[data-theme="dark"] .use-case-flow {
  background: #101815;
}

html[data-theme="dark"] .thread-header-bar div {
  background: #101815;
}

html[data-theme="dark"] .workflow-message strong,
html[data-theme="dark"] .workflow-decision strong,
html[data-theme="dark"] .workflow-reply strong {
  color: #edf6f2;
}

html[data-theme="dark"] .attachment-chips span {
  background: rgba(31, 111, 255, 0.14);
  color: #dbe7ff;
}

html[data-theme="dark"] .inline-email-image {
  background: #101815;
}

html[data-theme="dark"] .inline-email-image-briefing > div,
html[data-theme="dark"] .inline-email-image-pack > div,
html[data-theme="dark"] .inline-email-image-event > div,
html[data-theme="dark"] .inline-email-image-screenshot > div {
  background-color: #111916;
}

html[data-theme="dark"] .use-case-flow {
  color: #9dbcff;
}

.feature-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 780;
}

.feature-badge .ui-icon {
  width: 16px;
  height: 16px;
}

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 111, 255, 0.28);
  border-radius: var(--radius);
  padding: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-grid h3,
.knowledge-grid h3,
.use-case-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.14;
}

.feature-grid p,
.knowledge-grid p,
.faq-list p,
.use-case-grid p,
.split-section p {
  color: var(--muted);
}

.knowledge-section {
  background: #e8f7ff;
}

.knowledge-grid article {
  background: #ffffff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
  background: var(--ink);
  color: #ffffff;
}

.split-section .eyebrow,
.split-section p {
  color: #c9d8d2;
}

.split-section p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 18px;
}

.guardrail-inbox {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.guardrail-folders {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.guardrail-folder,
.guardrail-toolbar,
.guardrail-row,
.guardrail-thread {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.guardrail-folder {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: #c9d8d2;
  font-size: 13px;
  font-weight: 760;
}

.guardrail-folder.active {
  border-color: rgba(120, 167, 255, 0.5);
  background: rgba(31, 111, 255, 0.2);
  color: #ffffff;
}

.guardrail-workbench {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.guardrail-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  color: #dbe7e2;
  font-size: 13px;
  font-weight: 820;
}

.guardrail-toolbar .ui-icon,
.control-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.guardrail-list {
  display: grid;
  gap: 8px;
}

.guardrail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
}

.guardrail-row.active {
  border-color: rgba(120, 167, 255, 0.46);
  background: rgba(31, 111, 255, 0.18);
}

.guardrail-row strong {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.guardrail-row > span {
  grid-column: 2 / -1;
  min-width: 0;
  color: #c9d8d2;
  font-size: 13px;
  line-height: 1.35;
}

.guardrail-row .email-copy-wrap,
.guardrail-row .email-pill {
  max-width: 100%;
}

.guardrail-row .email-copy-wrap {
  margin-top: 6px;
}

.guardrail-row .email-copy-wrap > .email-pill {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guardrail-thread {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.guardrail-thread-header,
.guardrail-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guardrail-thread-header strong {
  color: #ffffff;
  font-size: 16px;
}

.guardrail-thread-header span,
.guardrail-checks span {
  border: 1px solid rgba(120, 167, 255, 0.36);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(31, 111, 255, 0.16);
  color: #dbe7ff;
  font-size: 11px;
  font-weight: 820;
}

.guardrail-thread p {
  max-width: none;
  margin: 0;
  color: #dbe7e2;
  font-size: 14px;
  line-height: 1.5;
}

html[data-theme="dark"] .guardrail-row .email-copy-wrap {
  border-color: rgba(120, 167, 255, 0.58);
  background: rgba(31, 111, 255, 0.18);
  color: #e4edff;
}

.proof-section {
  background: #e8f7ff;
}

.technical-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  max-width: 1180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.faq-list article {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(130px, 0.26fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.faq-list article::before {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(31, 111, 255, 0.28);
  border-radius: 4px;
  content: "";
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.faq-list article:hover,
.faq-list article:focus-within {
  background: rgba(31, 111, 255, 0.1);
  transform: translateX(4px);
}

.faq-list article:hover::before,
.faq-list article:focus-within::before {
  border-color: var(--accent);
  background: var(--accent);
}

@keyframes reply-flash {
  0% {
    background: rgba(31, 111, 255, 0.22);
  }

  100% {
    background: rgba(31, 111, 255, 0.09);
  }
}

@keyframes message-step {
  0% {
    opacity: 0.3;
    transform: translateX(-10px);
  }

  35%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reply-open {
  0%,
  28% {
    opacity: 0.35;
    transform: translateY(12px);
  }

  54%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes thread-draw {
  0%,
  24% {
    opacity: 0;
    transform: scaleY(0.2);
  }

  52%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes time-tick {
  0%,
  100% {
    color: var(--muted);
  }

  50% {
    color: var(--accent);
  }
}

.faq-list article::after {
  color: var(--muted);
  content: attr(data-time);
  font-size: 12px;
  font-weight: 720;
}

.faq-list article:last-child {
  border-bottom: 0;
}

.faq-list article:nth-child(1),
.faq-list article:nth-child(4) {
  background: rgba(31, 111, 255, 0.06);
}

.faq-list h3 {
  grid-column: 2 / 3;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.faq-list h3::before {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  content: attr(data-sender);
  font-size: 13px;
  font-weight: 800;
}

.faq-list h3::after {
  display: block;
  overflow: hidden;
  color: var(--muted);
  content: "Unread";
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-list p {
  grid-column: 3 / 4;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.cta-section h2 {
  margin-bottom: 14px;
  font-size: clamp(40px, 4.3vw, 64px);
  line-height: 1.02;
}

.cta-section p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-section .try-note {
  margin-top: 16px;
  font-size: 15px;
}

.cta-actions {
  display: grid;
  gap: 12px;
}

html[data-theme="dark"] .feature-grid article,
html[data-theme="dark"] .knowledge-grid article,
html[data-theme="dark"] .use-case-grid article {
  background: rgba(21, 29, 26, 0.86);
}

html[data-theme="dark"] .inbox-stage {
  background: #101714;
}

html[data-theme="dark"] .inbox-sidebar {
  background: rgba(8, 13, 11, 0.74);
}

html[data-theme="dark"] .inbox-compose-chip,
html[data-theme="dark"] .inbox-label,
html[data-theme="dark"] .inbox-search,
html[data-theme="dark"] .inbox-actions span,
html[data-theme="dark"] .message-list-row {
  background: rgba(21, 29, 26, 0.88);
}

html[data-theme="dark"] .inbox-workbench {
  background:
    linear-gradient(180deg, rgba(31, 111, 255, 0.1), transparent 160px),
    #101714;
}

html[data-theme="dark"] .message-list-row.active {
  background: rgba(31, 111, 255, 0.16);
}

html[data-theme="dark"] .knowledge-section,
html[data-theme="dark"] .technical-section,
html[data-theme="dark"] .proof-section {
  background: #101714;
}

html[data-theme="dark"] .split-section {
  background: #080d0b;
}

@media (prefers-reduced-motion: reduce) {
  .email-thread,
  .email-thread::after,
  .workflow-card.is-live .workflow-reply .workflow-message.active,
  .workflow-card.is-live .workflow-inbox .workflow-message.active,
  .workflow-card.is-live .workflow-inbox .workflow-message:not(.active),
  .workflow-card.is-live .workflow-reply,
  .workflow-card.is-live .workflow-reply::before,
  .workflow-card.is-live .workflow-bar small,
  .conversation-demo .reply-preview,
  .compose-preview [data-typewriter]::after,
  [data-email-typing]::after {
    animation: none;
  }
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-logo {
  display: block;
  width: 132px;
  height: auto;
}

.footer-logo-dark {
  display: none;
}

html[data-theme="dark"] .footer-logo-light {
  display: none;
}

html[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.site-footer > .email-copy-wrap {
  border-radius: 7px;
  padding: 0.18em 0.55em 0.22em;
}

.site-footer > .email-copy-wrap .email-pill {
  font-size: 13px;
  line-height: 1.25;
}

.site-updated {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .hero-copy {
    max-width: 790px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-toggle {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--panel);
  }

  .menu-controls {
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 10px 4px 2px;
  }

  .site-header.nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    border-radius: 6px;
    padding: 10px 12px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }

  .hero {
    min-height: 560px;
    align-items: center;
  }

  .hero-banner::after {
    background:
      linear-gradient(90deg, rgba(247, 251, 255, 0.92) 0%, rgba(247, 251, 255, 0.7) 58%, rgba(247, 251, 255, 0.16) 100%),
      linear-gradient(0deg, rgba(247, 251, 255, 0.44) 0%, rgba(247, 251, 255, 0) 45%);
  }

  html[data-theme="dark"] .hero-banner::after {
    background:
      linear-gradient(90deg, rgba(14, 20, 18, 0.92) 0%, rgba(14, 20, 18, 0.75) 60%, rgba(14, 20, 18, 0.18) 100%),
      linear-gradient(0deg, rgba(14, 20, 18, 0.56) 0%, rgba(14, 20, 18, 0) 45%);
  }

  .hero-intro,
  .feature-grid,
  .knowledge-grid,
  .use-case-grid,
  .proof-strip,
  .cta-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .inbox-stage {
    grid-template-columns: 1fr;
  }

  .inbox-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inbox-compose-chip {
    grid-column: 1 / -1;
  }

  .message-list-strip {
    grid-template-columns: 1fr;
  }

  .use-case-grid .community-card {
    grid-column: auto;
  }

  .guardrail-inbox {
    grid-template-columns: 1fr;
  }

  .guardrail-folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-toggle,
  .header-action {
    min-height: 36px;
  }

  .brand-logo {
    width: 124px;
  }

  .header-action {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-actions a {
    width: 100%;
  }

  #hero-title,
  h1 {
    font-size: clamp(46px, 12vw, 58px);
  }

  .hero {
    min-height: 430px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-copy {
    transform: translateY(-26px);
  }

  .hero-email {
    font-size: clamp(19px, 6.2vw, 24px);
    line-height: 1.08;
  }

  .inbox-sidebar {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .guardrail-folders {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .guardrail-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .guardrail-row > span {
    grid-column: 1 / -1;
  }

  .inbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inbox-search {
    min-width: 0;
  }

  .inbox-actions {
    justify-content: space-between;
  }

  .use-case-grid {
    padding: 12px;
  }

  .workflow-card::before {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switch button,
  .theme-switch button {
    min-height: 30px;
    font-size: 12px;
  }

  .language-switch button {
    padding: 0 9px;
  }

  .theme-switch button {
    width: 32px;
    padding: 0;
  }

  .mail-agent-card .email-pill {
    font-size: clamp(18px, 6.2vw, 22px);
  }

  .mail-agent-card,
  .mail-agent-card .email-pill,
  .compose-preview .email-pill,
  .try-note .email-pill {
    min-width: 0;
  }

  .mail-agent-card .email-pill,
  .compose-preview .email-pill,
  .try-note .email-pill {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .compose-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
  }

  .compose-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .compose-bar em {
    flex-basis: 100%;
    margin-left: 20px;
  }

  .compose-field span {
    width: auto;
  }

  .conversation-message,
  .conversation-demo .reply-preview {
    margin-right: 12px;
    margin-left: 12px;
  }

  .conversation-message p,
  .conversation-demo .reply-preview p {
    min-height: 128px;
    font-size: 15px;
  }

  .conversation-step {
    margin-right: 12px;
    margin-left: 12px;
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }

  .conversation-demo .reply-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .conversation-demo .reply-meta .email-copy-wrap {
    width: 100%;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-banner img {
    object-position: 58% center;
  }

  .band,
  .knowledge-section,
  .split-section,
  .technical-section,
  .proof-section,
  .cta-section {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .section-heading h2,
  .split-section h2,
  .cta-section h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .faq-list article {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
  }

  .faq-list h3 {
    grid-column: 2 / 3;
  }

  .faq-list p {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer > .email-copy-wrap .email-pill {
    font-size: 13px;
  }
}
