:root {
  --tt-bg: #0b120f;
  --tt-bg-deep: #0d1612;
  --tt-card: #111c17;
  --tt-border: rgba(94, 234, 212, 0.16);
  --tt-accent: #5eead4;
  --tt-ink: #f0fdf9;
  --tt-muted: #86a397;
  --tt-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --tt-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tt-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background: var(--tt-bg);
  color: var(--tt-ink);
  font-family: var(--tt-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(980px 420px at 50% -90px, rgba(94, 234, 212, 0.12), transparent 72%),
    var(--tt-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.tt-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.tt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 15, 0.88);
  border-bottom: 1px solid var(--tt-border);
}

.tt-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tt-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tt-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.tt-logo-sm {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.tt-brand-name {
  font-family: var(--tt-serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tt-ink);
}

.tt-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tt-muted);
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  padding: 6px 11px;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tt-pill:hover {
  color: var(--tt-accent);
  border-color: rgba(94, 234, 212, 0.42);
}

.tt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-btn-ghost {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--tt-ink);
  border: 1px solid var(--tt-border);
  background: var(--tt-card);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tt-btn-ghost:hover {
  color: var(--tt-accent);
  border-color: rgba(94, 234, 212, 0.45);
}

.tt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--tt-accent);
  color: #07110d;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(94, 234, 212, 0.45);
  filter: brightness(1.04);
}

.tt-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(17, 28, 23, 0.72);
  color: var(--tt-ink);
  border: 1px solid rgba(94, 234, 212, 0.34);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tt-btn-glass:hover {
  border-color: var(--tt-accent);
  background: rgba(94, 234, 212, 0.1);
  color: var(--tt-accent);
}

.tt-btn-lg {
  padding: 11px 24px;
  font-size: 13.5px;
}

.tt-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

/* Hero */
main {
  flex: 1;
}

.tt-hero {
  padding: 40px 0 22px;
}

.tt-hero-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.tt-hero-title {
  margin: 0 0 10px;
  font-family: var(--tt-serif);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  color: var(--tt-ink);
}

.tt-hero-sub {
  margin: 0 0 20px;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.5;
  color: var(--tt-muted);
}

.tt-hero-ctas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Infinite Horizontal Marquee */
.tt-marquee-section {
  padding: 10px 0 22px;
  overflow: hidden;
}

.tt-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.tt-marquee-track {
  display: flex;
  width: max-content;
  animation: tt-marquee-scroll 34s linear infinite;
}

.tt-marquee-viewport:hover .tt-marquee-track {
  animation-play-state: paused;
}

.tt-marquee-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

@keyframes tt-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tt-mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  white-space: nowrap;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tt-mq-pill:hover {
  border-color: rgba(94, 234, 212, 0.55);
  transform: translateY(-1px);
}

.tt-mq-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tt-bg-deep);
  flex-shrink: 0;
}

.tt-mq-sym {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tt-ink);
}

.tt-mq-px {
  font-family: var(--tt-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tt-accent);
}

.tt-mq-chg {
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 600;
}

.tt-mq-chg.up {
  color: #4ade80;
}

.tt-mq-chg.down {
  color: #f87171;
}

/* Auto-Cycling Mode Showcase */
.tt-showcase-section {
  padding: 4px 0 44px;
}

.tt-landscape-backdrop {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.18), transparent 45%),
    radial-gradient(circle at 82% 85%, rgba(16, 185, 129, 0.16), transparent 50%),
    linear-gradient(145deg, #102019 0%, #0b1410 52%, #13251d 100%);
  border: 1px solid rgba(94, 234, 212, 0.24);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(94, 234, 212, 0.1);
}

.tt-macos-window {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #080f0c;
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
}

.tt-macos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #101b16;
  border-bottom: 1px solid rgba(94, 234, 212, 0.14);
}

.tt-traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tt-dot-red {
  background: #ff5f57;
}

.tt-dot-yellow {
  background: #febc2e;
}

.tt-dot-green {
  background: #28c840;
}

.tt-address-bar {
  font-family: var(--tt-mono);
  font-size: 11px;
  color: var(--tt-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 16px;
  border-radius: 999px;
}

.tt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tt-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tt-accent);
}

.tt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22);
}

.tt-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080f0c;
}

.tt-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 2.8s ease;
  pointer-events: none;
}

.tt-stage-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.tt-mode-tabs {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tt-mode-tab {
  appearance: none;
  border: 1px solid var(--tt-border);
  background: var(--tt-card);
  color: var(--tt-muted);
  font-family: var(--tt-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tt-mode-tab:hover {
  color: var(--tt-ink);
  border-color: rgba(94, 234, 212, 0.4);
}

.tt-mode-tab.is-active {
  background: var(--tt-accent);
  color: #07110d;
  border-color: var(--tt-accent);
}

/* Minimal 1-Row Footer */
.tt-footer {
  border-top: 1px solid var(--tt-border);
  background: var(--tt-bg-deep);
  padding: 20px 0;
}

.tt-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tt-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--tt-muted);
}

.tt-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tt-muted);
}

.tt-footer-links a:hover {
  color: var(--tt-accent);
}

/* Legal Modal */
.tt-legal-backdrop[hidden] {
  display: none;
}

.tt-legal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 9, 7, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tt-legal-dialog {
  width: 100%;
  max-width: 660px;
  max-height: 82vh;
  background: var(--tt-bg-deep);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.tt-legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--tt-border);
}

.tt-legal-kicker {
  display: block;
  font-family: var(--tt-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tt-accent);
  margin-bottom: 4px;
}

.tt-legal-title {
  margin: 0;
  font-family: var(--tt-serif);
  font-size: 22px;
  color: var(--tt-ink);
}

.tt-legal-close {
  appearance: none;
  border: 1px solid var(--tt-border);
  background: var(--tt-card);
  color: var(--tt-ink);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.tt-legal-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--tt-border);
  background: var(--tt-bg);
}

.tt-legal-tab {
  appearance: none;
  border: 1px solid var(--tt-border);
  background: var(--tt-card);
  color: var(--tt-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tt-legal-tab.active {
  background: var(--tt-accent);
  color: #07110d;
  border-color: var(--tt-accent);
}

.tt-legal-body {
  padding: 18px 22px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--tt-muted);
}

.tt-legal-body h4 {
  margin: 14px 0 6px;
  color: var(--tt-ink);
  font-size: 14px;
}

.tt-legal-body h4:first-child {
  margin-top: 0;
}

.tt-legal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid var(--tt-border);
  background: var(--tt-bg);
}

.tt-legal-updated {
  font-family: var(--tt-mono);
  font-size: 11px;
  color: var(--tt-muted);
}

@media (max-width: 760px) {
  .tt-nav-pills {
    display: none;
  }

  .tt-landscape-backdrop {
    padding: 12px;
    border-radius: 16px;
  }

  .tt-header-inner {
    padding: 10px 16px;
  }

  .tt-brand-name {
    font-size: 15px;
  }

  .tt-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
