/* ── TETHER CONNECT · SHARED DESIGN SYSTEM ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

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

:root {
  --bg:        #f0ebe3;
  --surface:   #f7f3ee;
  --surface2:  #ede8e0;
  --surface3:  #e6e0d8;
  --border:    #c8c0b4;
  --border-dk: #9a9088;
  --ink:       #1a1612;
  --ink2:      #3d3530;
  --muted:     #6b6259;
  --faint:     #9a9088;
  --red:       #c8001e;
  --red-bg:    #fde8ec;
  --red-bd:    #e8a0ac;
  --green:     #006630;
  --green-bg:  #e6f4ec;
  --green-bd:  #80c8a0;
  --amber:     #7a4800;
  --amber-bg:  #fdf0e0;
  --amber-bd:  #e0b870;
  --blue:      #003880;
  --blue-bg:   #e6eef8;
  --blue-bd:   #9ab8e8;
  --mono:      'IBM Plex Mono', monospace;
  --cond:      'IBM Plex Sans Condensed', sans-serif;
  --sans:      'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────── */
.tc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { width: 26px; height: 26px; }

.nav-wordmark {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav-wordmark span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: stretch;
  height: 52px;
  list-style: none;
}

.nav-links li { display: flex; }

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); background: var(--surface2); }
.nav-links a.active { color: var(--ink); background: var(--surface2); }

.nav-cta {
  font-weight: 600 !important;
  color: var(--surface) !important;
  background: var(--ink) !important;
  border-left: none !important;
}

.nav-cta:hover { background: var(--ink2) !important; color: var(--surface) !important; }

/* ── FOOTER ──────────────────────────────── */
.tc-footer {
  background: var(--ink);
  color: var(--surface);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 12px;
}

.footer-brand-name span { color: #ff6080; }

.footer-brand p {
  font-size: 13px;
  color: #9a9088;
  font-weight: 300;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-domains {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-domains a {
  font-family: var(--mono);
  font-size: 11px;
  color: #555048;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.footer-domains a:hover { color: #9a9088; }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555048;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2520;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: #9a9088;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--surface); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid #2a2520;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 10px;
  color: #555048;
  letter-spacing: 0.06em;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-family: var(--mono);
  font-size: 10px;
  color: #555048;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: #9a9088; }

/* ── SHARED UTILITIES ──────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 12px; height: 1px;
  background: var(--muted);
}

.section-label.red { color: var(--red); }
.section-label.red::before { background: var(--red); }

.section-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 52px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 2px;
}

.badge-red    { color: var(--red);   border-color: var(--red-bd);   background: var(--red-bg);   }
.badge-green  { color: var(--green); border-color: var(--green-bd); background: var(--green-bg); }
.badge-amber  { color: var(--amber); border-color: var(--amber-bd); background: var(--amber-bg); }
.badge-blue   { color: var(--blue);  border-color: var(--blue-bd);  background: var(--blue-bg);  }
.badge-ink    { color: var(--surface); border-color: var(--ink); background: var(--ink); }
.badge-muted  { color: var(--muted); border-color: var(--border-dk); background: transparent; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--surface);
  background: var(--ink);
  padding: 11px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--ink2); border-color: var(--ink2); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  padding: 11px 22px;
  text-decoration: none;
  border: 1px solid var(--border-dk);
  transition: border-color 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover { border-color: var(--ink); }

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--surface);
  background: var(--red);
  padding: 11px 22px;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: opacity 0.15s;
}

.btn-red:hover { opacity: 0.85; }

.ruled-top    { border-top: 2px solid var(--ink); }
.ruled-bottom { border-bottom: 2px solid var(--ink); }
.border-top   { border-top: 1px solid var(--border); }
.border-bottom{ border-bottom: 1px solid var(--border); }

.chk { color: var(--green); font-weight: 600; }
.crs { color: var(--red); }
.prt { color: var(--amber); }

/* ── PAGE HERO BASE ──────────────────────── */
.page-hero {
  padding-top: 52px;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero-eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--red);
}

.page-hero h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.0;
  margin-bottom: 24px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--red);
}

.page-hero-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.75;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 960px) {
  .tc-nav { padding: 0 20px; }
  .wrap { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 40px 20px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .page-hero-inner { padding: 48px 20px; }
}

@media (max-width: 600px) {
  .nav-links li:not(.nav-cta-li):not(:last-child) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   MOTION LAYER — scroll reveal · particle bg · tilt · hover micro-interactions
   All effects are transform/opacity based for 60fps. No copy or palette change.
   ───────────────────────────────────────────────────────────────────── */

/* Wave canvas + aurora layer: sit behind hero content, never receive pointer events */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > *:not(.wave-canvas):not(.aurora-layer),
.page-hero > *:not(.wave-canvas):not(.aurora-layer) { position: relative; z-index: 2; }
.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.aurora-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.aurora-blob.a {
  width: 540px; height: 540px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(253, 232, 236, 0.85) 0%, rgba(253, 232, 236, 0) 65%);
  animation: aurora-drift-a 26s ease-in-out infinite;
}
.aurora-blob.b {
  width: 640px; height: 640px;
  bottom: -220px; right: -180px;
  background: radial-gradient(circle, rgba(237, 232, 224, 0.9) 0%, rgba(237, 232, 224, 0) 70%);
  animation: aurora-drift-b 32s ease-in-out infinite;
}
.aurora-blob.c {
  width: 420px; height: 420px;
  top: 35%; left: 40%;
  background: radial-gradient(circle, rgba(232, 160, 172, 0.55) 0%, rgba(232, 160, 172, 0) 70%);
  animation: aurora-drift-c 20s ease-in-out infinite;
}
.aurora-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(26,22,18,0.025) 1px, transparent 1.5px),
    radial-gradient(circle at 75% 60%, rgba(26,22,18,0.018) 1px, transparent 1.5px);
  background-size: 220px 220px, 180px 180px;
  opacity: 0.6;
  pointer-events: none;
}
@keyframes aurora-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(120px, 60px, 0) scale(1.15); }
}
@keyframes aurora-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-80px, -50px, 0) scale(0.92); }
}
@keyframes aurora-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate3d(60px, -40px, 0) scale(1.2) rotate(8deg); }
}

