/* ================================================
   TRUESPEC BY SPERA — truespec.css
   Clean, minimal, Spera brand aesthetic
   ================================================ */

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

:root {
  --navy:      #1a2e4a;
  --navy-mid:  #243d63;
  --navy-light:#2e4f7a;
  --gold:      #C49A3C;
  --gold-light:#d4af5c;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --light-bg:  #f2f0ec;
  --text-dark: #1a2e4a;
  --text-mid:  #4a5568;
  --text-light:#8fa3bf;
  --border:    rgba(26,46,74,0.10);

  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;

  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:     0.35s var(--ease);
  --trans-slow:0.65s var(--ease);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ------------------------------------------------
   HEADER
   ------------------------------------------------ */
.ts-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  transition: background var(--trans), box-shadow var(--trans);
}

.ts-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.ts-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.ts-logo-link {
  flex-shrink: 0;
  transition: opacity var(--trans);
  height: 40px;
  display: flex;
  align-items: center;
}

.ts-logo-link:hover { opacity: 0.75; }

.ts-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: var(--logo-filter, none);
}

/* Logo is white-tinted on transparent header */
.ts-header:not(.scrolled) .ts-logo-img {
  filter: brightness(0) invert(1);
}

.ts-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ts-nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--white);
  transition: all var(--trans);
}

.ts-header.scrolled .ts-nav-link {
  color: var(--text-dark);
}

.ts-nav-link:hover {
  background: rgba(255,255,255,0.15);
}

.ts-header.scrolled .ts-nav-link:hover {
  background: var(--light-bg);
  color: var(--navy);
}

.ts-cta-pill {
  margin-left: auto;
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white);
  transition: all var(--trans);
  white-space: nowrap;
}

.ts-cta-pill:hover {
  background: rgba(255,255,255,0.2);
}

.ts-header.scrolled .ts-cta-pill {
  border-color: var(--navy);
  color: var(--navy);
}

.ts-header.scrolled .ts-cta-pill:hover {
  background: var(--navy);
  color: var(--white);
}

/* ------------------------------------------------
   HERO SECTION
   ------------------------------------------------ */
.ts-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ts-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ts-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.ts-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 46, 74, 0.72) 0%,
    rgba(26, 46, 74, 0.45) 50%,
    rgba(196, 154, 60, 0.15) 100%
  );
}

.ts-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  max-width: 720px;
}

.ts-hero-logo-wrap {
  margin-bottom: 8px;
  animation: fadeUp 0.9s var(--ease) both;
  animation-delay: 0.2s;
}

.ts-hero-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.ts-hero-headline {
  font-family: "Krona One";
  font-size: 50px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  animation: fadeUp 0.9s var(--ease) both;
  animation-delay: 0.4s;
}

.ts-hero-headline em {
  font-style: italic;
  color: white;
}

.ts-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.3px;
  animation: fadeUp 0.9s var(--ease) both;
  animation-delay: 0.55s;
}

.ts-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--trans);
  animation: fadeUp 0.9s var(--ease) both;
  animation-delay: 0.7s;
  box-shadow: 0 8px 32px rgba(196,154,60,0.4);
}

.ts-watch-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196,154,60,0.5);
}

.ts-watch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* Scroll hint */
.ts-hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: fadeUp 1s var(--ease) both;
  animation-delay: 1s;
}

.ts-hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ------------------------------------------------
   GENERIC SECTION STYLES
   ------------------------------------------------ */
.ts-section {
  padding: 100px 0;
  background-color: #d6cbbc;
}

.ts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.ts-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2f2418;
  margin-bottom: 14px;
  font-family: "Krona One";
}

.ts-label-light {
  color: #2f2418;
}

.ts-section-title {
  font-family: "Krona One";
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  color: #2f2418;
  line-height: 1.15;
  margin-bottom: 24px;
}

.ts-title-light {
  color: #2f2418;
}

/* Scroll reveal */
.ts-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ------------------------------------------------
   THE PROBLEM SECTION
   ------------------------------------------------ */
.ts-problem {
  background-color: #d6cbbc;
}

.ts-problem-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: #42362b;
  max-width: 620px;
  margin-bottom: 60px;
  font-family: "Montserrat";
}

.ts-problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ts-problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all var(--trans);
  cursor: default;
}

.ts-problem-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(26,46,74,0.08);
  transform: translateY(-4px);
}

.ts-problem-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--navy);
}

.ts-problem-icon svg { width: 100%; height: 100%; }

.ts-problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.ts-problem-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  font-weight: 300;
}

/* ------------------------------------------------
   WHY SPEC MATTERS
   ------------------------------------------------ */
.ts-why {
  background: var(--white);
}

.ts-why-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 60px;
  max-width: 480px;
  line-height: 1.7;
}

.ts-spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.ts-spec-item {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  transition: all var(--trans);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* .ts-spec-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
} */

.ts-spec-item:last-child {
  border-right: none;
}

/* .ts-spec-item:hover {
  background: var(--off-white);
}

.ts-spec-item:hover::before {
  transform: scaleX(1);
} */

.ts-spec-icon-wrap {
  width: 48px;
  height: 48px;
  color: var(--navy);
  margin-bottom: 20px;
  transition: color var(--trans);
}

