/* ============================================================
   TendersLab Home Redesign v2 - UX/UI Optimized
   Desktop-first, mobile-perfect, zero wasted space
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --tl-bg:           #ffffff;
  --tl-bg-soft:      #f8f7ff;
  --tl-bg-card:      #f3f1ff;
  --tl-primary:      #5a5aff;
  --tl-primary-dark: #4540d4;
  --tl-violet:       #8b30d0;
  --tl-teal:         #3ecfc6;
  --tl-gold:         #f5b944;
  --tl-text:         #0d0f1a;
  --tl-text-muted:   #5c6680;
  --tl-text-faint:   #9aa2b8;
  --tl-border:       rgba(90,90,255,0.1);
  --tl-border-med:   rgba(90,90,255,0.15);
  --tl-shadow-sm:    0 2px 8px rgba(90,90,255,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --tl-shadow-md:    0 6px 24px rgba(90,90,255,0.13), 0 2px 6px rgba(0,0,0,0.06);
  --tl-shadow-lg:    0 16px 52px rgba(90,90,255,0.18), 0 4px 12px rgba(0,0,0,0.07);
  --tl-shadow-xl:    0 28px 80px rgba(90,90,255,0.22), 0 8px 24px rgba(0,0,0,0.1);
  --tl-radius:       16px;
  --tl-radius-lg:    24px;
  --tl-container:    1160px;
  /* Spacing scale */
  --sp-xs:  12px;
  --sp-sm:  20px;
  --sp-md:  40px;
  --sp-lg:  72px;
  --sp-xl:  100px;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(97,97,255,0); }
  50%      { box-shadow: 0 0 0 6px rgba(97,97,255,0.12); }
}
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes shimmerIn {
  from { left: -80%; }
  to   { left: 120%; }
}

/* ── Reveal Utility ──────────────────────────────────────── */
.tl-reveal {
  opacity: 0;
  animation: revealUp 0.65s cubic-bezier(0.22, 0.8, 0.4, 1) forwards;
  animation-play-state: paused;
}
.tl-reveal.in-view { animation-play-state: running; }
.tl-d1 { animation-delay: 0s; }
.tl-d2 { animation-delay: 0.08s; }
.tl-d3 { animation-delay: 0.18s; }
.tl-d4 { animation-delay: 0.3s; }
.tl-d5 { animation-delay: 0.44s; }

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

/* ── Layout Container ────────────────────────────────────── */
.tl-container {
  max-width: var(--tl-container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.tl-section { padding: var(--sp-xl) 0; }

@media (max-width: 768px) {
  .tl-container { padding: 0 20px; }
  .tl-section { padding: 56px 0; }
}

/* ── Section Headers ─────────────────────────────────────── */
.tl-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.tl-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tl-primary); margin-bottom: 14px;
}
.tl-h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--tl-text); margin-bottom: 14px; line-height: 1.15;
}
.tl-lead {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--tl-text-muted); max-width: 540px;
  margin: 0 auto; line-height: 1.75;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   1. HERO - Two-column: text left, product visual right
═══════════════════════════════════════════════════════════ */
.hero-v2 {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 15%, rgba(90,90,255,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,48,208,0.06) 0%, transparent 60%),
    linear-gradient(165deg, #ebebff 0%, #f4f1ff 25%, #eef2ff 50%, #fafafe 80%, #f0fbfa 100%);
  padding: 70px var(--sp-md) 0;
}
/* Subtle grain texture overlay */
.hero-v2::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}

/* Two-column body - not used, kept for future */
.hero-v2-body {
  display: contents;
}

