/* Tracboss marketing landing + datalog mode */

:root {
  --tb-accent: #f97316;
  --tb-accent-dark: #ea580c;
  --tb-accent-glow: rgba(249, 115, 22, 0.35);
  --tb-gold: #fbbf24;
  --tb-black: #0a0a0a;
  --tb-surface: #111827;
  --tb-surface-2: #1f2937;
  --tb-text: #f9fafb;
  --tb-muted: #9ca3af;
  --tb-border: rgba(148, 163, 184, 0.18);
  --tb-radius: 16px;
  --tb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Landing mode ── */
body.tb-landing {
  margin: 0;
  font-family: var(--tb-font);
  background: var(--tb-black);
  color: var(--tb-text);
  overflow-x: hidden;
}

body.tb-landing .datalog-shell {
  display: none;
}

body.tb-datalog-mode .tb-landing-site {
  display: none;
}

body.tb-datalog-mode .datalog-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.tb-landing-site {
  position: relative;
  min-height: 100vh;
}

.tb-landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 115, 22, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(249, 115, 22, 0.12), transparent),
    linear-gradient(180deg, #0a0a0a 0%, #111827 50%, #0a0a0a 100%);
}

.tb-landing-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

/* ── Nav ── */
.tb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(20px, 4vw);
  height: 64px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tb-border);
}

.tb-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.tb-nav-brand img {
  height: 36px;
  width: auto;
}

.tb-nav-brand-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-muted);
}

.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tb-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tb-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.tb-nav-link:hover {
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.05);
}

.tb-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tb-accent) 0%, var(--tb-accent-dark) 100%);
  box-shadow: 0 4px 20px var(--tb-accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-left: 8px;
}

.tb-nav-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--tb-accent-glow);
  color: #fff !important;
}

/* ── Hero ── */
.tb-hero {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px max(20px, 4vw) 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.tb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-gold);
}

.tb-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tb-accent);
  box-shadow: 0 0 12px var(--tb-accent);
}

.tb-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tb-hero h1 .accent {
  background: linear-gradient(90deg, var(--tb-accent), var(--tb-gold), var(--tb-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tb-shimmer 5s linear infinite;
}

@keyframes tb-shimmer {
  to { background-position: 200% center; }
}

.tb-hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tb-muted);
  max-width: 520px;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.tb-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-dark));
  box-shadow: 0 8px 24px var(--tb-accent-glow);
}

.tb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--tb-accent-glow);
  color: #fff;
}

.tb-btn-outline {
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tb-border);
}

.tb-btn-outline:hover {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.08);
  color: var(--tb-text);
}

.tb-hero-visual {
  position: relative;
}

.tb-hero-card {
  padding: 28px;
  border-radius: var(--tb-radius);
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--tb-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.tb-hero-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin-bottom: 16px;
}

.tb-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tb-stat {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--tb-border);
}

.tb-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tb-accent);
  line-height: 1;
}

.tb-stat-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-muted);
}

/* ── Sections ── */
.tb-section {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(20px, 4vw) 72px;
}

.tb-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.tb-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.tb-section-head p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 1rem;
}

.tb-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tb-feature {
  padding: 28px 24px;
  border-radius: var(--tb-radius);
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  transition: transform 0.2s, border-color 0.2s;
}

.tb-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
}

.tb-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--tb-accent);
  font-size: 22px;
}

.tb-feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.tb-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tb-muted);
}

.tb-datalog-teaser {
  margin-top: 24px;
  padding: 40px 32px;
  border-radius: var(--tb-radius);
  text-align: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(17, 24, 39, 0.9));
  border: 1px dashed rgba(249, 115, 22, 0.35);
}

.tb-datalog-teaser h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.tb-datalog-teaser p {
  margin: 0 0 20px;
  color: var(--tb-muted);
}

.tb-footer {
  position: relative;
  z-index: 1;
  padding: 24px max(20px, 4vw) 32px;
  border-top: 1px solid var(--tb-border);
  text-align: center;
  font-size: 13px;
  color: var(--tb-muted);
}

/* Datalog shell overrides */
.datalog-shell header {
  gap: 8px;
  flex-wrap: wrap;
}

.datalog-shell header .tb-back-landing {
  flex-shrink: 0;
}

.datalog-shell header .logo {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tb-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .tb-nav-link:not(.tb-nav-login) {
    display: none;
  }
}

@media (max-width: 480px) {
  .tb-nav-brand-text {
    display: none;
  }

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

  .tb-btn {
    width: 100%;
  }
}
