/**
 * TEMPO HEALTH GROUP — Brand Design System v2
 * =============================================
 * Custom brand palette, not Tailwind defaults.
 * Built for: warmth, trust, quiet confidence, premium feel.
 */

/* ==========================================================================
   BRAND TOKENS
   ========================================================================== */
:root {
  /* PRIMARY — Custom Deep Teal (not Tailwind's teal) */
  --tempo-primary-50:  #eefcf8;
  --tempo-primary-100: #d0f7ec;
  --tempo-primary-200: #a4eed9;
  --tempo-primary-300: #6adec3;
  --tempo-primary-400: #38c6a8;
  --tempo-primary-500: #1eab90;
  --tempo-primary-600: #148a76;
  --tempo-primary-700: #136f61;
  --tempo-primary-800: #14584f;
  --tempo-primary-900: #144a43;

  /* WARM NEUTRALS — Custom warm grays */
  --tempo-neutral-50:  #faf9f7;
  --tempo-neutral-100: #f2f0ed;
  --tempo-neutral-200: #e4e1dc;
  --tempo-neutral-300: #cfc9c1;
  --tempo-neutral-400: #a89f95;
  --tempo-neutral-500: #857b71;
  --tempo-neutral-600: #635c54;
  --tempo-neutral-700: #4a453f;
  --tempo-neutral-800: #2e2a26;
  --tempo-neutral-900: #1a1815;

  /* ACCENT — Warm amber for highlights */
  --tempo-accent-400: #f0b060;
  --tempo-accent-500: #e69a3a;

  /* SEMANTIC */
  --tempo-bg:         #ffffff;
  --tempo-bg-warm:    var(--tempo-neutral-50);
  --tempo-surface:    #ffffff;
  --tempo-text:       var(--tempo-neutral-900);
  --tempo-text-2:     var(--tempo-neutral-600);
  --tempo-text-3:     var(--tempo-neutral-400);
  --tempo-border:     var(--tempo-neutral-200);
  --tempo-brand:      var(--tempo-primary-600);
  --tempo-brand-dark: var(--tempo-primary-700);
  --tempo-brand-light:var(--tempo-primary-50);

  /* GRADIENT */
  --tempo-grad-brand: linear-gradient(135deg, var(--tempo-primary-700) 0%, var(--tempo-primary-500) 100%);
  --tempo-grad-text:  linear-gradient(135deg, var(--tempo-primary-600) 0%, var(--tempo-primary-400) 60%, var(--tempo-accent-400) 100%);
  --tempo-grad-hero:  linear-gradient(180deg, var(--tempo-primary-50) 0%, #ffffff 60%);

  /* TYPOGRAPHY */
  --tempo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* TYPE SCALE */
  --tempo-ts-xs:   0.75rem;
  --tempo-ts-sm:   0.875rem;
  --tempo-ts-base: 1rem;
  --tempo-ts-lg:   1.125rem;
  --tempo-ts-xl:   1.25rem;
  --tempo-ts-2xl:  1.5rem;
  --tempo-ts-3xl:  2rem;
  --tempo-ts-4xl:  2.5rem;
  --tempo-ts-5xl:  3.25rem;
  --tempo-ts-6xl:  4rem;

  /* SPACING */
  --tempo-s-1: 0.25rem;  --tempo-s-2: 0.5rem;   --tempo-s-3: 0.75rem;
  --tempo-s-4: 1rem;     --tempo-s-5: 1.25rem;   --tempo-s-6: 1.5rem;
  --tempo-s-8: 2rem;     --tempo-s-10: 2.5rem;   --tempo-s-12: 3rem;
  --tempo-s-16: 4rem;    --tempo-s-20: 5rem;     --tempo-s-24: 6rem;
  --tempo-s-32: 8rem;

  /* RADIUS */
  --tempo-r-sm: 0.375rem;  --tempo-r-md: 0.5rem;  --tempo-r-lg: 0.75rem;
  --tempo-r-xl: 1rem;      --tempo-r-2xl: 1.25rem; --tempo-r-3xl: 1.5rem;
  --tempo-r-full: 9999px;

  /* SHADOWS — warmer than default */
  --tempo-sh-sm:  0 1px 2px rgba(26, 24, 21, 0.06);
  --tempo-sh-md:  0 4px 12px rgba(26, 24, 21, 0.08);
  --tempo-sh-lg:  0 8px 24px rgba(26, 24, 21, 0.1);
  --tempo-sh-xl:  0 16px 48px rgba(26, 24, 21, 0.12);
  --tempo-sh-glow: 0 0 40px rgba(20, 138, 118, 0.12);
  --tempo-sh-card: 0 1px 3px rgba(26, 24, 21, 0.04), 0 0 0 1px rgba(26, 24, 21, 0.04);

  /* EASING */
  --tempo-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tempo-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tempo-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   BASE
   ========================================================================== */
.tempo-page {
  font-family: var(--tempo-font);
  color: var(--tempo-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--tempo-bg);
  margin: 0;
}

.tempo-page *, .tempo-page *::before, .tempo-page *::after {
  box-sizing: border-box;
  margin: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.t-display {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--tempo-neutral-900);
}

.t-display-hero {
  font-size: clamp(var(--tempo-ts-4xl), 5vw, var(--tempo-ts-6xl));
}

.t-display-section {
  font-size: clamp(var(--tempo-ts-3xl), 3.5vw, var(--tempo-ts-5xl));
}

.t-gradient-text {
  background: var(--tempo-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-subtitle {
  font-weight: 400;
  font-size: clamp(var(--tempo-ts-lg), 1.3vw, var(--tempo-ts-xl));
  line-height: 1.65;
  color: var(--tempo-text-2);
}

.t-overline {
  font-size: var(--tempo-ts-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tempo-brand);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.t-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--tempo-s-6);
}

.t-section {
  padding: var(--tempo-s-24) 0;
}

@media (max-width: 768px) {
  .t-section { padding: var(--tempo-s-16) 0; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.t-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.t-nav.is-scrolled {
  border-bottom-color: var(--tempo-neutral-100);
  box-shadow: 0 1px 8px rgba(26,24,21,0.04);
}

.t-nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 var(--tempo-s-6);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.t-nav-logo {
  display: flex; align-items: center; gap: var(--tempo-s-2);
  text-decoration: none; color: var(--tempo-neutral-900);
  font-weight: 800; font-size: var(--tempo-ts-lg);
  letter-spacing: -0.02em;
}

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

.t-nav-links {
  display: none; list-style: none; padding: 0; margin: 0;
  align-items: center; gap: var(--tempo-s-1);
}

@media (min-width: 768px) { .t-nav-links { display: flex; } }

.t-nav-links a {
  padding: var(--tempo-s-2) var(--tempo-s-3);
  font-size: var(--tempo-ts-sm); font-weight: 500;
  color: var(--tempo-neutral-500); text-decoration: none;
  border-radius: var(--tempo-r-md);
  transition: color 0.2s, background 0.2s;
}

.t-nav-links a:hover { color: var(--tempo-neutral-800); background: var(--tempo-neutral-50); }

.t-nav-actions { display: flex; align-items: center; gap: var(--tempo-s-3); }

.t-nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none;
  cursor: pointer; color: var(--tempo-neutral-600); border-radius: var(--tempo-r-md);
}
@media (min-width: 768px) { .t-nav-toggle { display: none; } }

.t-mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  z-index: 99; padding: var(--tempo-s-6);
}
.t-mobile-nav.is-open { display: block; }
.t-mobile-nav a {
  display: block; padding: var(--tempo-s-4) 0;
  font-size: var(--tempo-ts-lg); font-weight: 500;
  color: var(--tempo-neutral-700); text-decoration: none;
  border-bottom: 1px solid var(--tempo-neutral-100);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--tempo-s-2);
  font-family: var(--tempo-font); font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--tempo-ease);
}

.t-btn:focus-visible {
  outline: 2px solid var(--tempo-primary-400); outline-offset: 2px;
}

.t-btn-md {
  padding: var(--tempo-s-3) var(--tempo-s-5);
  font-size: var(--tempo-ts-sm);
  border-radius: var(--tempo-r-lg);
}

.t-btn-lg {
  padding: var(--tempo-s-4) var(--tempo-s-8);
  font-size: var(--tempo-ts-base);
  border-radius: var(--tempo-r-xl);
}

.t-btn-brand {
  background: var(--tempo-brand); color: #fff; border-color: var(--tempo-brand);
}
.t-btn-brand:hover {
  background: var(--tempo-brand-dark); border-color: var(--tempo-brand-dark);
  box-shadow: var(--tempo-sh-md), var(--tempo-sh-glow);
  transform: translateY(-1px);
}

.t-btn-outline {
  background: transparent; color: var(--tempo-neutral-700);
  border-color: var(--tempo-neutral-200);
}
.t-btn-outline:hover {
  background: var(--tempo-neutral-50); border-color: var(--tempo-neutral-300);
}

.t-btn-ghost {
  background: transparent; color: var(--tempo-neutral-600); border-color: transparent;
}
.t-btn-ghost:hover { background: var(--tempo-neutral-100); color: var(--tempo-neutral-800); }

.t-btn-white {
  background: #fff; color: var(--tempo-brand); border-color: #fff;
}
.t-btn-white:hover {
  background: var(--tempo-primary-50);
  box-shadow: var(--tempo-sh-md); transform: translateY(-1px);
}

.t-btn-glass {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.t-btn-glass:hover {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3);
}

/* ==========================================================================
   HERO — asymmetric, not centered
   ========================================================================== */
.t-hero {
  padding-top: calc(64px + var(--tempo-s-16));
  padding-bottom: var(--tempo-s-16);
  background: var(--tempo-grad-hero);
  position: relative; overflow: hidden;
}

@media (min-width: 768px) {
  .t-hero {
    padding-top: calc(64px + var(--tempo-s-24));
    padding-bottom: var(--tempo-s-24);
  }
}

.t-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tempo-s-12);
  align-items: center;
}

