:root {
  --bg-base: #0B0E11;
  --text-primary: #EDEAE3;
  --text-muted: #6B7280;
  --accent-signal: #FF6B35;
  --accent-success: #4ADE80;
  --surface-raised: #14181D;
  --border-hairline: #232830;
  --surface-soft: #101419;
  --text-dim: #9CA3AF;
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.42);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background:
    linear-gradient(180deg, rgba(255, 107, 53, 0.04), transparent 32rem),
    var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(237, 234, 227, 0.025) 1px, transparent 1px);
  background-size: 100% 3rem;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-signal);
  outline-offset: 4px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 40px));
}

.section-pad {
  padding: 112px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 14, 17, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  background: rgba(11, 14, 17, 0.82);
  border-color: var(--border-hairline);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-signal);
  color: #120A06;
}

.button-primary:hover {
  background: #ff8255;
}

.button-secondary {
  border-color: var(--border-hairline);
  background: rgba(20, 24, 29, 0.52);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: rgba(255, 107, 53, 0.52);
}

.button-small {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.9rem;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-subhead {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.chat-card {
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.96), rgba(13, 17, 21, 0.98));
  box-shadow: var(--shadow-deep);
}

.chat-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.chat-title,
.live-pill {
  font-family: var(--font-mono);
  font-weight: 700;
}

.chat-status {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.live-pill {
  color: var(--accent-success);
  font-size: 0.76rem;
}

.live-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-success);
}

.chat-thread {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.message {
  border-radius: 8px;
  padding: 16px;
  font-size: 0.98rem;
}

.message-user {
  width: min(86%, 410px);
  justify-self: end;
  background: #1D232B;
  color: var(--text-primary);
}

.message-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.sift-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 107, 53, 0.32);
  border-radius: 8px;
  color: var(--accent-signal);
  font-family: var(--font-display);
  font-weight: 700;
}

.message-sift {
  background: #10151A;
  border: 1px solid var(--border-hairline);
}

.typing {
  display: flex;
  gap: 5px;
  padding: 6px 0;
  animation: typing-hide 3.2s ease forwards;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-dot 900ms ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

.sift-answer {
  opacity: 0;
  transform: translateY(8px);
  animation: answer-in 500ms ease 1.55s forwards;
}

.sift-answer p {
  margin: 0 0 12px;
  color: var(--text-dim);
}

.data-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.5vw, 0.94rem);
  line-height: 1.45;
}

.data-lines strong {
  color: var(--accent-signal);
  font-size: 1.12em;
}

.demo-caption {
  margin: 18px 0 0;
  color: var(--text-muted);
  text-align: center;
}

.copy-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.copy-stack p,
.flow-panel p,
.manifesto p,
.quiet-note {
  color: var(--text-dim);
  margin: 0;
}

.pull-quote {
  margin: 42px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent-signal);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.18;
}

.idea-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 72px;
  align-items: center;
}

.flow-panel {
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 26px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.channel-list span,
.single-chat {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: #10151A;
}

.flow-lines {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  padding: 0 24px;
}

.flow-lines span {
  height: 54px;
  border-left: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.single-chat {
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  margin-bottom: 22px;
  border-color: rgba(255, 107, 53, 0.38);
  color: var(--accent-signal);
  font-weight: 700;
}

.mini-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-signal);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.step-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 24px;
}

.step-number {
  margin-bottom: 54px;
  color: var(--accent-signal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-card p {
  margin: 18px 0 0;
  color: var(--text-dim);
}

.manifesto {
  background: #0E1216;
  border-block: 1px solid var(--border-hairline);
}

.manifesto .narrow {
  display: grid;
  gap: 28px;
}

.manifesto p:not(.eyebrow) {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.45rem);
  line-height: 1.22;
}

.testimonials-section {
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--border-hairline);
  background: #0E1216;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 24px 18px;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: min(360px, calc(100vw - 48px));
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 22px;
}

.testimonial-card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.testimonial-card span {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-panel {
  max-width: 860px;
  padding: 64px 40px;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--surface-raised);
  text-align: center;
}

.cta-panel .button {
  margin-top: 30px;
}

.quiet-note {
  margin-top: 16px;
  font-size: 0.93rem;
}

.about-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

.photo-frame {
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: #171C22;
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% 54%;
}

.about-section .button {
  margin-top: 30px;
}

.final-cta {
  text-align: center;
}

.final-cta .button {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  color: var(--text-muted);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a:not(.wordmark):hover {
  color: var(--text-primary);
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes typing-dot {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes typing-hide {
  0%, 46% { opacity: 1; height: auto; }
  100% { opacity: 0; height: 0; padding: 0; overflow: hidden; }
}

@keyframes answer-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee-scroll {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 900px) {
  .section-pad {
    padding: 84px 0;
  }

  .nav-shell {
    min-height: 72px;
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .nav-shell .button {
    justify-self: end;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .idea-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-grid {
    align-items: start;
  }

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

  .step-card {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 28px;
  }

  .photo-frame {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .section-pad {
    padding: 72px 0;
  }

  .nav-shell {
    width: min(100% - 24px, 1180px);
    min-height: 64px;
    gap: 12px;
  }

  :root {
    --header-height: 64px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
  }

  .nav-shell .button {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .chat-thread {
    padding: 14px;
  }

  .message {
    padding: 13px;
    font-size: 0.92rem;
  }

  .message-user {
    width: 92%;
  }

  .message-row {
    grid-template-columns: 30px 1fr;
    gap: 9px;
  }

  .sift-avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 0.86rem;
  }

  .data-lines {
    font-size: 0.76rem;
  }

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

  .flow-lines {
    display: none;
  }

  .single-chat {
    margin-top: 12px;
  }

  .cta-panel {
    padding: 48px 18px;
  }

  .testimonial-card {
    min-height: 250px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .sift-answer {
    opacity: 1;
    transform: none;
  }

  .typing {
    display: none;
  }

  .marquee-track {
    animation: none;
    width: auto;
    overflow-x: auto;
  }
}