/* Gradient blobs - stronger, more visible */
.hero-blob-bg {
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 150vw); height: 700px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%,
    rgba(97,97,255,0.22) 0%, rgba(122,55,186,0.10) 50%, transparent 75%);
  pointer-events: none; z-index: 0;
}
.hero-blob-bg-2 {
  position: absolute; bottom: -80px; right: -100px;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse 65% 65%,
    rgba(78,205,196,0.13) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
/* Third blob: subtle left-side warmth */
.hero-blob-bg-3 {
  position: absolute; top: 30%; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse 60% 60%,
    rgba(97,97,255,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Left text column */
.hero-v2-inner {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.hero-v2-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(90,90,255,0.06);
  border: 1px solid rgba(90,90,255,0.22);
  border-radius: 999px; padding: 7px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tl-primary); margin-bottom: 28px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(90,90,255,0.1);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tl-primary); animation: glowDot 2.2s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(90,90,255,0.6);
}

.hero-v2-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--tl-text);
  margin-bottom: 22px;
}

/* ── "AI arm" - the money phrase ─────────────────────── */
.hero-gradient-text {
  display: inline-block;
  font-size: 1.38em;
  font-weight: 700;
  line-height: 0.95;
  background: linear-gradient(110deg,
    var(--tl-primary) 0%,
    var(--tl-violet)  40%,
    #c040a8           70%,
    var(--tl-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neuronGlow 3.5s ease-in-out infinite;
}

@keyframes neuronGlow {
  0%, 100% { filter: drop-shadow(0 2px 12px rgba(90,90,255,0.2)); }
  50%       { filter: drop-shadow(0 2px 32px rgba(139,48,208,0.55)); }
}

.hero-v2-sub {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--tl-text-muted); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.75;
  font-weight: 500;
}

.hero-v2-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

/* ── Right visual column ──────────────────────────────────── */
.hero-v2-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Browser-chrome product frame */
.hero-visual-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(97,97,255,0.18),
    0 8px 24px rgba(0,0,0,0.12),
    0 0 0 1px rgba(97,97,255,0.1);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.55s ease, box-shadow 0.55s ease;
}
.hero-v2-visual:hover .hero-visual-frame {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
  box-shadow:
    0 40px 100px rgba(97,97,255,0.22),
    0 12px 32px rgba(0,0,0,0.14),
    0 0 0 1px rgba(97,97,255,0.12);
}

/* Fake browser topbar */
.hero-visual-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e1e2e;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hvt-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.hvt-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top left;
}

/* Floating 'Live in production' badge */
.hero-visual-badge {
  position: absolute;
  bottom: -14px;
  left: -16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  white-space: nowrap;
}

.hero-v2-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--tl-primary) 0%, var(--tl-violet) 100%);
  color: #fff; padding: 16px 36px; border-radius: 14px;
  font-size: 0.97rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 28px rgba(90,90,255,0.38), 0 2px 6px rgba(90,90,255,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}
.hero-v2-cta::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.hero-v2-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(90,90,255,0.46), 0 4px 10px rgba(90,90,255,0.2); color: #fff; }
.hero-v2-cta:hover::after { left: 150%; }

.hero-v2-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--tl-text-muted); border: 1.5px solid var(--tl-border-med);
  background: #fff; padding: 13px 24px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.hero-v2-secondary:hover {
  border-color: var(--tl-primary); color: var(--tl-primary);
  background: rgba(97,97,255,0.04);
}

/* ═══════════════════════════════════════════════════════════
   2. TRUST STRIP - Tight, immediate
═══════════════════════════════════════════════════════════ */
.trust-strip {
  background: #fff;
  border-top: 1px solid var(--tl-border);
  border-bottom: 1px solid var(--tl-border);
  padding: 28px 0;
  overflow: hidden;
}

.trust-strip-label {
  text-align: center;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tl-text-faint); margin-bottom: 20px;
}

.trust-strip-track {
  position: relative; overflow: hidden;
}
.trust-strip-track::before,
.trust-strip-track::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.trust-strip-track::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.trust-strip-track::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.trust-strip-inner {
  display: flex; align-items: center;
  animation: scrollLeft 36s linear infinite;
  will-change: transform; width: max-content;
}
.trust-strip-inner:hover { animation-play-state: paused; }