@media (min-width: 960px) {
  .t-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--tempo-s-16);
  }
}

.t-hero-content { max-width: 540px; }

@media (max-width: 959px) {
  .t-hero-content { text-align: center; max-width: 600px; margin: 0 auto; }
  .t-hero-actions { justify-content: center; }
}

.t-hero h1 { margin-bottom: var(--tempo-s-6); }

.t-hero-sub {
  margin-bottom: var(--tempo-s-8);
}

.t-hero-actions {
  display: flex; align-items: center; gap: var(--tempo-s-4); flex-wrap: wrap;
}

.t-hero-trust {
  display: flex; align-items: center; gap: var(--tempo-s-6); flex-wrap: wrap;
  margin-top: var(--tempo-s-10);
}

@media (max-width: 959px) {
  .t-hero-trust { justify-content: center; }
}

.t-hero-trust span {
  display: flex; align-items: center; gap: var(--tempo-s-2);
  font-size: var(--tempo-ts-xs); font-weight: 600;
  color: var(--tempo-neutral-400);
}

.t-hero-trust svg {
  width: 14px; height: 14px; color: var(--tempo-primary-400);
}

/* Hero decorative elements */
.t-hero::after {
  content: '';
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,138,118,0.05) 0%, transparent 70%);
  top: -10%; right: -5%;
  pointer-events: none;
}

