/* TenderSense — built on Cohere 2026 design language */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Brand & accent */
  --primary: #17171c;
  --cohere-black: #000000;
  --ink: #212121;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --action-blue: #1863dc;
  --focus-blue: #4c6ee6;
  --coral: #ff7759;
  --coral-soft: #ffad9b;

  /* TenderSense brand accents (from logo) */
  --ts-navy: #1b3658;
  --ts-blue: #5fa4e6;
  --ts-blue-pale: #e8f2fd;

  /* Surface */
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --card-border: #f2f2f2;

  /* Text & rules */
  --muted: #93939f;
  --slate: #75758a;
  --body-muted: #616161;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;

  /* On-color */
  --on-primary: #ffffff;
  --on-dark: #ffffff;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 32px;
  --r-full: 9999px;

  /* Type families */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", "Arial", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Type roles */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-product-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-section-display {
  font-family: var(--font-ui);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-section-heading {
  font-family: var(--font-ui);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.t-card-heading {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.t-feature-heading {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}
.t-body-large {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.4;
}
.t-body { font-family: var(--font-ui); font-size: 16px; line-height: 1.5; }
.t-button { font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1.71; }
.t-caption { font-family: var(--font-ui); font-size: 14px; line-height: 1.4; }
.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.t-micro { font-family: var(--font-ui); font-size: 12px; line-height: 1.4; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-pill);
  padding: 12px 24px;
}
.btn-primary:hover { background: #2a2a32; }
.btn-primary.on-dark { background: var(--canvas); color: var(--ink); }
.btn-primary.on-dark:hover { background: #f1f1ee; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
}
.btn-secondary.on-dark { color: var(--on-dark); }
.btn-secondary:hover { opacity: 0.7; }

.btn-pill-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 6px 12px;
}
.btn-pill-outline:hover { background: #f6f5f1; }
.btn-pill-outline.on-dark { color: var(--on-dark); border-color: rgba(255,255,255,0.3); }
.btn-pill-outline.on-dark:hover { background: rgba(255,255,255,0.06); }

/* Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Hairline */
.hr { height: 1px; background: var(--hairline); border: 0; }


/* Hero ambient drift */
@keyframes hero-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}
@keyframes hero-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5%, -4%, 0) scale(1.1); }
}
@keyframes hero-drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, -5%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  [aria-hidden="true"] > * { animation: none !important; }
}

/* ── 3D Box Loader (loader-9) ────────────────────────────── */
.ts-loader {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 48px;
}
.ts-loader .box {
  width: 18px;
  height: 18px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(45deg);
}
.ts-loader .box .side-left,
.ts-loader .box .side-right,
.ts-loader .box .side-top {
  position: absolute;
  width: 18px;
  height: 18px;
}
.ts-loader .box .side-left {
  background: rgba(95,164,230,0.5);
  transform: rotateY(-90deg) translateZ(9px);
}
.ts-loader .box .side-right {
  background: rgba(95,164,230,0.75);
  transform: translateZ(9px);
}
.ts-loader .box .side-top {
  background: rgba(95,164,230,0.95);
  transform: rotateX(90deg) translateZ(9px);
}
.ts-loader .box-1 { animation: ts-box-from-left 1.8s ease-in-out infinite; }
.ts-loader .box-2 { animation: ts-box-from-right 1.8s ease-in-out 0.2s infinite; }
.ts-loader .box-3 { animation: ts-box-from-left 1.8s ease-in-out 0.4s infinite; }
.ts-loader .box-4 { animation: ts-box-from-right 1.8s ease-in-out 0.6s infinite; }

@keyframes ts-box-from-left {
  0%   { z-index: 20; opacity: 0; translate: -20px -6px; }
  20%  { z-index: 10; opacity: 1; translate: 0px 0px; }
  40%  { z-index: 9;  translate: 0px 4px; }
  60%  { z-index: 8;  translate: 0px 8px; }
  80%  { z-index: 7;  opacity: 1; translate: 0px 12px; }
  100% { z-index: 5;  translate: 0px 30px; opacity: 0; }
}
@keyframes ts-box-from-right {
  0%   { z-index: 20; opacity: 0; translate: 20px -6px; }
  20%  { z-index: 10; opacity: 1; translate: 0px 0px; }
  40%  { z-index: 9;  translate: 0px 4px; }
  60%  { z-index: 8;  translate: 0px 8px; }
  80%  { z-index: 7;  opacity: 1; translate: 0px 12px; }
  100% { z-index: 5;  translate: 0px 30px; opacity: 0; }
}

/* ── Mobile (390px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Nav */
  .nav-inner      { height: 64px !important; padding: 0 20px !important; }

  /* Hero */
  .hero-section   { padding: 48px 0 40px !important; }
  .hero-bg-fade   { background: linear-gradient(90deg, rgba(0,60,51,0.98) 0%, rgba(0,60,51,0.95) 50%, rgba(0,60,51,0.6) 72%, rgba(0,60,51,0) 88%) !important; }
  .hero-console   { min-width: 680px !important; margin-left: calc((100% - 680px) / 2) !important; transform: scale(0.515); transform-origin: top center; margin-bottom: -252px !important; }
  .hero-media-wrap{ margin-top: 40px !important; }

  /* Mid */
  .split-section  { padding: 48px 0 !important; }
  .dark-band-inner{ grid-template-columns: 1fr !important; gap: 32px !important;
                    padding: 48px 24px !important; }

  /* Chat */
  .chat-section   { padding: 56px 0 !important; }
  .chat-head      { margin-bottom: 32px !important; }

  /* CTA band */
  .cta-band-inner { padding: 48px 24px !important; }

  /* Footer */
  .footer-wrap    { padding: 40px 0 24px !important; }
  .footer-inner   { gap: 24px !important; padding-bottom: 28px !important; flex-direction: column !important; }
}