/* .ts-spec-item:hover .ts-spec-icon-wrap {
  color: var(--gold);
} */

.ts-spec-icon-wrap svg { width: 100%; height: 100%; }

.ts-spec-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ts-spec-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mid);
  font-weight: 300;
}

/* ------------------------------------------------
   CHOOSE TRUESPEC
   ------------------------------------------------ */
.ts-choose {
  background: var(--navy);
  padding: 120px 0;
}

.ts-choose-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ts-choose-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 36px;
  font-family: "Krona One";
}

.ts-words {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 36px;
}

.ts-word {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.ts-word.visible {
  opacity: 1;
  transform: translateX(0);
}

.ts-word:nth-child(2) { transition-delay: 0.12s; }
.ts-word:nth-child(3) { transition-delay: 0.24s; }

.ts-choose-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 420px;
  font-family: "Montserrat";
}

.ts-logo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--trans);
}

.ts-logo-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(196,154,60,0.4);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.ts-choose-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
}

.ts-logo-card-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ------------------------------------------------
   SIMPLE CHECKS
   ------------------------------------------------ */
.ts-checks {
  background: var(--off-white);
}

.ts-checks-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 60px;
  line-height: 1.7;
}

.ts-checks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ts-check-card {
  background: #332820;
  border-radius: 20px;
  padding: 40px 28px 36px;
  border: 1.5px solid var(--border);
  transition: all var(--trans);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.ts-check-card:hover {
  border-color: #d4c9bb;
  box-shadow: 0 16px 48px rgba(26,46,74,0.10);
  transform: translateY(-6px);
}

.ts-check-card:hover .ts-check-num {
  color: var(--gold);
}

.ts-check-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4c9bb;
  margin-bottom: 20px;
  transition: color var(--trans);
}

.ts-check-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--navy);
  transition: color var(--trans);
}

.ts-check-card:hover .ts-check-icon {
  color: var(--navy-mid);
}

.ts-check-icon svg { width: 100%; height: 100%; }

.ts-check-title {
  font-size: 16px;
  font-weight: 600;
  color: #d4c9bb;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.ts-check-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #d4c9bb;
  font-weight: 300;
}

/* ------------------------------------------------
   VIDEO SECTION
   ------------------------------------------------ */
.ts-video-section {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
}

.ts-video-section .ts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ts-video-sub {
  font-size: 16px;
  font-weight: 300;
  color: #2f2418;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 56px;
}

.ts-video-wrap {
  width: 100%;
  max-width: 880px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.ts-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* Placeholder (shown until real video is embedded) */
.ts-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-mid);
  border: 2px dashed rgba(196,154,60,0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--trans);
}

.ts-video-placeholder:hover {
  border-color: var(--gold);
}

.ts-video-tiles-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ts-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(196,154,60,0.5);
  transition: all var(--trans);
  position: relative;
  z-index: 1;
}

.ts-video-placeholder:hover .ts-video-play-btn {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(196,154,60,0.6);
}

.ts-video-label-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.ts-footer {
  background: var(--white);
  padding: 80px 0 48px;
  text-align: center;
}

.ts-footer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ts-footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.ts-footer-tagline {
  font-size: 14px;
  color: #d4c9bb;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* ISI Mark */
.ts-isi-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: #332820;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 8px 0;
  transition: all var(--trans);
}

.ts-isi-wrap:hover {
  border-color: #d4c9bb;
  box-shadow: 0 8px 24px rgba(26,46,74,0.08);
}

.ts-isi-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.ts-isi-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.ts-isi-top {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ts-isi-bottom {
  font-size: 7px;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.9;
}

.ts-isi-note {
  font-size: 12.5px;
  color: #d4c9bb;
  line-height: 1.65;
  font-weight: 300;
}

.ts-footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.ts-footer-copy {
  font-size: 12px;
  color: #d4c9bb;
  letter-spacing: 0.3px;
}

/* ------------------------------------------------
   KEYFRAME ANIMATIONS
   ------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 1100px) {
  .ts-spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ts-spec-item:nth-child(3) {
    border-right: none;
  }

  .ts-spec-item:nth-child(4),
  .ts-spec-item:nth-child(5) {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .ts-spec-item:nth-child(5) {
    border-right: none;
  }
}

@media (max-width: 960px) {
  .ts-container { padding: 0 40px; }

  .ts-header { padding: 0 32px; }

  .ts-nav { display: none; }

  .ts-problem-cards { grid-template-columns: 1fr 1fr; }

  .ts-checks-grid { grid-template-columns: 1fr 1fr; }

  .ts-choose-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ts-logo-card {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .ts-container { padding: 0 24px; }

  .ts-header { padding: 0 24px; height: 60px; }

  .ts-section { padding: 72px 0; }

  .ts-problem-cards { grid-template-columns: 1fr; }

  .ts-checks-grid { grid-template-columns: 1fr; }

  .ts-spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ts-spec-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .ts-spec-item:nth-child(even) {
    border-right: none;
  }

  .ts-spec-item:nth-child(3),
  .ts-spec-item:nth-child(4),
  .ts-spec-item:nth-child(5) {
    border-top: 1px solid var(--border);
  }

  .ts-isi-wrap {
    flex-direction: column;
    text-align: center;
  }
}
