/* ====== GLOBAL LAYOUT ====== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: #0d0d0d;   /* default: dark */
  color: #e6e6e6;
}

a {
  color: #5fb3ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.tr-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ====== THEME VARSLARI ====== */

/* AÇIK TEMA */
body.theme-light {
  background: #ffffff;
  color: #111111;
}

body.theme-light .tr-header {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

body.theme-light .tr-menu a {
  color: #111111;
}

body.theme-light .tr-hero {
  background: #f8f8f8;
  color: #111111;
}

body.theme-light .tr-hero-note {
  color: #555555;
}

body.theme-light .tr-section {
  background: #ffffff;
}

body.theme-light .tr-section-alt {
  background: #fafafa;
}

body.theme-light .tr-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

body.theme-light .tr-footer {
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  color: #777777;
}

/* KOYU TEMA */
body.theme-dark,
body:not(.theme-light) { /* js çalışmazsa default dark */
  background: #0d0d0d;
  color: #e6e6e6;
}

body.theme-dark .tr-header,
body:not(.theme-light) .tr-header {
  background: #0d0d0d;
  border-bottom: 1px solid #222222;
}

body.theme-dark .tr-menu a,
body:not(.theme-light) .tr-menu a {
  color: #dcdcdc;
}

body.theme-dark .tr-hero,
body:not(.theme-light) .tr-hero {
  background: #111111;
  color: #e6e6e6;
}

body.theme-dark .tr-hero-note,
body:not(.theme-light) .tr-hero-note {
  color: #aaaaaa;
}

body.theme-dark .tr-section,
body:not(.theme-light) .tr-section {
  background: #0d0d0d;
}

body.theme-dark .tr-section-alt,
body:not(.theme-light) .tr-section-alt {
  background: #141414;
}

body.theme-dark .tr-card,
body:not(.theme-light) .tr-card {
  background: #1b1b1b;
  border: 1px solid #2e2e2e;
}

body.theme-dark .tr-footer,
body:not(.theme-light) .tr-footer {
  background: #0d0d0d;
  border-top: 1px solid #222222;
  color: #777777;
}

/* ====== HEADER & LOGO ====== */

.tr-header {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.tr-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Logo ortalı ve büyük */
.tr-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tr-logo img {
  max-width: 340px;
  height: auto;
  display: block;
}

/* Menü */
.tr-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tr-lang {
  font-weight: 600;
}

/* Tema butonu */
.tr-theme-toggle {
  border: 1px solid #444444;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
body.theme-light .tr-theme-toggle {
  border-color: #cccccc;
  color: #333333;
}
body.theme-dark .tr-theme-toggle,
body:not(.theme-light) .tr-theme-toggle {
  border-color: #555555;
  color: #dddddd;
}

/* ====== HERO ====== */

.tr-hero {
  padding: 3rem 0 2rem;
}

.tr-hero-text {
  max-width: 680px;
  text-align: center;
  margin: auto;
}

.tr-hero-eyebrow {
  margin: 0 0 0.8rem;
  color: #5fb3ff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.tr-hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tr-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: none;
}

.tr-btn.primary {
  background: #ffffff;
  color: #000000;
}

.tr-btn.ghost {
  border: 1px solid currentColor;
  background: transparent;
}

.tr-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tr-hero-note {
  font-size: 0.85rem;
}

.tr-route-section {
  padding-top: 2rem;
}

.tr-route-section .tr-eyebrow {
  margin-bottom: 0.75rem;
}

.tr-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tr-route-card {
  display: flex;
  min-height: 150px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem;
  color: inherit;
  border: 1px solid #2e2e2e;
  border-top: 3px solid #5fb3ff;
  border-radius: 8px;
  background: #151515;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tr-route-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #5fb3ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.theme-light .tr-route-card {
  border-color: #e0e0e0;
  background: #ffffff;
}

body.theme-light .tr-route-card:hover {
  border-color: #5fb3ff;
}

.tr-route-title,
.tr-route-description,
.tr-route-action {
  display: block;
}

.tr-route-title {
  font-size: 1.08rem;
  font-weight: 750;
}

.tr-route-description {
  color: #bfc7d4;
  font-size: 0.92rem;
  line-height: 1.5;
}

body.theme-light .tr-route-description {
  color: #4b5668;
}

.tr-route-action {
  color: #5fb3ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.tr-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem auto 0;
  text-align: left;
}

.tr-proof-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(95, 179, 255, 0.25);
  border-radius: 8px;
  background: rgba(95, 179, 255, 0.06);
}

.tr-proof-item strong,
.tr-proof-item span {
  display: block;
}

.tr-proof-item strong {
  margin-bottom: 0.25rem;
  color: #5fb3ff;
  font-size: 0.92rem;
}

.tr-proof-item span {
  color: #bfc7d4;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.theme-light .tr-proof-item {
  background: #f4f9ff;
  border-color: #cfe5fb;
}

body.theme-light .tr-proof-item span {
  color: #4b5668;
}

/* ====== ABOUT PAGE ====== */

.tr-page-hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(95, 179, 255, 0.12), transparent 55%), #111111;
  text-align: center;
}

body.theme-light .tr-page-hero {
  background: radial-gradient(circle at 50% 0%, rgba(95, 179, 255, 0.12), transparent 55%), #f8f8f8;
}

.tr-eyebrow {
  margin: 0 0 1rem;
  color: #5fb3ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tr-page-hero h1 {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.tr-page-hero .tr-lead {
  max-width: 720px;
  margin: 0 auto;
}

.tr-page-hero .tr-btn {
  margin-top: 1rem;
}

.tr-about-callout {
  height: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  border-left: 3px solid #5fb3ff;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.15rem;
}

body.theme-light .tr-about-callout {
  background: #f5f7fa;
}

.tr-about-card h3 {
  margin-top: 0;
}

.tr-about-card p:last-child {
  margin-bottom: 0;
}

.tr-about-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.tr-about-card li {
  margin-bottom: 0.7rem;
}

.tr-about-steps {
  margin: 0;
}

.tr-menu a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

/* ====== SECTIONS & GRID ====== */

.tr-section {
  padding: 3rem 0;
}

.tr-lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.tr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Contact & assistant layout */
.tr-contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 640px);
  justify-content: center;
  margin-top: 2rem;
}

