/* ===== TRADE-IN PAGE ===== */

/* ─── GLOWS ─── */
.ti-glow-tl {
  top: -350px;
  left: -300px;
  width: 938px;
  height: 938px;
  background-image: url('assets/glow-green-tl.svg');
}

.nav-active {
  color: var(--accent) !important;
}

/* ─── HERO ─── */
.ti-hero-inner {
  min-height: auto;
  padding-bottom: 40px;
}

.ti-title-left {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 5vw, 68px);
  line-height: 1.26;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.ti-hero-row {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.ti-hero-left-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 30px;
}

.ti-hero-socials {
  display: flex;
  gap: 16px;
}

.ti-hero-socials-mobile {
  display: none;
}

.ti-hero-subtitle {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.5;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.ti-title-right {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 5vw, 68px);
  line-height: 1.26;
  text-transform: uppercase;
  color: var(--white);
  text-align: right;
  flex: 1;
}

.ti-hero-image {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.ti-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── PROGRAM ─── */
.ti-program {
  padding: 30px 30px 0;
}

.ti-program-inner {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 70px;
  position: relative;
  overflow: hidden;
}

.ti-program-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.ti-program-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.ti-program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ti-program-headings {
  display: grid;
  grid-template-columns: 1fr;
}

.ti-heading-green {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--accent);
  grid-row: 1;
  grid-column: 1;
  align-self: start;
}

.ti-heading-white {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  text-align: right;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  margin-top: 138px;
}

.ti-program-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ti-program-text p {
  font-size: 20px;
  line-height: 26px;
  color: var(--white);
}

/* ─── ADVANTAGES ─── */
.ti-adv-section {
  padding: 30px 30px 0;
}

.ti-adv-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-section);
  padding: 70px;
  position: relative;
  overflow: hidden;
}

.ti-adv-wrap .section-title {
  margin-bottom: 60px;
}

.ti-adv-grid {
  display: flex;
  gap: 24px;
}

.ti-adv-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ti-adv-card {
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ti-adv-tall {
  min-height: 314px;
}

.ti-adv-short {
  min-height: 219px;
}

.ti-adv-green {
  background: var(--accent);
  color: var(--dark);
}

.ti-adv-white {
  background: var(--white);
  color: var(--dark);
}

.ti-adv-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ti-adv-num {
  font-size: 17px;
}

.ti-adv-card h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 42px;
  line-height: 1.12;
  text-transform: uppercase;
}

.ti-adv-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ti-adv-line {
  height: 2px;
  background: var(--dark);
  width: 100%;
}

.ti-adv-bottom p {
  font-size: 20px;
  line-height: 1.3;
  color: var(--dark);
}

/* ─── MECHANICS ─── */
.ti-mech-section {
  padding: 80px 30px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.ti-mech-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.ti-mech-wrap .section-title {
  margin-bottom: 30px;
}

.ti-mech-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.ti-mech-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-card);
}

.ti-mech-step-active {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.ti-mech-glow {
  position: absolute;
  width: 798px;
  height: 798px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
}

.ti-mech-glow-left {
  left: -379px;
  top: -373px;
  background-image: url('assets/glow-mech-left.svg');
}

.ti-mech-glow-right {
  right: -370px;
  top: -393px;
  background-image: url('assets/glow-mech-right.svg');
}

.ti-mech-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.ti-mech-step p {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
}

.ti-mech-cta {
  text-align: center;
}

/* ─── UNIQUE BLOCK ─── */
.ti-unique-section {
  padding: 80px 30px 0;
}

.ti-unique-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 332px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 70px;
}

.ti-unique-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ti-unique-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 3, 0.6);
  z-index: 1;
}

.ti-unique-text {
  position: relative;
  z-index: 2;
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.5;
  color: var(--white);
  text-align: center;
  max-width: 1240px;
}

.ti-unique-text .green {
  color: var(--accent);
}

/* ─── CASES ─── */
.ti-cases-section {
  padding: 80px 30px 0;
}

.ti-cases-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 70px 70px 80px;
  position: relative;
  overflow: hidden;
  min-height: 835px;
}