.client-logo-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 36px; min-width: 140px; height: 52px; flex-shrink: 0;
  filter: grayscale(1) opacity(0.42);
  transition: filter 0.3s ease, transform 0.25s ease;
  cursor: default;
}
.client-logo-item:hover { filter: grayscale(0) opacity(1); transform: scale(1.07); }
.client-logo-item img { max-height: 38px; max-width: 120px; object-fit: contain; display: block; }

.client-logo-text {
  font-family: 'Caveat', cursive;
  font-size: 12.5px; font-weight: 700;
  color: var(--tl-text-muted); white-space: nowrap;
}
.client-logo-sep {
  width: 1px; height: 28px;
  background: var(--tl-border); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   3. CASE STUDIES - Alternating rows, full-bleed visuals
═══════════════════════════════════════════════════════════ */
.case-studies-section {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(90,90,255,0.06) 0%, transparent 70%),
    linear-gradient(160deg, #eeeeff 0%, #f4f1ff 40%, #f0f4ff 100%);
}


.cs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  border-radius: var(--tl-radius-lg);
  border: 1px solid var(--tl-border);
  overflow: hidden;
  box-shadow: var(--tl-shadow-md);
  margin-bottom: 28px;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  position: relative;
}
.cs-row:hover { box-shadow: var(--tl-shadow-lg); transform: translateY(-3px); }
.cs-row.cs-reverse .cs-content { order: 2; }
.cs-row.cs-reverse .cs-visual  { order: 1; }

/* Shimmer on hover */
.cs-row::after {
  content: ''; position: absolute;
  top: 0; left: -80%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(97,97,255,0.035), transparent);
  transform: skewX(-12deg);
  transition: left 0.8s ease;
  pointer-events: none;
}
.cs-row:hover::after { left: 180%; }

.cs-content {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}

/* Compact on tighter screens */
@media (max-width: 1100px) {
  .cs-content { padding: 36px 32px; }
}

.cs-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 5px 11px;
  border-radius: 999px; margin-bottom: 16px; width: fit-content;
}
.badge-deployed    { background: rgba(16,185,129,0.09); color: #059669; border: 1px solid rgba(16,185,129,0.22); }
.badge-partnership { background: rgba(97,97,255,0.09); color: var(--tl-primary); border: 1px solid rgba(97,97,255,0.18); }
.badge-research    { background: rgba(122,55,186,0.09); color: var(--tl-violet); border: 1px solid rgba(122,55,186,0.2); }

.cs-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--tl-text); margin-bottom: 14px; line-height: 1.2;
}
.cs-desc {
  font-size: clamp(0.88rem, 1.2vw, 0.97rem);
  line-height: 1.8; color: var(--tl-text-muted); margin-bottom: 22px;
}
.cs-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.cs-tag {
  font-size: 11px; font-weight: 600; padding: 3px 11px;
  border-radius: 999px; background: var(--tl-bg-card);
  color: var(--tl-text-muted); border: 1px solid var(--tl-border-med);
}
.cs-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--tl-primary); text-decoration: none;
  transition: gap 0.18s, color 0.18s; width: fit-content;
}
.cs-link:hover { gap: 11px; color: var(--tl-primary-dark); }
.cs-link svg { transition: transform 0.18s; }
.cs-link:hover svg { transform: translateX(3px); }

.cs-visual {
  position: relative; min-height: 340px;
  background: linear-gradient(135deg, rgba(97,97,255,0.05), rgba(122,55,186,0.03));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cs-visual img, .cs-visual video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.cs-row:hover .cs-visual img,
.cs-row:hover .cs-visual video { transform: scale(1.035); }

/* Visual placeholder emoji */
.cs-visual-placeholder {
  font-size: 64px; opacity: 0.12;
  user-select: none; pointer-events: none;
}

/* ── Compact card grid (new layout) ─────────────────────── */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cs-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--tl-radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(90,90,255,0.1),
    0 1px 4px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
/* Top accent bar - always faintly visible */
.cs-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tl-primary), var(--tl-violet));
  opacity: 0.25;
  transition: opacity 0.28s;
}
.cs-card:hover {
  box-shadow:
    0 20px 52px rgba(90,90,255,0.17),
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-5px);
}
.cs-card:hover::before { opacity: 1; }