/* ==========================================================================
   PRODUCT VISUAL (hero right side)
   ========================================================================== */
.t-product-visual {
  position: relative;
}

.t-product-card {
  background: var(--tempo-surface);
  border-radius: var(--tempo-r-2xl);
  box-shadow: var(--tempo-sh-xl);
  overflow: hidden;
  border: 1px solid var(--tempo-neutral-100);
}

.t-product-topbar {
  padding: var(--tempo-s-3) var(--tempo-s-4);
  background: var(--tempo-neutral-50);
  border-bottom: 1px solid var(--tempo-neutral-100);
  display: flex; align-items: center; gap: 6px;
}

.t-product-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.t-product-dot:nth-child(1) { background: #EF4444; }
.t-product-dot:nth-child(2) { background: #F59E0B; }
.t-product-dot:nth-child(3) { background: #22C55E; }

.t-product-body {
  padding: var(--tempo-s-5);
}

/* Floating accent card */
.t-product-float {
  position: absolute;
  background: #fff;
  border-radius: var(--tempo-r-xl);
  box-shadow: var(--tempo-sh-lg);
  padding: var(--tempo-s-4);
  border: 1px solid var(--tempo-neutral-100);
}

.t-product-float-1 {
  bottom: -16px; left: -24px; width: 180px;
  animation: t-float 6s ease-in-out infinite;
}

.t-product-float-2 {
  top: 20px; right: -20px; width: 160px;
  animation: t-float 6s ease-in-out infinite 2s;
}

@keyframes t-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 959px) {
  .t-product-float { display: none; }
}

/* ==========================================================================
   BENTO GRID — features with varied sizes
   ========================================================================== */
.t-bento {
  display: grid;
  gap: var(--tempo-s-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
  .t-bento-wide { grid-column: span 2; }
}

.t-bento-card {
  background: var(--tempo-surface);
  border: 1px solid var(--tempo-neutral-100);
  border-radius: var(--tempo-r-2xl);
  padding: var(--tempo-s-8);
  transition: box-shadow 0.4s var(--tempo-ease), border-color 0.4s var(--tempo-ease), transform 0.4s var(--tempo-ease);
  position: relative; overflow: hidden;
}

.t-bento-card:hover {
  box-shadow: var(--tempo-sh-lg);
  border-color: var(--tempo-primary-100);
  transform: translateY(-2px);
}

.t-bento-icon {
  width: 44px; height: 44px; border-radius: var(--tempo-r-lg);
  background: var(--tempo-brand-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--tempo-s-5);
}

.t-bento-icon svg {
  width: 22px; height: 22px; color: var(--tempo-brand);
  stroke-width: 1.75;
}

.t-bento-title {
  font-size: var(--tempo-ts-lg); font-weight: 700;
  color: var(--tempo-neutral-900);
  margin-bottom: var(--tempo-s-2);
}

.t-bento-desc {
  font-size: var(--tempo-ts-sm); line-height: 1.7;
  color: var(--tempo-neutral-500);
}

/* Highlight card variant */
.t-bento-highlight {
  background: var(--tempo-grad-brand);
  border-color: transparent;
  color: #fff;
}

.t-bento-highlight .t-bento-icon {
  background: rgba(255,255,255,0.15);
}

.t-bento-highlight .t-bento-icon svg { color: #fff; }
.t-bento-highlight .t-bento-title { color: #fff; }
.t-bento-highlight .t-bento-desc { color: rgba(255,255,255,0.8); }
.t-bento-highlight:hover { border-color: transparent; transform: translateY(-2px); }

/* ==========================================================================
   ALTERNATING FEATURE ROWS
   ========================================================================== */
.t-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tempo-s-12);
  align-items: center;
}

@media (min-width: 768px) {
  .t-feature-row { grid-template-columns: 1fr 1fr; gap: var(--tempo-s-16); }
  .t-feature-row-reverse .t-feature-visual { order: -1; }
}

.t-feature-visual {
  background: var(--tempo-neutral-50);
  border: 1px solid var(--tempo-neutral-100);
  border-radius: var(--tempo-r-2xl);
  padding: var(--tempo-s-8);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   SECURITY — horizontal scrolling cards on mobile
   ========================================================================== */
.t-security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tempo-s-4);
}

@media (min-width: 768px) {
  .t-security-grid { grid-template-columns: repeat(2, 1fr); }
}

.t-security-card {
  background: var(--tempo-neutral-50);
  border-radius: var(--tempo-r-2xl);
  padding: var(--tempo-s-6);
  display: flex; align-items: flex-start; gap: var(--tempo-s-4);
  transition: box-shadow 0.3s var(--tempo-ease), transform 0.3s var(--tempo-ease);
}

.t-security-card:hover {
  box-shadow: var(--tempo-sh-md);
  transform: translateY(-1px);
}

.t-security-icon {
  width: 40px; height: 40px; border-radius: var(--tempo-r-lg);
  background: var(--tempo-primary-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.t-security-icon svg { width: 20px; height: 20px; color: var(--tempo-primary-700); }

.t-security-title {
  font-size: var(--tempo-ts-sm); font-weight: 700;
  color: var(--tempo-neutral-800);
  margin-bottom: var(--tempo-s-1);
}

.t-security-desc {
  font-size: var(--tempo-ts-sm); line-height: 1.65;
  color: var(--tempo-neutral-500);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.t-cta {
  background: var(--tempo-grad-brand);
  border-radius: var(--tempo-r-3xl);
  padding: var(--tempo-s-16) var(--tempo-s-8);
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}

@media (min-width: 768px) {
  .t-cta { padding: var(--tempo-s-20) var(--tempo-s-16); }
}

.t-cta h2 { color: #fff; margin-bottom: var(--tempo-s-4); }
.t-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 480px; margin: 0 auto var(--tempo-s-8) auto;
  font-size: var(--tempo-ts-lg);
}

.t-cta::before {
  content: '';
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.04);
  top: -100px; right: -100px; pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.t-footer {
  background: var(--tempo-neutral-900);
  color: var(--tempo-neutral-400);
  padding: var(--tempo-s-16) 0 var(--tempo-s-8) 0;
}

.t-footer a {
  color: var(--tempo-neutral-400); text-decoration: none;
  transition: color 0.2s;
}
.t-footer a:hover { color: #fff; }

.t-footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--tempo-s-10); margin-bottom: var(--tempo-s-12);
}

@media (min-width: 768px) {
  .t-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.t-footer-brand {
  font-size: var(--tempo-ts-sm); line-height: 1.7; max-width: 280px;
}

.t-footer-heading {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tempo-neutral-300); margin-bottom: var(--tempo-s-4);
}

.t-footer-links { list-style: none; padding: 0; margin: 0; }
.t-footer-links li { margin-bottom: var(--tempo-s-3); }
.t-footer-links a { font-size: var(--tempo-ts-sm); }

.t-footer-bottom {
  border-top: 1px solid var(--tempo-neutral-800);
  padding-top: var(--tempo-s-8);
  display: flex; flex-direction: column; gap: var(--tempo-s-4);
  align-items: center;
}

@media (min-width: 768px) {
  .t-footer-bottom { flex-direction: row; justify-content: space-between; }
}

.t-footer-bottom p { font-size: var(--tempo-ts-sm); margin: 0; }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.t-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--tempo-ease-out), transform 0.6s var(--tempo-ease-out);
}

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

.t-reveal-d1 { transition-delay: 80ms; }
.t-reveal-d2 { transition-delay: 160ms; }
.t-reveal-d3 { transition-delay: 240ms; }
.t-reveal-d4 { transition-delay: 320ms; }
.t-reveal-d5 { transition-delay: 400ms; }

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.t-text-center { text-align: center; }
.t-balance { text-wrap: balance; }
.t-max-prose { max-width: 60ch; }
.t-mx-auto { margin-left: auto; margin-right: auto; }
.t-mt-section { margin-top: var(--tempo-s-16); }

.t-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;
}

/* ==========================================================================
   CURSOR GLOW — the "Linear effect" on bento cards
   ========================================================================== */
.t-bento-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
}

