/* Felidae landing — deep forest night + warmth */

:root {
  --bg: #0c0f12;
  --bg-elevated: #13181e;
  --surface: #1a222b;
  --text: #e8eaed;
  --text-muted: #9aa3ad;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --accent-glow: rgba(201, 162, 39, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Crimson Pro", Georgia, serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--accent);
  color: #0c0f12;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.container {
  --page-gutter: clamp(14px, 4vw, 28px);
  width: min(1120px, 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.logo-img-sm {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px 28px;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle-bar::after {
  content: "";
  margin-top: 6px;
}

.btn-header {
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .btn-header {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: var(--header-h);
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }

  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-list a:hover {
    background: var(--surface);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #d4af37 0%, var(--accent) 100%);
  color: #1a1408;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #1a1408;
}

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

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(56px, 12vw, 120px) 0 clamp(72px, 14vw, 140px);
  overflow: hidden;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.55;
  filter: blur(4px);
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero-accent {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

.hero-lede {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  margin: clamp(48px, 8vw, 72px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hero-stats dt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    color-mix(in srgb, var(--accent) 6%, transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.18);
  color: var(--accent);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-label {
  line-height: 1.2;
}

.hero-stats dd {
  margin: 0;
  padding-left: calc(46px + 12px);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stats .stat {
    gap: 8px;
  }

  .hero-stats dt {
    gap: 8px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.2),
      0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-stats dd {
    padding-left: calc(36px + 8px);
    font-size: 0.9rem;
  }
}

/* Sections */

.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.section-head {
  max-width: 52ch;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.9;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-step {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5ch;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* CTA */

.cta-band {
  padding-bottom: clamp(72px, 12vw, 120px);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
  padding: clamp(22px, 5vw, 48px) clamp(18px, 4vw, 48px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.cta-copy {
  min-width: 0;
}

.cta-form-wrap {
  min-width: 0;
  width: 100%;
  container-type: inline-size;
  container-name: contact;
}

@media (max-width: 820px) {
  .cta-inner {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }
}

.cta-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 16px;
}

.cta-copy p {
  margin: 0;
  color: var(--text-muted);
}

.cta-contact {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.contact-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.cta-contact-link:hover {
  color: color-mix(in srgb, var(--accent) 82%, white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-contact-detail {
  font-weight: 500;
  color: var(--text);
}

.cta-contact-link:hover .cta-contact-detail {
  color: color-mix(in srgb, var(--text) 92%, var(--accent));
}

.cta-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 16px);
}

/* Stack fields when the form column is narrow (e.g. beside copy on desktop) */
@container contact (max-width: 32rem) {
  .cta-form {
    grid-template-columns: 1fr;
  }
}

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

.field-full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--text-muted) 65%, transparent);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cta-form > .btn {
  grid-column: 1 / -1;
}

.form-footnote {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-footnote.is-success {
  color: #8fbc8f;
}

.form-footnote.is-error {
  color: #e8a0a0;
}

/* Honeypot for Web3Forms; keep out of layout and unfocusable */
.form-botcheck {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.cta-form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40ch;
  margin-inline: auto;
}

.footer-contact {
  margin: 18px 0 14px;
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-contact-link span {
  color: var(--text);
}

.footer-contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-link:hover span {
  color: color-mix(in srgb, var(--text) 90%, var(--accent));
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--text-muted) 80%, transparent);
}

/* Reveal animations */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
