:root {
  --bg-void: #060709;
  --bg-surface: #0b0e14;
  --bg-panel: #0f131b;
  --bg-elevated: #151b26;
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(212, 175, 55, 0.38);
  --text-primary: #f4f6f9;
  --text-secondary: #9aa4b5;
  --text-dim: #636e82;
  --gold: #d4af37;
  --gold-bright: #f5d061;
  --gold-glow: rgba(212, 175, 55, 0.16);
  --emerald: #00e676;
  --emerald-dim: rgba(0, 230, 118, 0.12);
  --crimson: #ff3b5c;
  --crimson-dim: rgba(255, 59, 92, 0.12);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --max-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg-void); }

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -5%, rgba(212, 175, 55, 0.11), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

a { color: inherit; text-decoration: none; }
.tfb-container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.tfb-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.tfb-ticker-bar {
  background: #090b10;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.tfb-ticker-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 36px; flex-wrap: wrap; padding: 6px 0;
}
.tfb-ticker-promo { display: inline-flex; align-items: center; gap: 10px; }
.tfb-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px var(--emerald); flex-shrink: 0;
}
.tfb-code-pill {
  color: var(--gold-bright); background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold); padding: 2px 7px; border-radius: 3px; font-weight: 700;
}
.tfb-ticker-meta { display: flex; align-items: center; gap: 18px; color: var(--text-dim); }
.tfb-ticker-meta span strong { color: var(--text-primary); font-weight: 600; }

.tfb-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 7, 9, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}
.tfb-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.tfb-brand { display: inline-flex; align-items: center; gap: 12px; }
.tfb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.tfb-brand-title { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.tfb-brand-sub { font-family: var(--font-mono); font-size: 10px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.tfb-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.tfb-nav-links a { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); transition: color 0.15s ease; }
.tfb-nav-links a:hover { color: var(--gold-bright); }

.tfb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 13px 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.tfb-btn-sm { padding: 9px 15px; font-size: 11px; }
.tfb-btn-gold {
  color: #060709; background: linear-gradient(180deg, #f7da78 0%, #c89b24 100%);
  border-color: #fbe69b; box-shadow: 0 0 28px rgba(212, 175, 55, 0.22);
}
.tfb-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tfb-btn-ghost { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); border-color: var(--border-bright); }
.tfb-btn-ghost:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.07); }

.tfb-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08); border: 1px solid var(--border-gold); border-radius: 3px;
}