/* ─── Intent comparison table (index + product) ──────────────────── */
.intent-table {
  border: 1px solid var(--border);
  margin-top: 8px;
  background: var(--bg);
}
.intent-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  border-bottom: 1px solid var(--border);
}
.intent-row:last-child { border-bottom: none; }
.intent-row.head {
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.intent-row.head > div {
  padding: 14px 20px;
  border-right: 1px solid var(--border);
}
.intent-row.head > div:last-child { border-right: none; }
.intent-cell {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}
.intent-cell:last-child { border-right: none; }
.intent-cell.payload {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink2);
  line-height: 1.6;
}
.intent-cell .badge { margin-bottom: 10px; }
.intent-cell p { margin-top: 4px; }

@media (max-width: 760px) {
  .intent-row { grid-template-columns: 1fr; }
  .intent-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .intent-row.head > div { border-right: none; border-bottom: 1px solid var(--border); }
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 1; }
.hero > *:not(.particle-canvas):not(.wave-canvas):not(.aurora-layer),
.page-hero > *:not(.particle-canvas):not(.wave-canvas):not(.aurora-layer) { position: relative; z-index: 2; }

/* ─── Marquee proof bar ──────────────────────────────────────────── */
.marquee-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0, var(--bg) 28px, var(--bg) calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--bg) 28px, var(--bg) calc(100% - 28px), transparent 100%);
}
.marquee-content {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
  padding-right: 32px;
  animation: marquee-slide 36s linear infinite;
  will-change: transform;
}
.marquee-track:hover .marquee-content { animation-play-state: paused; }
@keyframes marquee-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

/* Scroll reveal — single element */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms cubic-bezier(.2,.7,.2,1),
    transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scroll reveal — staggered grid children */
[data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 650ms cubic-bezier(.2,.7,.2,1),
    transform 650ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 40ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 220ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 340ms; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 400ms; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 460ms; }

/* Tilt host */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
[data-tilt-glare] {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center,
    rgba(247, 243, 238, 0.18) 0%,
    rgba(247, 243, 238, 0.06) 35%,
    rgba(247, 243, 238, 0) 60%);
  transition: opacity 220ms ease, transform 220ms ease;
  mix-blend-mode: screen;
}

/* ─── Enhanced button micro-interactions ──────────────────────────── */
.btn-primary, .btn-secondary, .btn-red,
.btn-primary-inv, .btn-outline-inv {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 280ms cubic-bezier(.2,.7,.2,1),
    box-shadow 280ms ease,
    opacity 200ms ease;
}
.btn-primary::after,
.btn-red::after,
.btn-primary-inv::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0) 70%);
  transform: translate3d(-130%, 0, 0);
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover,
.btn-red:hover,
.btn-primary-inv:hover {
  transform: translate3d(0, -1px, 0);
}
.btn-primary:hover::after,
.btn-red:hover::after,
.btn-primary-inv:hover::after {
  transform: translate3d(130%, 0, 0);
}
.btn-primary:hover  { box-shadow: 0 10px 26px -14px rgba(26, 22, 18, 0.65); }
.btn-red:hover      { box-shadow: 0 10px 26px -14px rgba(200, 0, 30, 0.55); opacity: 1; }
.btn-primary-inv:hover { box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.55); opacity: 1; }
.btn-secondary:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 22px -16px rgba(26, 22, 18, 0.45);
}
.btn-outline-inv:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 22px -16px rgba(0, 0, 0, 0.45);
}

/* Focus-visible parity (keyboard) */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-red:focus-visible,
.btn-primary-inv:focus-visible,
.btn-outline-inv:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ─── Card lift / illuminate states ────────────────────────────────── */
.feature-card,
.problem-card,
.arch-node,
.compliance-card,
.pillar-row,
.stat-item {
  position: relative;
  transition:
    transform 320ms cubic-bezier(.2,.7,.2,1),
    background-color 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease;
  will-change: transform;
}
.feature-card:hover,
.problem-card:hover,
.compliance-card:hover {
  background-color: var(--surface);
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 14px 30px -22px rgba(26, 22, 18, 0.45);
  z-index: 2;
}
.arch-node:hover {
  background-color: var(--surface);
  transform: translate3d(0, -2px, 0);
  z-index: 2;
}
.stat-item:hover {
  background-color: var(--surface);
}
.pillar-row:hover {
  background-color: var(--surface);
}

/* Feature-tag dot pulse on card hover */
.feature-card:hover .feature-tag::before {
  animation: tc-pulse 1.6s ease-in-out infinite;
}
@keyframes tc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* Nav link sweep */
.nav-links a {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after {
  transform: scaleX(1);
}

/* Hero entrance animation — runs once on load (above the fold) */
@keyframes tc-hero-rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.tc-hero-in > * {
  animation: tc-hero-rise 850ms cubic-bezier(.2,.7,.2,1) both;
}
.tc-hero-in > *:nth-child(2) { animation-delay: 120ms; }
.tc-hero-in > *:nth-child(3) { animation-delay: 220ms; }
.tc-hero-in > *:nth-child(4) { animation-delay: 320ms; }

/* Honor reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  [data-tilt] { transform: none !important; }
  .particle-canvas, .wave-canvas, .aurora-layer { display: none !important; }
}
