:root {
  --ink: #263238;
  --ink-soft: #546e7a;
  --paper: #f4faf9;
  --panel: #ffffff;
  --wash: #e0f5f2;
  --wash-alt: #d6f0ed;
  --cta: #0ca392;
  --cta-dark: #0a8a7b;
  --line: rgba(38, 50, 56, 0.14);
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

/* ── Header ── */

.topbar {
  width: 100%;
  padding: 0 clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: static;
}

.brand-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  display: block;
}

.brand {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1;
}

.motto {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--cta);
}

/* ── Buttons ── */

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  color: white;
  background: var(--cta);
  border: 1px solid transparent;
  transition: background 180ms ease;
}

.button:hover {
  background: var(--cta-dark);
}

.button-small {
  padding: 7px 14px;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-outline:hover {
  background: var(--wash);
}

/* ── Page layout ── */

main {
  width: 100%;
}

/* ── Hero ── */

.hero {
  padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  background: rgba(12, 163, 146, 0.1);
  border: 1px solid rgba(12, 163, 146, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--cta);
}

h1 {
  margin: 18px 0 12px;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  max-width: 56ch;
  line-height: 1.65;
  font-size: 1rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Feature grid ── */

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

.card {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: clamp(24px, 3vw, 48px) clamp(16px, 3vw, 40px);
}

.card:last-child {
  border-right: none;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ── Business / outcomes ── */

.business {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.business h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.business ul {
  margin: 0 0 28px;
  padding-left: 20px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ── Unified value proposition ── */

.value-props {
  padding: clamp(40px, 7vw, 92px) clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 72, 64, 0.98) 0%, rgba(8, 105, 94, 0.98) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 30px
    );
  color: #e9f1ff;
}

.value-props-head {
  max-width: 74ch;
}

.value-props-head .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #d8e6ff;
}

.value-props-head h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.12;
  max-width: 22ch;
}

.value-props-head p {
  margin: 0;
  color: rgba(233, 241, 255, 0.86);
  line-height: 1.75;
}

.value-props-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.value-props-grid article {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.value-props-grid h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.value-props-grid p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.72;
  color: rgba(233, 241, 255, 0.84);
}

.value-props-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.value-props .button-outline {
  color: #e9f1ff;
  border-color: rgba(255, 255, 255, 0.3);
}

.value-props .button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Support banner (home page) ── */

.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.support-banner h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.support-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.support-banner .button-outline {
  white-space: nowrap;
}

/* ── Docs page ── */

.docs-main {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 28px;
}

.docs-intro {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--panel);
  margin-bottom: 14px;
}

.docs-intro p {
  margin: 0;
  line-height: 1.5;
}

.docs-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.docs-redoc {
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

#redoc-container {
  display: block;
}

/* ── Support page ── */

.support-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.support-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
}

.support-form textarea {
  resize: vertical;
  min-height: 160px;
}

.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--cta);
  outline: 2px solid rgba(12, 163, 146, 0.18);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.captcha-row {
  margin-top: 4px;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  font-weight: 600;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c62828;
}

/* ── Footer ── */

footer {
  width: 100%;
  padding: 20px clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  background: var(--panel);
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* ── Reveal animation ── */

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.visible {
  animation: rise-in 550ms ease-out both;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .card:last-child {
    border-bottom: none;
  }

  .value-props-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .topbar nav {
    gap: 10px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .button-small {
    width: auto;
  }

  .captcha-row {
    overflow-x: auto;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
  }
}