.t-bento-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--glow-x) var(--glow-y),
    rgba(20, 138, 118, 0.08) 0%,
    transparent 100%
  );
  opacity: var(--glow-opacity);
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.t-bento-card > * { position: relative; z-index: 1; }

.t-bento-highlight::before {
  background: radial-gradient(
    320px circle at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
}

/* ==========================================================================
   GRADIENT TEXT SHIMMER
   ========================================================================== */
@keyframes t-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.t-gradient-text {
  background-size: 200% auto;
  animation: t-shimmer 6s ease-in-out infinite;
}

/* ==========================================================================
   DOT GRID PATTERN
   ========================================================================== */
.t-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--tempo-neutral-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* ==========================================================================
   PRODUCT VISUAL — perspective + depth
   ========================================================================== */
.t-product-card {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.6s var(--tempo-ease);
}

.t-product-visual:hover .t-product-card {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

/* Schedule row stagger animation */
.t-schedule-row {
  opacity: 0;
  transform: translateX(-8px);
  animation: t-row-in 0.4s var(--tempo-ease-out) forwards;
}

.t-schedule-row:nth-child(1) { animation-delay: 0.3s; }
.t-schedule-row:nth-child(2) { animation-delay: 0.5s; }
.t-schedule-row:nth-child(3) { animation-delay: 0.7s; }

@keyframes t-row-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   PRACTICE-TYPE MARQUEE — social proof without needing real logos
   ========================================================================== */
.t-marquee-wrap {
  overflow: hidden;
  position: relative;
  padding: var(--tempo-s-6) 0;
}

.t-marquee-wrap::before,
.t-marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}

.t-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--tempo-bg) 0%, transparent 100%);
}