.cs-card .cs-badge { margin-bottom: 14px; }
.cs-card .cs-title { font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 12px; }
.cs-card .cs-desc  { font-size: 0.88rem; margin-bottom: 18px; flex: 1; }
.cs-card .cs-tags  { margin-bottom: 20px; }
.cs-card .cs-link  { margin-top: auto; }

/* Badge + logo row at top of each card */
.cs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.cs-card-header .cs-badge { margin-bottom: 0; }

/* Institution logo */
.cs-inst-logo {
  height: 40px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════════════════
   4. PRODUCTS - 2-col cards, dense info hierarchy
═══════════════════════════════════════════════════════════ */
.products-section { background: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--tl-bg-soft);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow 0.28s, transform 0.28s, border-color 0.28s;
}
/* Top accent line */
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tl-primary), var(--tl-violet));
  opacity: 0; transition: opacity 0.28s;
}
.product-card:hover { box-shadow: var(--tl-shadow-lg); transform: translateY(-4px); border-color: rgba(97,97,255,0.22); }
.product-card:hover::before { opacity: 1; }

.product-logo {
  height: 32px; object-fit: contain;
  margin-bottom: 20px; max-width: 140px;
}
.product-headline {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem; font-weight: 800;
  color: var(--tl-text); margin-bottom: 10px; letter-spacing: -0.02em;
}
.product-desc {
  font-size: 0.9rem; line-height: 1.78;
  color: var(--tl-text-muted); flex: 1; margin-bottom: 18px;
}
.product-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.product-chip {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px;
  background: rgba(97,97,255,0.07); color: var(--tl-primary);
  border: 1px solid rgba(97,97,255,0.14);
}

.product-award {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--tl-border-med);
  margin-bottom: 10px; font-size: 11.5px; color: var(--tl-text-muted);
  line-height: 1.5;
}
.product-award .aw-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.product-award strong { color: var(--tl-text); display: block; font-size: 12px; }

.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 700; color: var(--tl-primary);
  text-decoration: none; margin-top: 14px; transition: gap 0.18s;
}
.product-link:hover { gap: 10px; color: var(--tl-primary-dark); }

/* ═══════════════════════════════════════════════════════════
   5. FOUNDER - Side-by-side, photo + content
═══════════════════════════════════════════════════════════ */
.founder-section {
  background: linear-gradient(135deg,
    rgba(97,97,255,0.03) 0%,
    rgba(122,55,186,0.02) 50%,
    rgba(78,205,196,0.02) 100%);
  border-top: 1px solid var(--tl-border);
  border-bottom: 1px solid var(--tl-border);
}

.founder-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px; align-items: center;
  max-width: 900px; margin: 0 auto;
}

.founder-photo {
  width: 220px; height: 260px;
  object-fit: cover; object-position: top;
  border-radius: 18px;
  box-shadow: var(--tl-shadow-lg);
  border: 2px solid rgba(97,97,255,0.13);
  display: block;
}

.founder-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tl-primary); margin-bottom: 8px;
}
.founder-name {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--tl-text); margin-bottom: 4px;
}
.founder-role {
  font-size: 0.9rem; color: var(--tl-text-muted);
  margin-bottom: 18px; font-weight: 500;
}
.founder-bio {
  font-size: 0.95rem; line-height: 1.82;
  color: var(--tl-text-muted); margin-bottom: 10px;
}