.ti-cases-glow {
  left: calc(50% - 821px);
  top: calc(50% + 100px - 821px);
  width: 1642px;
  height: 1642px;
  background-image: url('assets/glow-green-cases.svg');
  animation: ti-glow-pulse 12s ease-in-out infinite;
}

@keyframes ti-glow-pulse {
  0%   { transform: translate(0, 0) scale(1);    opacity: 0.5;  }
  25%  { transform: translate(20px, 15px) scale(1.04);  opacity: 0.6;  }
  50%  { transform: translate(-15px, 25px) scale(0.97); opacity: 0.45; }
  75%  { transform: translate(-20px, -10px) scale(1.03); opacity: 0.55; }
  100% { transform: translate(0, 0) scale(1);    opacity: 0.5;  }
}

.ti-cases-wrap .section-title {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.ti-cases-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ti-cases-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.ti-cases-row-center {
  justify-content: center;
}

.ti-cases-row-center .ti-case-card {
  flex: 0 0 calc(33.333% - 16px);
}

.ti-case-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.ti-case-logo {
  width: 243px;
  height: 57px;
  object-fit: contain;
}

.ti-case-card p {
  font-size: 15px;
  color: var(--white);
  text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .ti-heading-green,
  .ti-heading-white {
    font-size: 40px;
  }

  .ti-adv-card h3 {
    font-size: 32px;
  }

  .ti-mech-step p {
    font-size: 22px;
  }

  .ti-unique-text {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .ti-hero-row {
    flex-direction: column;
    gap: 16px;
  }

  .ti-hero-left-col {
    display: none;
  }

  .ti-hero-socials-mobile {
    display: flex;
    margin-top: 16px;
  }

  .ti-title-right {
    text-align: left;
  }

  .ti-hero-subtitle {
    margin-top: 0;
    font-size: 15px;
  }

  .ti-hero-image {
    height: 220px;
  }

  .ti-program {
    padding: 15px 15px 0;
  }

  .ti-program-inner {
    padding: 30px 20px;
  }

  .ti-program-content {
    gap: 30px;
  }

  .ti-program-img {
    height: 240px;
  }

  .ti-heading-green,
  .ti-heading-white {
    font-size: 24px;
  }

  .ti-heading-white {
    text-align: left;
  }

  .ti-program-text p {
    font-size: 16px;
    line-height: 1.6;
  }

  .ti-adv-section {
    padding: 15px 15px 0;
  }

  .ti-adv-wrap {
    padding: 30px 20px;
  }

  .ti-adv-wrap .section-title {
    font-size: 30px;
    line-height: 38px;
  }

  .ti-adv-grid {
    flex-direction: column;
  }

  .ti-adv-tall,
  .ti-adv-short {
    min-height: auto;
  }

  .ti-adv-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ti-adv-card {
    text-align: center;
    align-items: center;
  }

  .ti-adv-top {
    align-items: center;
  }

  .ti-adv-bottom {
    align-items: center;
  }

  .ti-adv-card h3 {
    font-size: 20px;
  }

  .ti-adv-bottom p {
    font-size: 16px;
    text-align: center;
  }

  .ti-mech-section {
    padding: 40px 15px 0;
  }

  .ti-mech-step {
    padding: 20px;
  }

  .ti-mech-step p {
    font-size: 16px;
  }

  .ti-mech-icon {
    width: 40px;
    height: 40px;
  }

  .ti-unique-section {
    padding: 40px 15px 0;
  }

  .ti-unique-wrap {
    padding: 30px 20px;
    min-height: 200px;
  }

  .ti-unique-text {
    font-size: 18px;
  }

  .ti-cases-section {
    padding: 40px 15px 0;
  }

  .ti-cases-wrap {
    padding: 30px 20px;
  }

  .ti-cases-wrap .section-title {
    font-size: 30px;
    line-height: 38px;
  }

  .ti-cases-row {
    flex-direction: column;
  }

  .ti-cases-row-center .ti-case-card {
    flex: 1;
  }
}
