/* Telematik ana sayfa: canlı harita açılışı ve "nasıl ilerler" yol animasyonu */

/* ---------- Açılış ---------- */

.th {
  background: #fff;
  color: var(--navy);
  padding: clamp(28px, 5vw, 64px) 5vw 0;
}

.th-in {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .th-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.th-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(31, 55, 99, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-title {
  font-family: var(--fd);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.th-desc {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: 17px;
  line-height: 1.65;
}

.th-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.th .hstats {
  max-width: 1200px;
  margin: clamp(32px, 5vw, 56px) auto 0;
}

/* Harita paneli */
.th-map {
  position: relative;
  background: var(--gy);
  overflow: hidden;
  border-radius: 4px;
}

.th-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.tm-grid {
  stroke: rgba(31, 55, 99, 0.06);
  stroke-width: 1;
}

.tm-block {
  fill: rgba(31, 55, 99, 0.05);
}

.tm-road {
  fill: none;
  stroke: #fff;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-road--minor {
  stroke-width: 7;
}

.tm-route {
  fill: none;
  stroke: rgba(79, 186, 200, 0.45);
  stroke-width: 2;
  stroke-dasharray: 3 6;
  stroke-linejoin: round;
}

.tm-trail {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-zone {
  fill: rgba(79, 186, 200, 0.14);
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.4s;
}

.tm-zone.is-hit {
  fill: rgba(79, 186, 200, 0.34);
}

.tm-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--navy);
}

.tm-depot {
  fill: var(--navy);
}

.tm-car-dot {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 3;
}

.tm-car-ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: tm-ping 2.2s ease-out infinite;
}

@keyframes tm-ping {
  from { transform: scale(0.5); opacity: 0.7; }
  to { transform: scale(2.4); opacity: 0; }
}

/* Haritanın üstündeki bilgi kutuları */
.tm-chip,
.tm-live,
.tm-log {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--navy);
}