.t-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--tempo-bg) 0%, transparent 100%);
}

.t-marquee {
  display: flex;
  gap: var(--tempo-s-4);
  animation: t-scroll 30s linear infinite;
  width: max-content;
}

@keyframes t-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-marquee-item {
  display: flex; align-items: center; gap: var(--tempo-s-2);
  padding: var(--tempo-s-2) var(--tempo-s-4);
  background: var(--tempo-neutral-50);
  border: 1px solid var(--tempo-neutral-100);
  border-radius: var(--tempo-r-full);
  font-size: var(--tempo-ts-sm);
  font-weight: 500;
  color: var(--tempo-neutral-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.t-marquee-item svg {
  width: 16px; height: 16px; color: var(--tempo-primary-400);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .t-marquee { animation: none; }
  .t-schedule-row { opacity: 1; transform: none; animation: none; }
  .t-gradient-text { animation: none; }
}

/* ==========================================================================
   FEATURE VISUAL — richer mini-UI mockups
   ========================================================================== */
.t-mini-ui {
  background: #fff;
  border-radius: var(--tempo-r-xl);
  padding: var(--tempo-s-5);
  box-shadow: var(--tempo-sh-md);
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.t-mini-ui-row {
  display: flex; align-items: center; gap: var(--tempo-s-3);
  padding: var(--tempo-s-2) 0;
}

.t-mini-ui-row + .t-mini-ui-row {
  border-top: 1px solid var(--tempo-neutral-100);
}

.t-mini-ui-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.t-mini-ui-bar {
  height: 6px; border-radius: 3px; background: var(--tempo-neutral-100);
  flex: 1;
}

.t-mini-ui-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--tempo-primary-400);
}

.t-mini-ui-label {
  font-size: var(--tempo-ts-xs); color: var(--tempo-neutral-400);
  min-width: 50px;
}

.t-mini-ui-value {
  font-size: var(--tempo-ts-sm); font-weight: 700;
  color: var(--tempo-neutral-800);
}

/* ==========================================================================
   CTA — animated mesh background
   ========================================================================== */
.t-cta::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.t-cta > * { position: relative; z-index: 1; }

/* ==========================================================================
   SECTION CONNECTOR LINES — visual continuity
   ========================================================================== */
.t-connector {
  display: flex; justify-content: center; padding: var(--tempo-s-4) 0;
}

.t-connector-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--tempo-neutral-200) 0%, transparent 100%);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
@media (prefers-contrast: high) {
  .t-bento-card { border-width: 2px; }
  .t-nav { border-bottom-width: 2px; }
}
