:root {
  --bg: #e6ebe8;
  --bg-deep: #d3ddd7;
  --ink: #12201c;
  --ink-soft: #3a4f48;
  --pine: #1f4d3a;
  --pine-bright: #2f7a55;
  --copper: #d4a017;
  --foam: #f3f7f5;
  --line: rgba(18, 32, 28, 0.14);
  --shadow: 0 24px 60px rgba(18, 32, 28, 0.12);
  --font-display: "Bricolage Grotesque", Georgia, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(39, 100, 122, 0.2), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 107, 45, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 6vw;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}

.brand-sep {
  color: var(--ink-soft);
  opacity: 0.45;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav-cta {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--pine);
  color: var(--foam) !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 6vw 5rem;
  min-height: calc(100vh - 5rem);
}

.product-logo-wrap {
  margin: 0 0 1rem;
}

.product-logo {
  display: block;
  width: auto;
  height: 2.1rem;
  object-fit: contain;
}

.product-logo-gorilladesk {
  height: 2rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  max-width: 11ch;
  animation: rise 0.8s ease both;
}

.lede {
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  animation: rise 0.8s ease 0.08s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: rise 0.8s ease 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--pine);
  color: var(--foam);
}

.btn.primary:hover {
  background: var(--pine-bright);
}

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

.btn.secondary {
  background: var(--foam);
  border-color: var(--line);
  color: var(--ink);
}

.trust {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  animation: rise 0.8s ease 0.22s both;
}

.logo-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
  animation: rise 0.8s ease 0.28s both;
}

.logo-row li,
.client-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.logo-row li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.75);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.logo-img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex: 0 0 auto;
}

.logo-row .logo-img {
  width: 1.35rem;
  height: 1.35rem;
}

.client-tab.active .logo-img {
  filter: brightness(0) invert(1);
}

.hero-visual {
  animation: rise 0.9s ease 0.18s both;
}

.chat {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.85rem;
  overflow: visible;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.chat-header .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--pine-bright);
  box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.5);
  animation: pulse 1.8s ease infinite;
}

.chat-hint {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 11rem;
  overflow: visible;
  transition: opacity 0.35s ease;
}

.chat-stream.fade-out {
  opacity: 0;
}

.bubble {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  align-self: flex-start;
}

.bubble.enter {
  animation: bubble-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bubble.you {
  align-self: flex-end;
  background: var(--pine);
  color: var(--foam);
  border-bottom-right-radius: 0.35rem;
}

.bubble.ai {
  background: #efe8da;
  color: var(--ink);
  border-bottom-left-radius: 0.35rem;
}

.bubble.ai strong {
  color: var(--pine);
  font-weight: 700;
}

.bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  background: #efe8da;
  padding: 0.85rem 1rem;
}

.bubble.typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--ink-soft);
  opacity: 0.45;
  animation: bounce 1.1s ease infinite;
}

.bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.substeps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.substeps li {
  margin: 0.35rem 0;
}

.ask-agent {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(31, 77, 56, 0.08);
  border: 1px solid rgba(31, 77, 56, 0.16);
}

.ask-agent > p {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pine);
}

.copy-block {
  position: relative;
  margin: 0.5rem 0 0.85rem;
  max-width: 100%;
  min-width: 0;
}

.copy-block pre {
  margin: 0;
  padding-right: 5.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

.copy-block .copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.step .fine {
  margin-top: 0.5rem;
}

.manual-details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.manual-details summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.manual-details[open] summary {
  margin-bottom: 0.6rem;
}

.strip,
.setup,
.promise,
.faq,
.finale {
  padding: 4.5rem 6vw;
}

.strip h2,
.setup h2,
.promise h2,
.faq h2,
.finale h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.section-lede {
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.ask-simple {
  max-width: 34rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.4rem;
  background: rgba(246, 241, 231, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ask-simple-q {
  margin: 0 0 1.25rem;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  min-height: 2.6em;
  transition: opacity 0.2s ease;
}

.ask-simple-q.swap {
  opacity: 0;
}

.ask-simple-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ask-simple-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ask-toast {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pine);
}

.ask-toast[hidden] {
  display: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  background: rgba(246, 241, 231, 0.8);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.5rem;
  overflow: hidden;
}

.step > div {
  min-width: 0;
}

.num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--foam);
}

.step h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.text-link {
  color: var(--copper);
  font-weight: 600;
}

pre {
  background: #1a2420;
  color: #e7efe9;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 100%;
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.setup-tabs {
  margin: 1rem 0 1.25rem;
}

.client-tab {
  border: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.7);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.client-tab:hover {
  border-color: rgba(20, 32, 25, 0.28);
  color: var(--ink);
}

.client-tab.active {
  background: var(--ink);
  color: var(--foam);
  border-color: var(--ink);
}

.client-panel {
  display: none;
}

.client-panel.active {
  display: block;
}

.panel-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.config-block {
  margin-top: 0;
}

.fine {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.promise-grid article {
  background: rgba(246, 241, 231, 0.75);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.25rem;
}

.promise-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.promise-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

.finale {
  text-align: center;
  padding-bottom: 6rem;
}

.finale p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

footer {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 6vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer a {
  color: inherit;
}

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

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 107, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 107, 79, 0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

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