.tm-chip {
  left: 0;
  top: 0;
  padding: 6px 10px;
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.tm-chip b {
  color: var(--teal);
  font-weight: 500;
}

.tm-live {
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tm-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: tm-blink 1.4s ease-in-out infinite;
}

@keyframes tm-blink {
  50% { opacity: 0.25; }
}

.tm-log {
  left: 12px;
  bottom: 12px;
  width: min(250px, calc(100% - 24px));
  padding: 10px 12px;
  background: #fff;
}

.tm-log-title {
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.tm-log li {
  list-style: none;
  display: flex;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  animation: tm-in 0.4s ease-out;
}

.tm-log li time {
  opacity: 0.55;
}

@keyframes tm-in {
  from { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 520px) {
  .tm-chip,
  .tm-live,
  .tm-log {
    font-size: 10px;
  }
}

/* ---------- Nasıl ilerler: bölüm görününce oynayan yol animasyonu ---------- */

.story {
  background: #fff;
  padding: clamp(56px, 8vw, 96px) 5vw;
}

.story-in {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.story-road {
  display: block;
  width: 100%;
  height: auto;
  margin: clamp(16px, 4vh, 40px) 0;
  overflow: visible;
}

.sr-base {
  fill: none;
  stroke: var(--gy2);
  stroke-width: 26;
  stroke-linecap: round;
}

.sr-dash {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 10 12;
}

.sr-done {
  fill: none;
  stroke: var(--teal);
  stroke-width: 6;
  stroke-linecap: round;
}

.sr-stop {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 3;
  transition: fill 0.3s;
}

.sr-stop.is-on {
  fill: var(--navy);
}

.sr-car {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 4;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.story-step {
  padding-top: 14px;
  border-top: 3px solid var(--gy2);
  opacity: 0.38;
  transition: opacity 0.35s, border-color 0.35s;
}

.story-step.is-on {
  opacity: 1;
  border-color: var(--teal);
}

.story-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.story-name {
  margin: 6px 0;
  font-family: var(--fd);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
}

.story-text {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .story-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .story-text {
    font-size: 13px;
  }
}

/* ---------- Ortak: bölüm başlığı, sıra numarası ---------- */

.hx-sol,
.hx-why,
.hx-cases,
.hx-cta {
  padding: clamp(56px, 8vw, 96px) 5vw;
  color: var(--navy);
}

.hx-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.hx-note {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.65;
}

.hx-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------- Çözümler: üç başlık altında satırlar ---------- */

.hx-sol {
  background: #fff;
}

.hx-groups {
  display: grid;
  gap: 40px clamp(24px, 3vw, 48px);
}

@media (min-width: 900px) {
  .hx-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hx-gname {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hx-gname span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--teal);
}

.hx-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 4px 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gy2);
  color: inherit;
  text-decoration: none;
}

.hx-row .hx-no {
  padding-top: 5px;
  opacity: 0.6;
}

.hx-name {
  font-family: var(--fd);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 19px;
  line-height: 1.2;
}

.hx-text {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.6;
  color: #3C4A63;
}

.hx-arr {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  transition: transform 0.2s;
}

.hx-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.hx-row:hover::after,
.hx-row:focus-visible::after {
  transform: scaleX(1);
}

.hx-row:hover .hx-arr,
.hx-row:focus-visible .hx-arr {
  transform: translateX(4px);
}

/* ---------- Neden biz: gerekçeler ve rakamlar ---------- */

.hx-why {
  background: var(--gy);
}

.hx-why-in {
  display: grid;
  gap: 36px clamp(32px, 6vw, 88px);
}

@media (min-width: 900px) {
  .hx-why-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.hx-why .h2 {
  margin-bottom: 20px;
  text-wrap: balance;
}

.hx-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hx-reasons {
  list-style: none;
  border-top: 3px solid var(--navy);
}

.hx-reasons li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid rgba(31, 55, 99, 0.16);
}

.hx-reasons .hx-no {
  padding-top: 5px;
}

.hx-reasons h3 {
  font-family: var(--fd);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 19px;
  line-height: 1.2;
}

.hx-reasons p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #3C4A63;
}

.hx-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: clamp(36px, 5vw, 64px);
}

@media (min-width: 760px) {
  .hx-figs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hx-figs > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px;
  background: #fff;
}

.hx-figs dd {
  font-family: var(--fd);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hx-figs dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Başarı hikayeleri: öne çıkan proje ve iki kart ---------- */

.hx-cases {
  background: #fff;
}

.hx-case-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .hx-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hx-case--feat {
    grid-column: 1 / -1;
  }
}

.hx-case {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
  background: var(--gy);
  border-radius: 4px;
}

.hx-case-fig b {
  display: block;
  font-family: var(--fd);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hx-case-fig span {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hx-case-body {
  padding-top: 18px;
  border-top: 1px solid rgba(31, 55, 99, 0.16);
}

.hx-case-brand {
  margin-bottom: 8px;
  font-family: var(--fd);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 22px;
  line-height: 1.2;
}

.hx-case-text {
  max-width: 40em;
  font-size: 15px;
  line-height: 1.65;
  color: #3C4A63;
}

/* Öne çıkan proje: lacivert zemin, rakam solda */
.hx-case--feat {
  background: var(--navy);
  color: #fff;
  padding: clamp(28px, 4vw, 52px);
}

@media (min-width: 860px) {
  .hx-case--feat {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .hx-case--feat .hx-case-body {
    padding: 0 0 0 clamp(32px, 5vw, 72px);
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.hx-case--feat .hx-case-fig b {
  font-size: clamp(72px, 11vw, 150px);
  line-height: 0.9;
}

.hx-case--feat .hx-case-fig span {
  margin-top: 16px;
  padding: 5px 10px;
  background: var(--teal);
  color: var(--navy);
}

.hx-case--feat .hx-case-body {
  border-color: rgba(255, 255, 255, 0.2);
}

.hx-case-pin {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.hx-case--feat .hx-case-brand {
  font-size: clamp(26px, 3vw, 36px);
}

.hx-case--feat .hx-case-text {
  color: rgba(255, 255, 255, 0.82);
}

.hx-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.hx-case-tags span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Kapanış: açık zemin, beyaz iletişim kartı ---------- */

.hx-cta {
  background: var(--gy);
}

.hx-cta-in {
  display: grid;
  gap: 32px clamp(32px, 6vw, 88px);
  align-items: center;
}

@media (min-width: 900px) {
  .hx-cta-in {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.hx-cta .h2 {
  text-wrap: balance;
}

.hx-cta-text {
  max-width: 32em;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: #3C4A63;
}

.hx-cta-card {
  padding: clamp(20px, 2.6vw, 32px);
  background: #fff;
  border-top: 3px solid var(--navy);
  border-radius: 0 0 4px 4px;
}

.hx-cta-btn {
  display: flex;
  justify-content: center;
  padding: 18px 28px;
  margin-bottom: 8px;
  font-size: 13px;
}

.hx-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gy2);
  color: inherit;
  text-decoration: none;
}

.hx-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hx-line span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B768A;
}

.hx-line b {
  font-size: 16px;
  font-weight: 600;
}

.hx-line:hover b {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (prefers-reduced-motion: reduce) {
  .hx-row::after,
  .hx-arr {
    transition: none;
  }

  .story-step {
    opacity: 1;
    border-color: var(--teal);
  }

  .tm-car-ring,
  .tm-live::before,
  .tm-log li {
    animation: none;
  }
}
