/* ============================================================
   Talisk HQ — shared landing stylesheet
   One source of truth for the marketing site design system.
   Linked by every page under landing/. Page-specific styles
   stay inline in each page's <style> block.

   Brand: bronze #b87a45 · wordmark grey #78756f · dark #0e1013
   Fonts: IBM Plex Mono (brand/labels) · DM Sans (copy)
   Link-color rules carry :link/:visited variants on purpose —
   see CLAUDE.md "Link styling" (a:link UA rule beats class-only).
   ============================================================ */

:root {
  --bg: #0e1013;
  --surface: #141619;
  --surface-2: #191b1f;
  --text: #e8e6e1;
  --text-mid: #a8a5a0;
  --text-dim: #6b6862;
  --amber: #b87a45;
  --amber-light: #d4a06a;
  --amber-dark: #8a5e30;
  --brand-grey: #78756f;
  --border: #252729;
  --green: #5a9e6f;
  --error: #c45c5c;
  --input-bg: #191b1f;
  --maxw: 1080px;
  --maxw-narrow: 640px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Reveal animations ── */
@keyframes smoothIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gentleFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.reveal {
  opacity: 0;
  animation: smoothIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.reveal-fade {
  opacity: 0;
  animation: gentleFade 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* On-scroll reveal (JS toggles .in-view). Starts hidden, eases up. */
.on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.on-scroll.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade { animation: none; opacity: 1; }
  .on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 18px;
}
.section-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 560px;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 16, 19, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-left { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-grey);
  transition: color 0.3s ease;
}
.nav-left:hover .nav-logo { color: var(--text); }
.nav-logo .sep { color: var(--amber); }

.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav-links a,
.nav-links a:link,
.nav-links a:visited {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--amber); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-login,
.nav-login:link,
.nav-login:visited {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 12px; }

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  color: var(--amber);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(184, 122, 69, 0.28);
}
.btn-primary:hover {
  border-color: rgba(184, 122, 69, 0.5);
  background: rgba(184, 122, 69, 0.06);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(168, 165, 160, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-cta,
.nav-cta:link,
.nav-cta:visited {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.03);
  padding: 9px 22px;
  border-radius: 8px;
  border: 1px solid rgba(184, 122, 69, 0.28);
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { border-color: rgba(184, 122, 69, 0.5); background: rgba(184, 122, 69, 0.06); }

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s;
  z-index: 40;
}
.nav-hamburger:hover { color: var(--text); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 35;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a,
.mobile-menu a:link,
.mobile-menu a:visited {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a.active { color: var(--amber); }
.mobile-menu .mobile-cta,
.mobile-menu .mobile-cta:link,
.mobile-menu .mobile-cta:visited {
  font-weight: 500;
  font-size: 16px;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 32px;
  border-radius: 8px;
  border: 1px solid rgba(184, 122, 69, 0.28);
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo { font-size: 16px; }
.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a,
.footer-col a:link,
.footer-col a:visited {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); font-weight: 300; }
.footer-bottom .footer-note { max-width: 620px; line-height: 1.6; }

/* ── Shared brand mark hover/pulse (used in hero + footer) ── */
@keyframes throb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.center-dot { transform-origin: 50px 30px; animation: throb 3s ease-in-out infinite; }
.glow-boost { animation: glowPulse 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .center-dot, .glow-boost { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: block; }
  .section { padding: 68px 0; }
  .section-title { font-size: 27px; }
  .section-lead { font-size: 16px; }
}