.tfb-hero { padding: 56px 0 72px; border-bottom: 1px solid var(--border-hairline); }
.tfb-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px; align-items: center; }
.tfb-hero-copy { grid-column: span 6; }
.tfb-hero-hud { grid-column: span 6; }
.tfb-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 700; margin: 20px 0 18px; color: var(--text-primary);
}
.tfb-hero h1 .tfb-gold-text {
  background: linear-gradient(90deg, #f8e08e 0%, #d4af37 55%, #b88b1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tfb-hero-lead { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin-bottom: 28px; }
.tfb-hero-lead strong { color: var(--text-primary); font-weight: 600; }
.tfb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.tfb-hero-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-hairline); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm); overflow: hidden;
}
.tfb-spec-cell { background: var(--bg-surface); padding: 14px 16px; }
.tfb-spec-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px;
}
.tfb-spec-val { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.tfb-spec-val.is-green { color: var(--emerald); }
.tfb-spec-val.is-gold { color: var(--gold-bright); }

.tfb-terminal-frame {
  position: relative; background: linear-gradient(180deg, #111621 0%, #090c11 100%);
  border: 1px solid var(--border-gold); border-radius: var(--radius-md);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tfb-terminal-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  background: #0a0d13; border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono); font-size: 11px;
}
.tfb-terminal-id { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 600; }
.tfb-terminal-status {
  color: var(--emerald); background: var(--emerald-dim); border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700;
}
.tfb-terminal-svg { display: block; width: 100%; height: auto; }
.tfb-terminal-footer { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-hairline); background: #080a0f; }
.tfb-hud-stat { padding: 11px 12px; border-right: 1px solid var(--border-hairline); }
.tfb-hud-stat:last-child { border-right: none; }
.tfb-hud-stat span { display: block; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.tfb-hud-stat strong { display: block; font-family: var(--font-mono); font-size: 13px; margin-top: 3px; color: var(--text-primary); }
.tfb-hud-stat strong.is-green { color: var(--emerald); }
.tfb-hud-stat strong.is-gold { color: var(--gold-bright); }

.tfb-flagships { padding: 84px 0; }
.tfb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.tfb-section-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.12; margin-top: 12px; }
.tfb-section-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  background: var(--bg-panel); border: 1px solid var(--border-hairline);
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.tfb-section-note strong { color: var(--gold-bright); }

.tfb-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tfb-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; background: linear-gradient(180deg, #111620 0%, #0b0e14 100%);
  border: 1px solid var(--border-hairline); border-top-color: var(--border-bright);
  border-radius: var(--radius-md); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.tfb-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }

.tfb-span-7 { grid-column: span 7; }
.tfb-span-5 { grid-column: span 5; }
.tfb-span-4 { grid-column: span 4; }
.tfb-span-12 { grid-column: span 12; }

.tfb-card--hero-bot {
  border-color: var(--border-gold);
  background: radial-gradient(circle at 95% 10%, rgba(212, 175, 55, 0.14), transparent 48%), linear-gradient(180deg, #131925 0%, #0b0e14 100%);
}
.tfb-card--vip {
  border-color: var(--border-gold);
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(212, 175, 55, 0.16), transparent 60%), linear-gradient(135deg, #131823 0%, #080a0f 100%);
  padding: 30px;
}

.tfb-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tfb-symbol-chip {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-hairline);
  padding: 4px 8px; border-radius: 3px;
}
.tfb-badge-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.tfb-badge-gold { color: #060709; background: var(--gold-bright); }
.tfb-badge-red { color: var(--crimson); background: var(--crimson-dim); border: 1px solid rgba(255, 59, 92, 0.3); }
.tfb-badge-green { color: var(--emerald); background: var(--emerald-dim); border: 1px solid rgba(0, 230, 118, 0.28); }

.tfb-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--text-primary); }
.tfb-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.tfb-card-visual { background: #080b10; border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 20px; }

.tfb-meter-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; margin-bottom: 8px; }
.tfb-meter-track { height: 8px; background: #171d29; border-radius: 2px; overflow: hidden; display: flex; }
.tfb-meter-safe { width: 72%; background: linear-gradient(90deg, #00b85c, #00e676); }
.tfb-meter-lock {
  width: 28%;
  background: repeating-linear-gradient(-45deg, rgba(255, 59, 92, 0.45), rgba(255, 59, 92, 0.45) 4px, rgba(255, 59, 92, 0.15) 4px, rgba(255, 59, 92, 0.15) 8px);
  border-left: 2px solid var(--crimson);
}
.tfb-meter-caption { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 8px; }

.tfb-mini-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tfb-mini-specs span { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); background: #090c11; border: 1px solid var(--border-hairline); padding: 4px 9px; border-radius: 3px; }

.tfb-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-hairline); flex-wrap: wrap; }
.tfb-spec-link { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); transition: color 0.15s ease; }
.tfb-spec-link:hover { color: var(--gold-bright); }

.tfb-vip-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.tfb-vip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; list-style: none; margin-top: 18px; }
.tfb-vip-list li { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }
.tfb-vip-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold-bright); transform: rotate(45deg); flex-shrink: 0; }
.tfb-vip-checkout-box { background: rgba(6, 7, 9, 0.72); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tfb-vip-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.tfb-vip-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.tfb-vip-price-note { font-family: var(--font-mono); font-size: 11px; color: var(--emerald); text-transform: uppercase; }

@media (max-width: 1024px) {
  .tfb-nav-links { display: none; }
  .tfb-hero-copy, .tfb-hero-hud, .tfb-span-7, .tfb-span-5 { grid-column: span 12; }
  .tfb-span-4 { grid-column: span 6; }
  .tfb-vip-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tfb-span-4 { grid-column: span 12; }
  .tfb-hero-specs, .tfb-vip-list { grid-template-columns: 1fr; }
  .tfb-terminal-footer { grid-template-columns: repeat(2, 1fr); }
  .tfb-ticker-meta { display: none; }
}