.founder-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.founder-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--tl-border-med); background: #fff;
  color: var(--tl-text); transition: all 0.18s ease;
  white-space: nowrap;
}
.founder-link:hover { border-color: var(--tl-primary); color: var(--tl-primary); transform: translateY(-1px); box-shadow: var(--tl-shadow-sm); }
.founder-link.fl-spotify:hover { border-color: #1ed760; color: #14a34a; background: rgba(30,215,96,0.04); }
.founder-link.fl-linkedin:hover { border-color: #0077b5; color: #005f8e; background: rgba(0,119,181,0.04); }

/* ═══════════════════════════════════════════════════════════
   6. LINKEDIN FEED - 3-col cards, clean
═══════════════════════════════════════════════════════════ */
.linkedin-section { background: var(--tl-bg-soft); }

.linkedin-header-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.linkedin-header-left .tl-eyebrow { display: block; margin-bottom: 6px; }
.linkedin-header-left .tl-h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 4px; }
.linkedin-header-left p { font-size: 0.9rem; color: var(--tl-text-muted); margin: 0; }

.linkedin-profile-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.86rem; font-weight: 600; color: #0077b5;
  text-decoration: none; padding: 10px 16px;
  border-radius: 10px; border: 1.5px solid rgba(0,119,181,0.22);
  background: rgba(0,119,181,0.05);
  transition: all 0.18s; flex-shrink: 0; white-space: nowrap;
}
.linkedin-profile-btn:hover { background: rgba(0,119,181,0.1); border-color: rgba(0,119,181,0.38); color: #005f8e; }

.linkedin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.li-card {
  background: #fff; border-radius: var(--tl-radius);
  border: 1px solid var(--tl-border); padding: 22px;
  box-shadow: var(--tl-shadow-sm); display: flex;
  flex-direction: column; gap: 12px;
  transition: box-shadow 0.28s, transform 0.28s;
}
.li-card:hover { box-shadow: var(--tl-shadow-md); transform: translateY(-3px); }

.li-card-header { display: flex; align-items: center; gap: 10px; }
.li-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2px solid rgba(97,97,255,0.13); flex-shrink: 0;
}
.li-name { font-weight: 700; font-size: 0.88rem; color: var(--tl-text); line-height: 1.3; }
.li-role-date { font-size: 0.73rem; color: var(--tl-text-faint); }
.li-linkedin-icon { margin-left: auto; width: 17px; height: 17px; fill: #0077b5; flex-shrink: 0; }

.li-body { font-size: 0.88rem; line-height: 1.75; color: var(--tl-text-muted); flex: 1; }
.li-body strong { color: var(--tl-text); }

.li-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--tl-border);
}
.li-stats { font-size: 0.75rem; color: var(--tl-text-faint); }
.li-view {
  font-size: 0.8rem; font-weight: 600; color: #0077b5;
  text-decoration: none; display: inline-flex; align-items: center; gap: 3px;
  transition: gap 0.18s;
}
.li-view:hover { gap: 6px; color: #005f8e; }

.li-daily-note {
  text-align: center; margin-top: 24px;
  font-size: 0.88rem; color: var(--tl-text-faint);
}
.li-daily-note a { color: #0077b5; font-weight: 600; text-decoration: none; }
.li-daily-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   7. CTA BAND
═══════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, #101828 0%, #1c1752 100%);
  padding: 56px var(--sp-md); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%); width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(97,97,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800;
  color: #fff; letter-spacing: -0.03em; margin-bottom: 12px; position: relative;
}
.cta-band-sub {
  font-size: clamp(0.9rem, 1.5vw, 1rem); color: rgba(255,255,255,0.58);
  margin: 0 auto 36px; max-width: 460px; line-height: 1.7; position: relative;
}
.cta-band-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; position: relative;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tl-primary); color: #fff;
  padding: 14px 30px; border-radius: 10px;
  font-weight: 700; font-size: 0.93rem; text-decoration: none;
  box-shadow: 0 6px 20px rgba(97,97,255,0.38);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(97,97,255,0.52); color: #fff; }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.78); border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 0.93rem; text-decoration: none;
  transition: all 0.18s;
}
.cta-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.38); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .founder-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; max-width: 600px; }
  .founder-photo { margin: 0 auto; width: 180px; height: 214px; }
  .founder-links { justify-content: center; }

  .linkedin-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero: compact, still impactful */
  .hero-v2 {
    min-height: 78vh; /* Shorter - lets trust strip peek on mobile */
    padding: 88px 20px 52px;
  }
  .hero-v2-title { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-v2-sub { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-v2-badge { font-size: 10px; padding: 5px 13px; }
  .hero-v2-actions { flex-direction: column; gap: 10px; }
  .hero-v2-cta, .hero-v2-secondary {
    width: 100%; max-width: 360px; justify-content: center;
    padding: 14px 24px;
  }

  /* Trust strip: smaller logos, faster scroll */
  .trust-strip { padding: 20px 0; }
  .trust-strip-label { font-size: 10px; margin-bottom: 14px; }
  .client-logo-item { padding: 0 24px; min-width: 110px; height: 44px; }
  .client-logo-item img { max-height: 30px; max-width: 90px; }
  .client-logo-text { font-size: 11px; }

  /* Case studies: stack vertically */
  .cs-row { grid-template-columns: 1fr; }
  .cs-row.cs-reverse .cs-content { order: 1; }
  .cs-row.cs-reverse .cs-visual  { order: 2; }
  .cs-visual { min-height: 200px; }
  .cs-content { padding: 28px 22px; }
  .cs-title { font-size: 1.2rem; }

  /* Products: single column, full width */
  .products-grid { grid-template-columns: 1fr; max-width: 100%; }
  .product-card { padding: 28px 24px; }

  /* Section headers */
  .tl-section { padding: 52px 0; }
  .tl-section-header { margin-bottom: 36px; }
  .tl-h2 { font-size: 1.65rem; }

  /* LinkedIn: single column */
  .linkedin-grid { grid-template-columns: 1fr; gap: 14px; }
  .linkedin-header-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .li-card { padding: 18px; }

  /* CTA */
  .cta-band { padding: 60px 20px; }
  .cta-band-btns { flex-direction: column; gap: 10px; }
  .cta-primary, .cta-ghost { width: 100%; max-width: 340px; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-v2-title { font-size: 1.75rem; }
  .hero-v2-badge { display: none; } /* Remove badge on tiny screens - hero needs space */
  .cs-content { padding: 22px 18px; }
  .founder-photo { width: 150px; height: 178px; }
}

/* ── Nav Contact pill ────────────────────────────────────── */
.nav-cta-link {
  background: linear-gradient(135deg, #6161ff 0%, #4e49d5 100%) !important;
  color: #fff !important; padding: 8px 18px !important;
  border-radius: 8px !important; font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(97,97,255,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.nav-cta-link:hover {
  color: #fff !important; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(97,97,255,0.38) !important;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL OVERRIDES - fixes conflicts from styles.css
═══════════════════════════════════════════════════════════ */

/* Reset body background - new design uses plain white/near-white */
body {
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
body::before { display: none !important; }

/* The old .container clips our shimmer/hover animations */
.container { overflow-x: visible !important; }

/* Only reset the outermost wrapper on the homepage - not inner page containers */
body.home-page > .container {
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Nav clearance handled by hero-v2-inner padding-top */

/* ── Mobile nav improvements ───────────────────────────── */
@media (max-width: 768px) {
  .main-nav {
    padding: 10px 16px !important;
  }
  /* Make mobile menu full-width, easy to tap */
  .nav-links li a,
  .nav-links li a.nav-item {
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }
  /* Ensure CTA pill still works on mobile */
  .nav-cta-link {
    min-height: 40px !important;
    padding: 8px 16px !important;
  }
}

/* ── Fluid typography guard ─────────────────────────────── */
/* Prevent text from ever overflowing its container */
.hero-v2-title,
.tl-h2,
.cs-title,
.founder-name,
.dw-hero-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Trust strip horizontal scroll containment ──────────── */
.trust-strip { width: 100%; max-width: 100vw; }

/* ── Case study visual min-height per breakpoint ─────────── */
@media (min-width: 1200px) {
  .cs-visual { min-height: 400px; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .cs-visual { min-height: 300px; }
}

/* ── LinkedIn grid gap compression on narrow screens ──────── */
@media (max-width: 900px) and (min-width: 769px) {
  .linkedin-grid { grid-template-columns: 1fr; }
}

/* ── Products: maintain readable card width on mid screens ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; max-width: 540px; }
}

/* ── Founder photo on mobile: smaller + centered neatly ──── */
@media (max-width: 480px) {
  .founder-photo { width: 140px; height: 166px; }
  .founder-name  { font-size: 1.55rem; }
  .founder-link  { font-size: 0.82rem; padding: 9px 14px; }
}

/* ── CTA band safe-area bottom padding for notched phones ─── */
.cta-band {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) {
  .cta-band { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ── Prevent tap-highlight on interactive elements ──────────── */
.hero-v2-cta, .hero-v2-secondary,
.cs-link, .product-link, .founder-link,
.li-view, .cta-primary, .cta-ghost,
.client-logo-item {
  -webkit-tap-highlight-color: transparent;
}

/* ── Ensure images in trust strip never stretch ────────────── */
.client-logo-item img {
  width: auto;
  max-width: 100%;
}

/* ── Scroll snap for mobile case study rows ────────────────── */
@media (max-width: 768px) {
  .case-studies-section .tl-container > div[style] { scroll-snap-align: none; }
}

/* ── Fix footer rendering on the new page layout ───────────── */
.site-footer { margin-top: 0; }

/* Hero layout settled - no overrides needed */

/* ── Hero responsive: collapse to single column ─────────── */
@media (max-width: 1024px) {
  .hero-v2-body {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 32px;
  }
  .hero-v2-inner {
    align-items: center;
    text-align: center;
  }
  .hero-v2-sub { margin: 0 auto 36px; }
  .hero-v2-actions { justify-content: center; }
  .hero-v2-visual { display: none; }
}

@media (max-width: 768px) {
  .hero-v2 { padding: 100px 20px 0; }
  .hero-v2-body { gap: 24px; }
}

/* ── Hero trust strip - animated marquee ──────────────────── */
.hero-trust-strip {
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 22px 0 18px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-trust-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tl-text-faint);
  flex-shrink: 0;
}

/* Clipping window with fade edges */
.hero-trust-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-trust-track::before,
.hero-trust-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-trust-track::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}
.hero-trust-track::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Scrolling inner row */
.hero-trust-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollLeft 32s linear infinite;
  will-change: transform;
}
.hero-trust-inner:hover {
  animation-play-state: paused;
}

/* Individual logo + name item */
.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 28px;
  flex-shrink: 0;
  min-width: 130px;
  cursor: default;
  filter: grayscale(0.6) opacity(0.7);
  transition: filter 0.25s ease, transform 0.22s ease;
}
.hero-trust-item:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.08);
}
.hero-trust-item img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.hero-trust-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tl-text-muted);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

/* ── Mobile hero trust strip ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-trust-strip {
    padding: 16px 0 12px;
    gap: 10px;
  }
  .hero-trust-item {
    padding: 0 24px;
    min-width: 90px;
  }
  .hero-trust-item img {
    height: 24px;
  }
  .hero-trust-item span {
    font-size: 9px;
  }
}


/* ── Inner page nav: always show frosted glass (no dark hero) ── */
body:not(.has-dark-hero) .main-nav:not(.scrolled) {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
body:not(.has-dark-hero) .main-nav:not(.scrolled) .nav-links li a {
  color: var(--tl-text, #0d0f1a);
}