.tr-contact-card,
.tr-chat-wrapper {
  padding: 1.5rem;
  border-radius: 12px;
  background: #1b1b1b;
  border: 1px solid #2e2e2e;
}

body.theme-light .tr-contact-card,
body.theme-light .tr-chat-wrapper {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.tr-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tr-chat-sub {
  margin: 0.35rem 0 0;
  color: #9aa3b5;
  font-size: 0.95rem;
}
body.theme-light .tr-chat-sub {
  color: #4b5668;
}

.tr-chat-toggle {
  display: none;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}
body.theme-light .tr-chat-toggle {
  border-color: #d0d0d0;
}

.tr-chat-panel {
  margin-top: 0.5rem;
}

.tr-contact-email {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.tr-request-guide {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: rgba(95, 179, 255, 0.07);
  border: 1px solid rgba(95, 179, 255, 0.2);
}

body.theme-light .tr-request-guide {
  background: #f7fbff;
  border-color: #d9eafb;
}

.tr-request-guide-title {
  margin: 0;
  font-weight: 700;
}

.tr-request-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.tr-request-list li + li {
  margin-top: 0.25rem;
}

.tr-contact-note {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .tr-contact-note {
  border-top-color: #ededed;
}

/* Kartlar */
.tr-card {
  padding: 1.5rem;
  border-radius: 8px;
}

/* Süreç listesi */
.tr-step-list {
  list-style: decimal;
  padding-left: 1.2rem;
}
.tr-step-list li {
  margin-bottom: 1rem;
}

/* ====== FOOTER ====== */

.tr-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.tr-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

/* ====== AI CHAT STYLING (Golden Ratio) ====== */

.tr-chat-container {
  /* Golden Ratio Card */
  background: linear-gradient(145deg, #1a1a1a, #222);
  border: 1px solid #333;
  border-radius: 12px; /* Smooth corners */
  padding: 1.618rem; /* Golden ratio padding */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tr-chat-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.tr-chat-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tr-chat-input textarea {
  width: 100%;
  min-height: 100px; /* Base height */
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.618; /* Golden ratio line height */
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tr-chat-input textarea:focus {
  outline: none;
  border-color: #5fb3ff;
  box-shadow: 0 0 0 3px rgba(95, 179, 255, 0.1);
}

.tr-chat-btn {
  align-self: flex-end;
  padding: 0.618rem 1.618rem; /* Golden ratio padding */
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.tr-chat-btn:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
}

.tr-chat-status {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.618rem;
  font-style: italic;
}

.tr-chat-reply {
  margin-top: 1.618rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #5fb3ff;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Light Theme Overrides for Chat */
body.theme-light .tr-chat-container {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

body.theme-light .tr-chat-input textarea {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}

body.theme-light .tr-chat-btn {
  background: #111;
  color: #fff;
}

body.theme-light .tr-chat-btn:hover {
  background: #333;
}

body.theme-light .tr-chat-reply {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: #333;
}

/* ====== MOBILE ====== */

@media (max-width: 900px) {
  .tr-contact-layout {
    grid-template-columns: 1fr;
  }

  .tr-chat-toggle {
    display: inline-flex;
  }

  .mobile-collapsed .tr-chat-panel {
    display: none;
  }
}

@media (max-width: 600px) {
  .tr-logo img {
    max-width: 260px;
  }

  .tr-grid-3 {
    grid-template-columns: 1fr;
  }

  .tr-grid-2 {
    grid-template-columns: 1fr;
  }

  .tr-route-grid {
    grid-template-columns: 1fr;
  }

  .tr-hero h1 {
    font-size: 1.45rem;
  }

  .tr-hero-actions {
    flex-direction: column;
  }

  .tr-proof-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tr-footer-links {
    flex-wrap: wrap;
  }
}

/* ====== VISUAL REFRESH ====== */

:root {
  --tr-navy: #071622;
  --tr-navy-soft: #0d2431;
  --tr-copper: #e2ad73;
  --tr-sky: #76c8e8;
  --tr-paper: #f4f2ed;
  --tr-ink: #13212a;
}

body {
  background: var(--tr-navy);
  color: #edf4f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-light {
  background: var(--tr-paper);
  color: var(--tr-ink);
}

.tr-header {
  position: relative;
  z-index: 2;
  padding: 0;
  text-align: left;
  background: rgba(5, 17, 26, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tr-utility-bar {
  background: #1c5378;
  color: #f2f7f8;
}

body.theme-light .tr-utility-bar {
  background: #e3eff1;
  color: #174b5d;
}

.tr-utility-inner {
  display: flex;
  min-height: 38px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.tr-utility-main,
.tr-utility-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tr-utility-main {
  min-width: 0;
}

.tr-utility-label {
  flex: 0 0 auto;
  color: var(--tr-copper);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

body.theme-light .tr-utility-label {
  color: #2f7188;
}

.tr-utility-main a,
.tr-utility-links a {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}

.tr-utility-main a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-utility-main a:hover,
.tr-utility-links a:hover {
  color: var(--tr-copper);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.tr-utility-links {
  flex: 0 0 auto;
}

body.theme-light .tr-header {
  background: rgba(247, 246, 241, 0.96) !important;
  border-bottom-color: rgba(19, 33, 42, 0.12) !important;
}

.tr-nav {
  width: 90%;
  min-height: 84px;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 0;
}

.tr-logo {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.tr-logo img {
  max-width: 240px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.28));
}

body.theme-dark .tr-logo img,
body:not(.theme-light) .tr-logo img {
  filter: brightness(1.85) contrast(1.08) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.34));
}

.tr-menu {
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem;
}

.tr-menu a {
  color: #e9f1f4 !important;
  font-size: 0.92rem;
  font-weight: 650;
}

body.theme-light .tr-menu a {
  color: var(--tr-ink) !important;
}

.tr-menu a:hover {
  color: var(--tr-copper) !important;
  text-decoration: none;
}

.tr-theme-toggle {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .tr-theme-toggle {
  border-color: rgba(19, 33, 42, 0.26);
  color: var(--tr-ink);
  background: rgba(19, 33, 42, 0.04);
}

.tr-hero,
body.theme-dark .tr-hero,
body:not(.theme-light) .tr-hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background-color: var(--tr-navy) !important;
  background-image: linear-gradient(90deg, rgba(4, 17, 27, 0.98) 0%, rgba(4, 17, 27, 0.89) 37%, rgba(4, 17, 27, 0.38) 72%, rgba(4, 17, 27, 0.16) 100%), url("hero-port.png") !important;
  background-position: center, center;
  background-size: cover, cover;
  border-radius: 0 0 28px 28px;
  animation: tr-hero-drift 24s ease-in-out infinite alternate;
  color: #fff;
}

body.theme-light .tr-hero {
  background-color: #dce9ea !important;
  background-image: linear-gradient(90deg, rgba(244, 242, 237, 0.98) 0%, rgba(244, 242, 237, 0.9) 38%, rgba(244, 242, 237, 0.42) 74%, rgba(244, 242, 237, 0.16) 100%), url("hero-port.png") !important;
  color: var(--tr-ink);
}

.tr-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(226, 173, 115, 0.28);
  border-bottom: 1px solid rgba(226, 173, 115, 0.28);
  background: #071622;
}

body.theme-light .tr-ticker {
  border-color: rgba(23, 75, 93, 0.2);
  background: #e6eff0;
}

.tr-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.6rem;
  padding: 0.78rem 0;
  animation: tr-ticker-slide 30s linear infinite;
}

.tr-ticker-track span {
  color: #dbe8eb;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

body.theme-light .tr-ticker-track span {
  color: #174b5d;
}

.tr-ticker-track .tr-ticker-dot {
  color: var(--tr-copper);
  font-size: 1rem;
  letter-spacing: 0;
}

.tr-hero-inner {
  display: flex;
  min-height: 650px;
  align-items: center;
}

.tr-hero-text {
  max-width: 650px;
  margin: 0;
  padding: 4.5rem 0;
  text-align: left;
}

.tr-hero-eyebrow,
.tr-eyebrow {
  color: var(--tr-copper);
  font-weight: 800;
}

body.theme-light .tr-hero-eyebrow,
body.theme-light .tr-eyebrow {
  color: #2f7188;
}

.tr-hero h1 {
  max-width: 720px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.tr-hero-text > p:not(.tr-hero-eyebrow):not(.tr-hero-note) {
  max-width: 600px;
  font-size: 1.16rem;
  line-height: 1.65;
  color: rgba(239, 247, 249, 0.88);
}

body.theme-light .tr-hero-text > p:not(.tr-hero-eyebrow):not(.tr-hero-note) {
  color: rgba(19, 33, 42, 0.82);
}

.tr-hero-actions {
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}

.tr-btn {
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tr-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.tr-btn.primary {
  background: var(--tr-copper);
  color: #1b2020;
  box-shadow: 0 10px 26px rgba(226, 173, 115, 0.24);
}

.tr-btn.primary:hover {
  background: #f0c28b;
  box-shadow: 0 14px 30px rgba(226, 173, 115, 0.32);
}

body.theme-light .tr-btn.primary {
  background: #174b5d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 75, 93, 0.2);
}

.tr-btn.ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .tr-btn.ghost {
  border-color: rgba(23, 75, 93, 0.45);
  color: #174b5d;
  background: rgba(255, 255, 255, 0.44);
}

.tr-hero-note {
  max-width: 620px;
  color: rgba(239, 247, 249, 0.68) !important;
}

body.theme-light .tr-hero-note {
  color: rgba(19, 33, 42, 0.64) !important;
}

.tr-proof-strip {
  max-width: 650px;
  margin: 2.25rem 0 0;
  gap: 0.65rem;
}

.tr-proof-item {
  border-color: rgba(226, 173, 115, 0.28);
  background: rgba(7, 22, 34, 0.48);
  backdrop-filter: blur(10px);
}

body.theme-light .tr-proof-item {
  border-color: rgba(23, 75, 93, 0.2);
  background: rgba(255, 255, 255, 0.62);
}

.tr-section {
  padding: 5.5rem 0;
}

.tr-section-alt,
body.theme-dark .tr-section-alt,
body:not(.theme-light) .tr-section-alt {
  background: linear-gradient(135deg, #0b202d 0%, #0e2834 52%, #10212d 100%);
}

body.theme-light .tr-section-alt {
  background: linear-gradient(135deg, #e6eff0 0%, #eef1ec 52%, #e4eaeb 100%);
}

.tr-section h2 {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.tr-lead {
  max-width: 780px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.tr-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(118, 200, 232, 0.18) !important;
  background: linear-gradient(145deg, rgba(28, 49, 61, 0.96), rgba(14, 32, 43, 0.96)) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.tr-card::after {
  position: absolute;
  top: -54px;
  right: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 173, 115, 0.22), rgba(226, 173, 115, 0) 70%);
  content: "";
  pointer-events: none;
}

.tr-card:hover {
  border-color: rgba(226, 173, 115, 0.56) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.tr-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

body.theme-light .tr-card {
  border-color: rgba(23, 75, 93, 0.16) !important;
  background: linear-gradient(145deg, #fffdf8, #eef4f3) !important;
  box-shadow: 0 14px 30px rgba(23, 75, 93, 0.08);
}

body.theme-light .tr-card:hover {
  border-color: rgba(23, 75, 93, 0.46) !important;
}

.tr-route-card {
  min-height: 175px;
  border: 1px solid rgba(118, 200, 232, 0.18);
  border-top: 3px solid var(--tr-copper);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(28, 49, 61, 0.98), rgba(8, 23, 34, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.tr-route-card:hover {
  border-color: rgba(226, 173, 115, 0.68);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

body.theme-light .tr-route-card {
  border-color: rgba(23, 75, 93, 0.16);
  border-top-color: #2f7188;
  background: linear-gradient(145deg, #fffdf8, #eef4f3);
  box-shadow: 0 14px 30px rgba(23, 75, 93, 0.08);
}

.tr-route-title {
  font-size: 1.28rem;
}

.tr-route-action {
  color: var(--tr-copper);
}

body.theme-light .tr-route-action {
  color: #2f7188;
}

.tr-page-hero,
body.theme-light .tr-page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--tr-navy) !important;
  background-image: linear-gradient(90deg, rgba(4, 17, 27, 0.94), rgba(4, 17, 27, 0.56)), url("hero-port.png") !important;
  background-position: center;
  background-size: cover;
  color: #fff;
}

body.theme-light .tr-page-hero {
  background-image: linear-gradient(90deg, rgba(244, 242, 237, 0.94), rgba(244, 242, 237, 0.56)), url("hero-port.png") !important;
  color: var(--tr-ink);
}

.tr-about-callout {
  border-left-color: var(--tr-copper);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.tr-footer {
  margin-top: 0;
  background: #05111a !important;
  border-top: 1px solid rgba(118, 200, 232, 0.16) !important;
}

body.theme-light .tr-footer {
  background: #dfe9e8 !important;
  border-top-color: rgba(23, 75, 93, 0.15) !important;
  color: #43606b;
}

@media (max-width: 900px) {
  .tr-utility-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .tr-utility-main a {
    white-space: normal;
  }

  .tr-utility-links {
    gap: 1rem;
  }

  .tr-nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0 1rem;
  }

  .tr-menu {
    justify-content: center;
  }

  .tr-hero,
  .tr-hero-inner {
    min-height: 720px;
  }

  .tr-hero {
    background-position: 62% center, 62% center;
  }

  .tr-hero-text {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .tr-hero,
  .tr-hero-inner {
    min-height: 760px;
  }

  .tr-hero-text {
    padding: 3.25rem 0;
  }

  .tr-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .tr-hero-actions {
    align-items: flex-start;
  }

  .tr-btn {
    width: auto;
  }
}

@keyframes tr-hero-drift {
  0% {
    background-position: center, 50% center;
  }

  100% {
    background-position: center, 56% center;
  }
}

@keyframes tr-ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-hero,
  .tr-ticker-track {
    animation: none;
  }
}

/* ====== UX HARDENING ====== */

.tr-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--tr-copper);
  color: #172127;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.tr-skip-link:focus,
.tr-skip-link:focus-visible {
  color: #172127;
  text-decoration: none;
  transform: translateY(0);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--tr-copper);
  outline-offset: 3px;
}

.tr-logo a {
  display: block;
  border-radius: 0.5rem;
}

main [id],
section[id] {
  scroll-margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .tr-menu {
    gap: 0.2rem 0.55rem;
  }

  .tr-menu a,
  .tr-theme-toggle,
  .tr-utility-links a {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  .tr-utility-links a {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-card,
  .tr-route-card,
  .tr-btn,
  .tr-skip-link {
    transition: none;
  }

  .tr-card:hover,
  .tr-btn:hover {
    transform: none;
  }
}

/* ====== MARKET REFERENCE STRIP ====== */

.tr-market-strip {
  border-top: 1px solid rgba(118, 200, 232, 0.16);
  border-bottom: 1px solid rgba(118, 200, 232, 0.16);
  background: linear-gradient(135deg, #0b202d 0%, #102d3b 100%);
}

body.theme-light .tr-market-strip {
  border-color: rgba(23, 75, 93, 0.14);
  background: linear-gradient(135deg, #e5eff0 0%, #f5f2eb 100%);
}

.tr-market-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.1rem;
}

.tr-market-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.tr-market-eyebrow {
  margin: 0;
  color: var(--tr-copper);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.theme-light .tr-market-eyebrow {
  color: #2f7188;
}

.tr-market-heading h2 {
  margin: 0 auto 0 0;
  color: #f4f7f8;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

body.theme-light .tr-market-heading h2 {
  color: var(--tr-ink);
}

.tr-market-status,
.tr-market-disclaimer {
  margin: 0;
  color: rgba(239, 247, 249, 0.62);
  font-size: 0.72rem;
}

body.theme-light .tr-market-status,
body.theme-light .tr-market-disclaimer {
  color: rgba(19, 33, 42, 0.62);
}

.tr-market-grid {
  display: flex;
  gap: 0.7rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.15rem 0 0.45rem;
  scrollbar-color: rgba(226, 173, 115, 0.62) transparent;
  scrollbar-width: thin;
}

.tr-market-card {
  flex: 1 0 158px;
  min-height: 84px;
  box-sizing: border-box;
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid rgba(118, 200, 232, 0.2);
  border-radius: 14px;
  background: rgba(5, 17, 26, 0.44);
}

body.theme-light .tr-market-card {
  border-color: rgba(23, 75, 93, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

.tr-market-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.tr-market-symbol {
  color: var(--tr-copper);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

body.theme-light .tr-market-symbol {
  color: #2f7188;
}

.tr-market-market {
  overflow: hidden;
  color: rgba(239, 247, 249, 0.56);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-light .tr-market-market {
  color: rgba(19, 33, 42, 0.54);
}

.tr-market-value {
  display: block;
  margin-top: 0.45rem;
  color: #f4f7f8;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

body.theme-light .tr-market-value {
  color: var(--tr-ink);
}

.tr-market-unit {
  display: block;
  margin-top: 0.3rem;
  color: rgba(239, 247, 249, 0.58);
  font-size: 0.68rem;
}

body.theme-light .tr-market-unit {
  color: rgba(19, 33, 42, 0.58);
}

.tr-market-disclaimer {
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .tr-market-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .tr-market-status {
    margin-top: 0.15rem;
  }

  .tr-market-card {
    flex-basis: 170px;
  }
}

/* ====== VERIFICATION FRAMEWORK ====== */

.tr-standards-section {
  border-top: 1px solid rgba(118, 200, 232, 0.12);
  border-bottom: 1px solid rgba(118, 200, 232, 0.12);
  background: linear-gradient(135deg, #091a25 0%, #102b38 100%);
}

body.theme-light .tr-standards-section {
  border-color: rgba(23, 75, 93, 0.12);
  background: linear-gradient(135deg, #e8f0ef 0%, #f5f0e7 100%);
}

.tr-standards-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.25rem;
}

.tr-standards-intro h2 {
  margin-bottom: 0;
}

.tr-standards-intro .tr-lead {
  margin: 0;
  color: rgba(239, 247, 249, 0.72);
  font-size: 1rem;
}

body.theme-light .tr-standards-intro .tr-lead {
  color: rgba(19, 33, 42, 0.68);
}

.tr-standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tr-standard-card {
  min-height: 190px;
  box-sizing: border-box;
  padding: 1.25rem;
  border: 1px solid rgba(118, 200, 232, 0.18);
  border-top: 3px solid var(--tr-copper);
  border-radius: 16px;
  background: rgba(5, 17, 26, 0.42);
}

body.theme-light .tr-standard-card {
  border-color: rgba(23, 75, 93, 0.15);
  border-top-color: #2f7188;
  background: rgba(255, 255, 255, 0.58);
}

.tr-standard-number {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--tr-copper);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

body.theme-light .tr-standard-number {
  color: #2f7188;
}

.tr-standard-card h3 {
  margin: 0 0 0.5rem;
  color: #f4f7f8;
  font-size: 1.1rem;
}

body.theme-light .tr-standard-card h3 {
  color: var(--tr-ink);
}

.tr-standard-card p {
  margin: 0;
  color: rgba(239, 247, 249, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.theme-light .tr-standard-card p {
  color: rgba(19, 33, 42, 0.68);
}

@media (max-width: 900px) {
  .tr-standards-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tr-standard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .tr-standard-card {
    min-height: auto;
  }
}

/* ====== STORY INDEX ====== */

.tr-story-index {
  border-top: 1px solid rgba(118, 200, 232, 0.14);
  border-bottom: 1px solid rgba(118, 200, 232, 0.14);
  background: #071622;
}

body.theme-light .tr-story-index {
  border-color: rgba(23, 75, 93, 0.14);
  background: #e8efed;
}

.tr-story-index-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  scrollbar-width: none;
}

.tr-story-index-inner::-webkit-scrollbar {
  display: none;
}

.tr-story-index-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--tr-copper);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

body.theme-light .tr-story-index-label {
  color: #2f7188;
}

.tr-story-index ol {
  display: flex;
  flex: 1 0 auto;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-story-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(239, 247, 249, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-light .tr-story-index a {
  color: rgba(19, 33, 42, 0.68);
}

.tr-story-index a span:first-child {
  color: var(--tr-copper);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

body.theme-light .tr-story-index a span:first-child {
  color: #2f7188;
}

.tr-story-index a:hover {
  color: #fff;
  text-decoration: none;
}

body.theme-light .tr-story-index a:hover {
  color: var(--tr-ink);
}

.tr-chapter-number {
  display: inline-block;
  margin-right: 0.16em;
  color: var(--tr-copper);
  font-size: 0.48em;
  font-weight: 850;
  letter-spacing: 0.06em;
  vertical-align: top;
}

body.theme-light .tr-chapter-number {
  color: #2f7188;
}

.tr-contact-kicker {
  margin: 0 0 0.55rem;
  color: var(--tr-copper);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

body.theme-light .tr-contact-kicker {
  color: #2f7188;
}
